Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4.11, 5.5(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
-
None
-
Ubuntu 19.04
Description
Consider the following statements:
CREATE TABLE t0(c0 INT NOT NULL, c1 CHAR UNIQUE);
|
INSERT INTO t0 VALUES (0, 1);
|
INSERT INTO t0 VALUES (0, '');
|
SELECT SUM(a.t) FROM (SELECT (c1 RLIKE c1) = (c0 IS NULL) as t FROM t0) as a; -- expected: 1, actual: 0
|
I would expect SUM() to yield 1, because the expression evaluates to TRUE for one row:
SELECT (c1 RLIKE c1) = (c0 IS NULL) FROM t0; -- 1, 0
|
Attachments
Issue Links
- is duplicated by
-
MDEV-33344 REGEXP empty string inconsistent
- Closed
- relates to
-
MDEV-33344 REGEXP empty string inconsistent
- Closed