Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dolt sql fails to run DDL operations #7814

Closed
macneale4 opened this issue May 2, 2024 · 0 comments · Fixed by #7816
Closed

dolt sql fails to run DDL operations #7814

macneale4 opened this issue May 2, 2024 · 0 comments · Fixed by #7816
Assignees
Labels
bug Something isn't working

Comments

@macneale4
Copy link
Contributor

The following works when using the MySQL client against Dolt:

alter database mydb collate utf8mb4_spanish_ci

But it fails with the following message when using dolt sql

Unhandled DBDDL action alter in Query alter database gc collate utf8mb4_spanish_ci

This code need to be ripped out:

func dbddl(ctx *sql.Context, queryist cli.Queryist, dbddl *sqlparser.DBDDL, query string) (sql.Schema, sql.RowIter, error) {

There is one switch case which refers to this function, and _I think it just needs to fall through to the default case. Test obviously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants