Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL)
-
10.1.8-3
Description
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a INT(6) ZEROFILL);
|
INSERT INTO t1 VALUES (1);
|
SELECT DATE(a), DATE(COALESCE(a)) FROM t1;
|
returns
+------------+-------------------+
|
| DATE(a) | DATE(COALESCE(a)) |
|
+------------+-------------------+
|
| 2000-00-01 | NULL |
|
+------------+-------------------+
|
1 row in set, 1 warning (0.00 sec)
|
Attachments
Issue Links
- relates to
-
MDEV-8660 TIME(int_zerofill_column) returns a wrong result
- Closed