We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
set sql_mode=''; create table t1(a int); alter table t1 add column (b int unsigned default '-1');
Same with MySQL, an error should be reported:
mysql> alter table t1 add column (b int unsigned default '-1'); ERROR 1067 (42000): Invalid default value for 'b'
Tidb success when adding a column with default value '-1'
master, I think it affects all TiDB versions
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Same with MySQL, an error should be reported:
3. What did you see instead (Required)
Tidb success when adding a column with default value '-1'
4. What is your TiDB version? (Required)
master, I think it affects all TiDB versions
The text was updated successfully, but these errors were encountered: