Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL)
-
None
Description
This script erroneously treats '' as a correct INET6 value of '::' and returns one row:
CREATE OR REPLACE TABLE t1 (a INET6); |
INSERT INTO t1 VALUES ('::'); |
SELECT * FROM t1 WHERE a IN ('','::1'); |
+------+
|
| a |
|
+------+
|
| :: |
|
+------+
|
1 row in set, 1 warning (0.000 sec)
|
The comparison operator works as expected on the contrary:
SELECT * FROM t1 WHERE a=''; |
Empty set, 2 warnings (0.001 sec)
|
Attachments
Issue Links
- relates to
-
MDEV-27207 Assertion `!m_null_value' failed in int FixedBinTypeBundle<FbtImpl>::cmp_item_fbt::compare or in cmp_item_inet6::compare
- Closed