-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Result of function QUARTER/DATE_FORMAT is different from MySQL. #11203
Labels
component/expression
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/bug
The issue is confirmed as a bug.
type/compatibility
Comments
Function DATE_FORMAT meets the same problem. In MySQL: mysql> select DATE_FORMAT(0, 0);
+-------------------+
| DATE_FORMAT(0, 0) |
+-------------------+
| 0 |
+-------------------+
1 row in set (0.00 sec) In TiDB: mysql> select DATE_FORMAT(0, 0);
+-------------------+
| DATE_FORMAT(0, 0) |
+-------------------+
| NULL |
+-------------------+
1 row in set, 1 warning (0.00 sec)
mysql> show warnings;
+---------+------+--------------------------------------------------------+
| Level | Code | Message |
+---------+------+--------------------------------------------------------+
| Warning | 1292 | Incorrect datetime value: '0000-00-00 00:00:00.000000' |
+---------+------+--------------------------------------------------------+
1 row in set (0.00 sec) |
SunRunAway
changed the title
Result of function QUARTER is different from MySQL.
Result of function QUARTER/DATE_FORMAT is different from MySQL.
Jul 11, 2019
37 tasks
SunRunAway
added
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
and removed
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
labels
Jul 12, 2019
@SunRunAway Would you like to solve it? |
@tiancaiamao #12488 is on going |
The issue could be closed now. Related PR just was merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component/expression
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/bug
The issue is confirmed as a bug.
type/compatibility
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
tidb-server -V
or runselect tidb_version();
on TiDB)?8c20289
The text was updated successfully, but these errors were encountered: