-
Notifications
You must be signed in to change notification settings - Fork 910
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
db schemes - db_unixodbc, usrloc: MariaDB partition is a reserved word and not quoted #3742
Comments
Technically can be solved using unixodbc quote_char param ; but we could consider renaming partition |
Thanks for the report, I will take care of it. Probably its easier to use the same approach as for the mysql/mariadb, just quote it. Otherwise all the people need to change their databases at upgrade. |
The quote_char param has this role, it is hard to avoid all keywords on various databases and changing the schema is not really recommended, in the future there can be other keywords that will conflict with existing names. The only constraint is that all DBs used with db_unixodbc at the same time have to support same quoting character. A possible enhancement here would be to be able to specify the quoting char via the db url. |
Thanks @miconda - closing now as not a bug. |
Description
partition is now a reserved word in MariaDB 10.
the column name is correctly quoted with native libmysqlclient/libmariadb so works
the column name is not quoted with unixodbc+(libmyodbc8|libmaodbc) and so fails
unixodbc will fail when enabled for registrar / usrloc
Troubleshooting
try unquoted insert
-- fails unixodbc+libmaodbc
insert into location (partition) values (1000);
-- works native libmysqlclient|libmariadb
insert into location (`partition`) values (1000);
Reproduction
Debugging Data
SQL insert into statement fails
The text was updated successfully, but these errors were encountered: