Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Critical
-
Resolution: Unresolved
-
10.6, 10.11, 11.4, 12.2, 11.8.3, 11.8
Description
The query result should be NULL.
CREATE TABLE t1 (c1 VARCHAR(20), PRIMARY KEY (c1(20))) ENGINE = InnoDB; |
INSERT INTO t1 VALUES ('RB'); |
SELECT (MAX((CAST(-1 AS DATE)))) FROM t1 GROUP BY c1; -- actual: {0000-00-00}, expected: {NULL} |
Attachments
Issue Links
- relates to
-
MDEV-38158 Incorrect query result
-
- Confirmed
-