[MDEV-27099] Subquery using the ALL keyword on INET6 columns produces a wrong result Created: 2021-11-20  Updated: 2022-08-23  Resolved: 2022-08-23

Status: Closed
Project: MariaDB Server
Component/s: Data types, Plugin - INET6
Affects Version/s: 10.5, 10.6, 10.7
Fix Version/s: 10.5.18, 10.6.10, 10.7.6, 10.8.5, 10.9.3, 10.10.2

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-27100 Subquery using the ALL keyword on UUI... Closed
relates to MDEV-27101 Subquery using the ALL keyword on TIM... Closed
relates to MDEV-27098 Subquery using the ALL keyword on TIM... Closed

 Description   

The problem reported in MDEV-27098 for TIME is repeatable with the INET6 data type.

DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (d INET6);
INSERT INTO t1 VALUES ('1::0'), ('12::0');
SELECT * FROM t1 WHERE d >= ALL (SELECT * FROM t1);

+------+
| d    |
+------+
| 1::  |
| 12:: |
+------+

The expected result should contain only one with with the maximum value '12::'.


Generated at Thu Feb 08 09:50:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.