Closed scottt closed 1 month ago
Before this patch, ManagedClient.CreateDatabase could issue the following SQL:
ManagedClient.CreateDatabase
DROP DATABASE mydb IF EXISTS WITH (FORCE)
which is not standard SQL and does not work with PostgreSQL. See https://www.postgresql.org/docs/current/sql-dropdatabase.html
This patch fixes to code to issue:
DROP DATABASE IF EXISTS mydb WITH (FORCE)
@kyleconroy , this patch fixes the DROP DATABASE syntax error introduced in https://github.com/sqlc-dev/sqlc/pull/3525 and https://github.com/sqlc-dev/sqlc/pull/3421
Thank you!
Before this patch,
ManagedClient.CreateDatabase
could issue the following SQL:which is not standard SQL and does not work with PostgreSQL. See https://www.postgresql.org/docs/current/sql-dropdatabase.html
This patch fixes to code to issue:
@kyleconroy , this patch fixes the DROP DATABASE syntax error introduced in https://github.com/sqlc-dev/sqlc/pull/3525 and https://github.com/sqlc-dev/sqlc/pull/3421