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

SQL_MODE NO_ZERO_IN_DATE is not respected #23101

Closed
tisonkun opened this issue Mar 4, 2021 · 1 comment
Closed

SQL_MODE NO_ZERO_IN_DATE is not respected #23101

tisonkun opened this issue Mar 4, 2021 · 1 comment
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@tisonkun
Copy link
Contributor

tisonkun commented Mar 4, 2021

Bug Report

1. Minimal reproduce step (Required)

reproduce.sql.txt

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

mysql produces results without zero_in_date rows, such as 2022-00-23 00:00:00

3. What did you see instead (Required)

tidb produces results with zero_in_date rows, such as 2022-00-23 00:00:00, even if set sql_mode with NO_ZERO_IN_DATE

4. What is your TiDB version? (Required)

$ mysql -V     
mysql  Ver 8.0.23 for osx10.15 on x86_64 (Homebrew)
mysql> SELECT tidb_version();
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                                                                              |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v4.0.0-beta.2-2226-g8230f4162
Edition: Community
Git Commit Hash: 8230f4162ba019dc5a22c3bf62feabccde1379f9
Git Branch: master
UTC Build Time: 2021-03-01 14:55:34
GoVersion: go1.13.1
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.06 sec)
@tisonkun
Copy link
Contributor Author

tisonkun commented May 2, 2022

Closed as no more activities.

@tisonkun tisonkun closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

4 participants