Skip to content

drop schema support#3367

Merged
zachmu merged 7 commits intomainfrom
zachmu/drop-schema
Jan 8, 2026
Merged

drop schema support#3367
zachmu merged 7 commits intomainfrom
zachmu/drop-schema

Conversation

@zachmu
Copy link
Copy Markdown
Member

@zachmu zachmu commented Jan 7, 2026

No description provided.

@zachmu zachmu requested a review from Hydrocharged January 7, 2026 00:21
Copy link
Copy Markdown
Contributor

@Hydrocharged Hydrocharged left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although this feels quite hacky with an easy fix

Comment on lines +888 to +891
// If no database is selected, first try to fall back to CREATE DATABASE
// since CREATE SCHEMA is a synonym for CREATE DATABASE in MySQL
// https://dev.mysql.com/doc/refman/8.4/en/create-database.html
// TODO: For PostgreSQL, return an error if no database is selected.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems way too hacky. It makes way more sense to just have MySQL resolve to only "CREATE DATABASE" and "DROP DATABASE" since "SCHEMA" is strictly a synonym for them. That way, when we see "SCHEMA", then it must come from Doltgres and we don't have to worry about it. Or even call it a "NAMESPACE" instead just to be more distinct with it.

@zachmu zachmu merged commit ff0a497 into main Jan 8, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants