Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4(EOL)
-
None
Description
CREATE OR REPLACE TABLE t1 (a YEAR); |
INSERT INTO t1 VALUES (NULL); |
SELECT COALESCE(a), DATE(COALESCE(a)) FROM t1; |
+-------------+-------------------+
|
| COALESCE(a) | DATE(COALESCE(a)) |
|
+-------------+-------------------+
|
| NULL | 0000-00-00 |
|
+-------------+-------------------+
|
The result for DATE(COALESCE(a)) is wrong. It should be NULL.
Attachments
Issue Links
- relates to
-
MDEV-16926 CAST(COALESCE(year_field)) returns wrong value
- Closed