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

lowercase sql mode values are not supported #2701

Closed
fanyang01 opened this issue Oct 15, 2024 · 0 comments · Fixed by #2702
Closed

lowercase sql mode values are not supported #2701

fanyang01 opened this issue Oct 15, 2024 · 0 comments · Fixed by #2702

Comments

@fanyang01
Copy link
Contributor

fanyang01 commented Oct 15, 2024

When playing MySQL Shell with this library (e.g., loading a MySQL dump), one of the obstacles I encountered is that mysqlsh sends lowercase SET sql_mode statement, which is not supported by go-mysql-server. This issue can be reproduced with the built-in example:

cd _example
go run .
mysql -h127.0.0.1 -uroot -P3306;
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 8.0.33 Dolt

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> set sql_mode = 'no_auto_value_on_zero';
ERROR 1105 (HY000): value no_auto_value_on_zero was not found in the set

mysql> set sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
Query OK, 1 row affected (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants