You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle PostgreSQL CREATE SCHEMA error when no database is selected #1863
Currently, the buildCreateSchema function treats CREATE SCHEMA as a synonym for CREATE DATABASE if no database is selected, following MySQL behavior. This is to support clients like DBeaver which make use of this feature to create databases. dolthub/dolt#9830
For PostgreSQL compatibility, an error should be returned when no database is selected, as PostgreSQL requires a database context for schema creation.
Activity
codeaucafe commentedon Dec 21, 2025
👋 taking a stab if thats cool.
fix(ddl): return error for CREATE SCHEMA without database in PostgreS…
fix(analyzer): validate database exists before CREATE SCHEMA
Merge pull request #2139 from codeaucafe/codeaucafe/1863/fix-validate…