-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Incompatible with MySQL 8.0 about create table with default expression #10377
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
type/compatibility
Comments
lonng
added
type/bug
The issue is confirmed as a bug.
type/compatibility
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
labels
May 7, 2019
lonng
changed the title
Incompatible issues about create table with default expression
Incompatible with MySQL 8.0 about create table with default expression
May 7, 2019
This is not a bug, but a MySQL 8.0 compatibility issue. Functions as default values was added after 8.0 GA. Here is the output from MySQL 5.7-latest: mysql [localhost:5731] {msandbox} (test) > create table ttest ( a int(10) default (rand()));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(rand()))' at line 1 |
The matching parser issue is pingcap/parser#1347 |
Implement |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
type/compatibility
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
Create table successfully.
Error message show above.
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: