-
-
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
SQL export for set types with embedded single quotes broken #2197
Comments
This seems very related to the fix here: dolthub/go-mysql-server#1639 The above is still broken but it seems like it is on the same path. |
We've regressed on this. I can't create a set with a single quote using backslash or double quote encoding. db5> create table sets (a varchar(10) primary key, b set('one','two','three\'s'));
Error parsing SQL
syntax error at position 42 near 's'
CREATE TABLE a(b set('one','two','three's'))
^ db5> create table sets (a varchar(10) primary key, b set('one','two','three''s'));
Error parsing SQL
syntax error at position 42 near 's'
CREATE TABLE a(b set('one','two','three's'))
^ |
Also, this seems to be limited to the set datatype, which I'd never heard of until today: https://dev.mysql.com/doc/refman/8.0/en/set.html I'm going to guess this is a rarely use feature of mysql, and this is pretty low priority. |
I doubt this is the case. Seems really |
Last line breaks because of unescaped quote character.
JSON columns have the same problem, but for embedded double quotes.
The text was updated successfully, but these errors were encountered: