Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: bool 类型 not null允许插入 null 值。

Under sql_mode set to NO_ENGINE_SUBSTITUTION;
Differences in behavior between TIDB and MySQL
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: bool 类型 not null允许插入 null 值。
Under sql_mode set to NO_ENGINE_SUBSTITUTION;
Differences in behavior between TIDB and MySQL
I set sql_mode to NO_ENGINE_SUBSTITUTION, but TiDB and MySQL behave inconsistently. I’ve updated the issue with a screenshot.
I didn’t change the sql_mode and it can still be inserted.
Version 7.3 did not change sql_mode and did not reproduce the issue.
The image you provided is not accessible. Please provide the text content that needs to be translated.
Here’s the problem: after the program migration, it became incompatible.