File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
plugin/type_uuid/mysql-test/type_uuid Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -3171,3 +3171,19 @@ SELECT * FROM companies;
3171
3171
id name
3172
3172
DROP TABLE divisions;
3173
3173
DROP TABLE companies;
3174
+ #
3175
+ # MDEV-27100 Subquery using the ALL keyword on UUID columns produces a wrong result
3176
+ #
3177
+ CREATE TABLE t1 (d UUID);
3178
+ INSERT INTO t1 VALUES ('00000000-0000-0000-0000-111111111111'), ('11111111-0000-0000-0000-000000000000');
3179
+ SELECT * FROM t1 ORDER BY d;
3180
+ d
3181
+ 11111111-0000-0000-0000-000000000000
3182
+ 00000000-0000-0000-0000-111111111111
3183
+ SELECT * FROM t1 WHERE d <= ALL (SELECT * FROM t1);
3184
+ d
3185
+ 11111111-0000-0000-0000-000000000000
3186
+ SELECT * FROM t1 WHERE d >= ALL (SELECT * FROM t1);
3187
+ d
3188
+ 00000000-0000-0000-0000-111111111111
3189
+ DROP TABLE t1;
Original file line number Diff line number Diff line change @@ -1670,3 +1670,15 @@ DELETE FROM companies WHERE id IN (SELECT company_id FROM divisions);
1670
1670
SELECT * FROM companies;
1671
1671
DROP TABLE divisions;
1672
1672
DROP TABLE companies;
1673
+
1674
+
1675
+ --echo #
1676
+ --echo # MDEV-27100 Subquery using the ALL keyword on UUID columns produces a wrong result
1677
+ --echo #
1678
+
1679
+ CREATE TABLE t1 (d UUID);
1680
+ INSERT INTO t1 VALUES ('00000000-0000-0000-0000-111111111111'), ('11111111-0000-0000-0000-000000000000');
1681
+ SELECT * FROM t1 ORDER BY d;
1682
+ SELECT * FROM t1 WHERE d <= ALL (SELECT * FROM t1);
1683
+ SELECT * FROM t1 WHERE d >= ALL (SELECT * FROM t1);
1684
+ DROP TABLE t1;
You can’t perform that action at this time.
0 commit comments