Skip to content

Commit

Permalink
fix: use information_schema instead of pg_catalog for dialect detecti…
Browse files Browse the repository at this point in the history
…on (#1708)
  • Loading branch information
olavloite authored Feb 21, 2022
1 parent a51973b commit 91e157a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ private enum Position {
Statement.newBuilder(
"SELECT 'POSTGRESQL' AS DIALECT\n"
+ "FROM INFORMATION_SCHEMA.SCHEMATA\n"
+ "WHERE SCHEMA_NAME='pg_catalog'\n"
+ "WHERE SCHEMA_NAME='information_schema'\n"
+ "UNION ALL\n"
+ "SELECT 'GOOGLE_STANDARD_SQL' AS DIALECT\n"
+ "FROM INFORMATION_SCHEMA.SCHEMATA\n"
Expand Down

0 comments on commit 91e157a

Please sign in to comment.