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
User experience
Improve an error message when a column doesn't have default.
Let's say that we have the following table:
create table test_table(a string not null, ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP);
And then, The following sql:
insert into test_table values(default, default);
results in:
ERROR 1815 (HY000): Failed to execute query, query: insert into test_table values(default, default)
This error doesn't tell us that the a doesn't have default.
a
I think that we can improve the error message like this:
`a` doesn't have a default value
No response
The text was updated successfully, but these errors were encountered:
I guess the server doesn't return the root cause due to #2428
After #2506 is merged, the latest commit should output the reason
mysql> insert into test_table values(default, default); ERROR 1815 (HY000): No valid default value can be built automatically, column: a
Sorry, something went wrong.
I see. Thank you.
No branches or pull requests
What type of enhancement is this?
User experience
What does the enhancement do?
Improve an error message when a column doesn't have default.
Let's say that we have the following table:
And then, The following sql:
results in:
This error doesn't tell us that the
a
doesn't have default.I think that we can improve the error message like this:
Implementation challenges
No response
The text was updated successfully, but these errors were encountered: