-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Can't create database with navicat: Dolt does not accept single quotes on charset identifier #4977
Comments
So, these queries work on the tip of main outside of navicat:
I think we just added support for collations on databases on Nov 1. Are you using the latest Dolt version? |
It looks like this has to do with the quoting for mysql> create database `bar2` character set 'utf8mb4';
Query OK, 1 row affected (0.01 sec) We should update our parser to allow charsets to be specified in single quotes and double quotes, in addition to the existing support for backtick/identifier quotes. |
Good catch. I totally missed the regular ticks on the charset. |
…quotes when specifying DB creation options. Fixes: dolthub/dolt#4977
Thanks for reporting this! I've made a quick change to our sql parser to allow charsets and collation names to be in single quotes or double quotes when used in We'll get this merged in today and out in the next release of Dolt, likely today or tomorrow. Using backtick quotes is a good workaround for this until the fix is released. |
Hey @Jinsns – just wanted to let you know that this fix was just released in Dolt 0.51.13 Thanks again for taking the time to report this so we could fix it! |
I'm using navicat premium 15. When I try to create a new database or import data from a csv to create a new table, error happens.
I guess there are some problems with the quotation mark in the sql corresponding to the operation of navicat. If I copy that sql to cli, same error will happen, while ok without the quotation mark.
The text was updated successfully, but these errors were encountered: