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

disable strict sql mode should not ignore bad null error #10153

Closed
jackysp opened this issue Apr 15, 2019 · 2 comments · Fixed by #10161
Closed

disable strict sql mode should not ignore bad null error #10153

jackysp opened this issue Apr 15, 2019 · 2 comments · Fixed by #10161
Assignees
Labels
type/bug The issue is confirmed as a bug.

Comments

@jackysp
Copy link
Member

jackysp commented Apr 15, 2019

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
drop table if exists t;
create table t (i int not null);
set sql_mode = '';
insert into t values (null);
  1. What did you expect to see?
ERROR 1048 (23000) at line 4: Column 'i' cannot be null
  1. What did you see instead?
    No error returned.

  2. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    9d25a85 at master branch.

@jackysp jackysp added the type/bug The issue is confirmed as a bug. label Apr 15, 2019
@shenli
Copy link
Member

shenli commented Apr 15, 2019

How do you find this bug?

@jackysp
Copy link
Member Author

jackysp commented Apr 15, 2019

I'm porting MySQL tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
2 participants