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 #23877

Closed
jebter opened this issue Apr 7, 2021 · 2 comments
Closed

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

jebter opened this issue Apr 7, 2021 · 2 comments

Comments

@jebter
Copy link

jebter commented Apr 7, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

drop table if exists t;
create table t (i int not null);
set sql_mode = '';
insert into t values (null);

2. What did you expect to see? (Required)

ERROR 1048 (23000) at line 4: Column 'i' cannot be null

3. What did you see instead (Required)

No error returned.

4. What is your TiDB version? (Required)

Release Version: v5.0.0-nightly\nEdition: Community\nGit Commit Hash: e2740f5\nGit Branch: heads/refs/tags/v5.0.0-nightly\nUTC Build Time: 2021-04-02 16:25:23\nGoVersion: go1.13\nRace Enabled: false\nTiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306\nCheck Table Before Drop: false

@jebter jebter added the type/bug The issue is confirmed as a bug. label Apr 7, 2021
@jebter
Copy link
Author

jebter commented Apr 7, 2021

recurrent bug:#10153

@wjhuang2016
Copy link
Member

It's the expected behavior, refer to https://bugs.mysql.com/bug.php?id=101727

@seiya-annie seiya-annie removed the type/bug The issue is confirmed as a bug. label Apr 9, 2021
@jebter jebter closed this as completed May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants