Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 10.0, 10.1
-
Fix Version/s: 10.1.8
-
Component/s: Temporal Types
-
Labels:
-
Sprint:10.1.8-3
Description
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a TIME);
|
INSERT INTO t1 VALUES ('10:20:30'),('10:20:30');
|
SELECT MAX(a), MAX(COALESCE(a)) FROM t1;
|
returns
+----------+------------------+
|
| MAX(a) | MAX(COALESCE(a)) |
|
+----------+------------------+
|
| 10:20:30 | 7594:20:30 |
|
+----------+------------------+
|
The expected result is to return 10:20:30 for both columns.
Attachments
Issue Links
- relates to
-
MDEV-8862 Wrong field type for MAX(COALESCE(datetime_column))
-
- Closed
-