Skip to content

Commit fa7ee17

Browse files
authored
Update error message for PostgreSQL engine (#2100)
1 parent 732c48e commit fa7ee17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/engine/postgresql/parse_disabled.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ type Parser struct {
1919
}
2020

2121
func (p *Parser) Parse(r io.Reader) ([]ast.Statement, error) {
22-
return nil, errors.New("the PostgreSQL engine does not support Windows")
22+
if runtime.GOOS == "windows" {
23+
return nil, errors.New("the PostgreSQL engine does not support Windows.")
24+
}
25+
return nil, errors.New("the PostgreSQL engine requires cgo. Please set CGO_ENABLED=1.")
2326
}
2427

2528
// https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-COMMENTS

0 commit comments

Comments
 (0)