Skip to content

Commit 66bd0e7

Browse files
author
Dag Wanvik
committed
WL#12885
Change-Id: I3fada50797b4e61ceecf8aa3c61f4f32c553e80d
1 parent 668227a commit 66bd0e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2854
-241
lines changed

include/mem_root_deque.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License, version 2.0,
@@ -60,6 +60,8 @@ class mem_root_deque : public std::deque<T, Mem_root_allocator<T>> {
6060

6161
mem_root_deque(std::initializer_list<T> init, MEM_ROOT *mem_root)
6262
: super(std::move(init), Mem_root_allocator<T>(mem_root)) {}
63+
64+
mem_root_deque &operator=(const mem_root_deque &__c) = default;
6365
};
6466

6567
#endif // MEM_ROOT_DEQUE_H

mysql-test/r/derived.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ FROM t1 JOIN (SELECT a, b, @c:= a+b FROM t2) AS dt ON t1.a=dt.a;
24162416
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
24172417
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 2 100.00 Using where
24182418
1 PRIMARY <derived2> NULL ref <auto_key0> <auto_key0> 5 test.t1.a 2 100.00 NULL
2419-
2 DERIVED t2 NULL ALL NULL NULL NULL NULL 2 100.00 NULL
2419+
2 UNCACHEABLE DERIVED t2 NULL ALL NULL NULL NULL NULL 2 100.00 NULL
24202420
Warnings:
24212421
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
24222422
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`dt`.`a` AS `a`,`dt`.`b` AS `b`,`dt`.`@c:= a+b` AS `@c:= a+b` from `test`.`t1` join (/* select#2 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,(@c:=(`test`.`t2`.`a` + `test`.`t2`.`b`)) AS `@c:= a+b` from `test`.`t2`) `dt` where (`dt`.`a` = `test`.`t1`.`a`)

mysql-test/r/derived_correlated.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ EXPLAIN
12951295
"materialized_from_subquery": {
12961296
"using_temporary_table": true,
12971297
"dependent": true,
1298-
"cacheable": true,
1298+
"cacheable": false,
12991299
"query_block": {
13001300
"select_id": 2,
13011301
"message": "No tables used"
@@ -1322,7 +1322,7 @@ EXPLAIN
13221322
"materialized_from_subquery": {
13231323
"using_temporary_table": true,
13241324
"dependent": true,
1325-
"cacheable": true,
1325+
"cacheable": false,
13261326
"query_block": {
13271327
"select_id": 3,
13281328
"message": "No tables used"
@@ -1423,7 +1423,7 @@ EXPLAIN
14231423
"materialized_from_subquery": {
14241424
"using_temporary_table": true,
14251425
"dependent": true,
1426-
"cacheable": true,
1426+
"cacheable": false,
14271427
"query_block": {
14281428
"select_id": 2,
14291429
"message": "No tables used"
@@ -2839,7 +2839,7 @@ EXPLAIN
28392839
"materialized_from_subquery": {
28402840
"using_temporary_table": true,
28412841
"dependent": true,
2842-
"cacheable": true,
2842+
"cacheable": false,
28432843
"query_block": {
28442844
"select_id": 2,
28452845
"message": "No tables used"
@@ -2866,7 +2866,7 @@ EXPLAIN
28662866
"materialized_from_subquery": {
28672867
"using_temporary_table": true,
28682868
"dependent": true,
2869-
"cacheable": true,
2869+
"cacheable": false,
28702870
"query_block": {
28712871
"select_id": 3,
28722872
"message": "No tables used"
@@ -2967,7 +2967,7 @@ EXPLAIN
29672967
"materialized_from_subquery": {
29682968
"using_temporary_table": true,
29692969
"dependent": true,
2970-
"cacheable": true,
2970+
"cacheable": false,
29712971
"query_block": {
29722972
"select_id": 2,
29732973
"message": "No tables used"

mysql-test/r/opt_hints.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,10 +1963,10 @@ group by t2.a
19631963
;
19641964
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
19651965
1 PRIMARY <derived2> NULL ALL NULL NULL NULL NULL 2 100.00 NULL
1966-
2 DERIVED t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where
1966+
2 UNCACHEABLE DERIVED t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where
19671967
3 UNCACHEABLE SUBQUERY <derived4> NULL system NULL NULL NULL NULL 1 100.00 Using temporary
19681968
3 UNCACHEABLE SUBQUERY t2 NULL ALL NULL NULL NULL NULL 1 100.00 NULL
1969-
4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
1969+
4 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
19701970
Warnings:
19711971
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
19721972
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
@@ -1985,7 +1985,7 @@ id select_type table partitions type possible_keys key key_len ref rows filtered
19851985
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where
19861986
3 UNCACHEABLE SUBQUERY <derived4> NULL system NULL NULL NULL NULL 1 100.00 Using temporary
19871987
3 UNCACHEABLE SUBQUERY t2 NULL ALL NULL NULL NULL NULL 1 100.00 NULL
1988-
4 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
1988+
4 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
19891989
Warnings:
19901990
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
19911991
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.

mysql-test/r/subquery_all.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7397,7 +7397,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73977397
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73987398
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
73997399
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7400-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7400+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74017401
Warnings:
74027402
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74037403
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

mysql-test/r/subquery_all_bka.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7398,7 +7398,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73987398
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73997399
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
74007400
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7401-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7401+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74027402
Warnings:
74037403
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74047404
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

mysql-test/r/subquery_all_bka_nobnl.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7398,7 +7398,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73987398
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73997399
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
74007400
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7401-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7401+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74027402
Warnings:
74037403
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74047404
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

mysql-test/r/subquery_bugs.result

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,11 @@ WHERE col_varchar_key > @var1
531531
)
532532
);
533533
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
534-
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where
534+
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 1 100.00 NULL
535535
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where; FirstMatch(t1); Using join buffer (hash join)
536536
3 UNCACHEABLE SUBQUERY t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where
537537
Warnings:
538-
Note 1003 /* select#1 */ select `test`.`t1`.`col_varchar_key` AS `col_varchar_key` from `test`.`t1` semi join (`test`.`t1`) where ((`test`.`t1`.`col_varchar_key` = (/* select#3 */ select `test`.`t1`.`col_varchar_key` from `test`.`t1` where (`test`.`t1`.`col_varchar_key` > <cache>((@`var1`))))) and (`test`.`t1`.`col_varchar_key` = (/* select#3 */ select `test`.`t1`.`col_varchar_key` from `test`.`t1` where (`test`.`t1`.`col_varchar_key` > <cache>((@`var1`))))))
538+
Note 1003 /* select#1 */ select `test`.`t1`.`col_varchar_key` AS `col_varchar_key` from `test`.`t1` semi join (`test`.`t1`) where ((`test`.`t1`.`col_varchar_key` = `test`.`t1`.`col_varchar_key`) and (`test`.`t1`.`col_varchar_key` = (/* select#3 */ select `test`.`t1`.`col_varchar_key` from `test`.`t1` where (`test`.`t1`.`col_varchar_key` > <cache>((@`var1`))))))
539539
SELECT *
540540
FROM t1
541541
WHERE col_varchar_key IN
@@ -560,11 +560,11 @@ WHERE col_varchar_key = RAND()
560560
)
561561
);
562562
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
563-
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where
563+
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 1 100.00 NULL
564564
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where; FirstMatch(t1); Using join buffer (hash join)
565565
3 UNCACHEABLE SUBQUERY t1 NULL ALL NULL NULL NULL NULL 1 100.00 Using where
566566
Warnings:
567-
Note 1003 /* select#1 */ select `test`.`t1`.`col_varchar_key` AS `col_varchar_key` from `test`.`t1` semi join (`test`.`t1`) where ((`test`.`t1`.`col_varchar_key` = (/* select#3 */ select `test`.`t1`.`col_varchar_key` from `test`.`t1` where (`test`.`t1`.`col_varchar_key` = rand()))) and (`test`.`t1`.`col_varchar_key` = (/* select#3 */ select `test`.`t1`.`col_varchar_key` from `test`.`t1` where (`test`.`t1`.`col_varchar_key` = rand()))))
567+
Note 1003 /* select#1 */ select `test`.`t1`.`col_varchar_key` AS `col_varchar_key` from `test`.`t1` semi join (`test`.`t1`) where ((`test`.`t1`.`col_varchar_key` = `test`.`t1`.`col_varchar_key`) and (`test`.`t1`.`col_varchar_key` = (/* select#3 */ select `test`.`t1`.`col_varchar_key` from `test`.`t1` where (`test`.`t1`.`col_varchar_key` = rand()))))
568568
SELECT *
569569
FROM t1
570570
WHERE col_varchar_key IN

mysql-test/r/subquery_nomat_nosj.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7397,7 +7397,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73977397
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73987398
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
73997399
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7400-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7400+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74017401
Warnings:
74027402
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74037403
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

mysql-test/r/subquery_nomat_nosj_bka.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7398,7 +7398,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73987398
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73997399
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
74007400
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7401-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7401+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74027402
Warnings:
74037403
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74047404
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

mysql-test/r/subquery_nomat_nosj_bka_nobnl.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7398,7 +7398,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73987398
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73997399
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
74007400
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7401-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7401+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74027402
Warnings:
74037403
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74047404
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

mysql-test/r/subquery_none.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7396,7 +7396,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73967396
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73977397
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
73987398
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7399-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7399+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74007400
Warnings:
74017401
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74027402
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

mysql-test/r/subquery_none_bka.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7397,7 +7397,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73977397
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73987398
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
73997399
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7400-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7400+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74017401
Warnings:
74027402
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74037403
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

mysql-test/r/subquery_none_bka_nobnl.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7397,7 +7397,7 @@ WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR
73977397
sq4_alias1.col_varchar_key = @var3 ) AS alias3;
73987398
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
73997399
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7400-
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
7400+
2 UNCACHEABLE DERIVED NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
74017401
Warnings:
74027402
Warning 1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELECT expression(s) INTO variables(s)'.
74037403
Note 1003 /* select#1 */ select NULL AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from (/* select#2 */ select (@var3:=12) AS `@var3:=12`,NULL AS `pk`,NULL AS `col_int_nokey`,NULL AS `col_int_key`,NULL AS `col_time_key`,NULL AS `col_varchar_key`,NULL AS `col_varchar_nokey` from `test`.`t1` `sq4_alias1` where (((NULL + NULL) is null) or (NULL = (@`var3`)))) `alias3`

0 commit comments

Comments
 (0)