Skip to content

Commit 98da1d4

Browse files
authored
Only enable postgresql support when cgo is enabled as it is required (#2068)
1 parent 003e873 commit 98da1d4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

internal/engine/postgresql/convert.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !windows
2-
// +build !windows
1+
//go:build !windows && cgo
2+
// +build !windows,cgo
33

44
package postgresql
55

@@ -3120,7 +3120,7 @@ func convertNode(node *pg.Node) ast.Node {
31203120

31213121
case *pg.Node_BooleanTest:
31223122
return convertBooleanTest(n.BooleanTest)
3123-
3123+
31243124
case *pg.Node_CallStmt:
31253125
return convertCallStmt(n.CallStmt)
31263126

internal/engine/postgresql/parse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !windows
2-
// +build !windows
1+
//go:build !windows && cgo
2+
// +build !windows,cgo
33

44
package postgresql
55

internal/engine/postgresql/parse_windows.go renamed to internal/engine/postgresql/parse_disabled.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build windows
2-
// +build windows
1+
//go:build windows || !cgo
2+
// +build windows !cgo
33

44
package postgresql
55

internal/engine/postgresql/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !windows
2-
// +build !windows
1+
//go:build !windows && cgo
2+
// +build !windows,cgo
33

44
package postgresql
55

0 commit comments

Comments
 (0)