You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mysql-test/main/opt_hints.result
+38-38Lines changed: 38 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -15,25 +15,25 @@ a
15
15
1
16
16
2
17
17
Warnings:
18
-
Warning 4213 Unresolved index name `t1`@`select#1` `idx_å` for NO_MRR hint
18
+
Warning 4220 Unresolved index name `t1`@`select#1` `idx_å` for NO_MRR hint
19
19
SELECT /*+ NO_MRR(t1 idx_a, idx_å, idx_A) */ a FROM t1;
20
20
a
21
21
1
22
22
2
23
23
Warnings:
24
-
Warning 4210 Hint NO_MRR(`t1` `idx_A`) is ignored as conflicting/duplicated
25
-
Warning 4213 Unresolved index name `t1`@`select#1` `idx_å` for NO_MRR hint
24
+
Warning 4217 Hint NO_MRR(`t1` `idx_A`) is ignored as conflicting/duplicated
25
+
Warning 4220 Unresolved index name `t1`@`select#1` `idx_å` for NO_MRR hint
26
26
DROP TABLE t1;
27
27
# Testing that query block names are accent sensitive case insensitive
28
28
CREATE TABLE t1 (a INT);
29
29
SELECT /*+ QB_NAME(a) BKA(t1@a) BKA(t1@A) */ * FROM t1;
30
30
a
31
31
Warnings:
32
-
Warning 4210 Hint BKA(`t1`@`A`) is ignored as conflicting/duplicated
32
+
Warning 4217 Hint BKA(`t1`@`A`) is ignored as conflicting/duplicated
33
33
SELECT /*+ QB_NAME(a) BKA(t1@a) BKA(t1@å) */ * FROM t1;
34
34
a
35
35
Warnings:
36
-
Warning 4211 Query block name `å` is not found for BKA hint
36
+
Warning 4218 Query block name `å` is not found for BKA hint
37
37
DROP TABLE t1;
38
38
CREATE TABLE t1(f1 INT, f2 INT);
39
39
INSERT INTO t1 VALUES
@@ -230,7 +230,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
230
230
1 SIMPLE t4 ref y_idx y_idx 5 const 1 100.00
231
231
1 SIMPLE t5 range x_idx x_idx 5 NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
232
232
Warnings:
233
-
Warning 4213 Unresolved index name `t5`@`select#2` `z_idx` for NO_ICP hint
233
+
Warning 4220 Unresolved index name `t5`@`select#2` `z_idx` for NO_ICP hint
234
234
Note 1003 select /*+ NO_ICP(`t5`@`select#2` `y_idx`) NO_ICP(`t5`@`select#2` `x_idx`) */ `test`.`t4`.`x` AS `x`,`test`.`t5`.`y` AS `y` from `test`.`t4` join `test`.`t4` `t5` where `test`.`t4`.`y` = 8 and `test`.`t5`.`x` between 7 and <cache>(8 + 0)
@@ -557,7 +557,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
557
557
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
558
558
1 SIMPLE t2 ALL f1 NULL NULL NULL 28 25.00 Using where; Using join buffer (flat, BNL join)
559
559
Warnings:
560
-
Warning 4211 Query block name `qb1` is not found for BKA hint
560
+
Warning 4218 Query block name `qb1` is not found for BKA hint
561
561
Note 1003 select /*+ QB_NAME(`qb1`) */ `test`.`t2`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f3` AS `f3` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`f1` = `test`.`t1`.`f1` and `test`.`t2`.`f2` between `test`.`t1`.`f1` and `test`.`t1`.`f2` and `test`.`t2`.`f2` + 1 >= `test`.`t1`.`f1` + 1
562
562
# Should not crash
563
563
PREPARE stmt1 FROM "SELECT /*+ BKA(t2) */ t2.f1, t2.f2, t2.f3 FROM t1,t2
@@ -601,9 +601,9 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
601
601
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
602
602
1 SIMPLE t2 ALL f1 NULL NULL NULL 28 25.00 Using where; Using join buffer (flat, BNL join)
603
603
Warnings:
604
-
Warning 4212 Unresolved table name `t3`@`select#1` for BKA hint
605
-
Warning 4212 Unresolved table name `t3`@`select#1` for NO_RANGE_OPTIMIZATION hint
606
-
Warning 4213 Unresolved index name `t3`@`select#1` `idx1` for NO_RANGE_OPTIMIZATION hint
604
+
Warning 4219 Unresolved table name `t3`@`select#1` for BKA hint
605
+
Warning 4219 Unresolved table name `t3`@`select#1` for NO_RANGE_OPTIMIZATION hint
606
+
Warning 4220 Unresolved index name `t3`@`select#1` `idx1` for NO_RANGE_OPTIMIZATION hint
607
607
Note 1003 select /*+ BKA(`t2`@`select#1`) NO_BNL(`t1`@`select#1`) */ `test`.`t2`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2`,`test`.`t2`.`f3` AS `f3` from `test`.`t1` join `test`.`t2` where `test`.`t2`.`f1` = `test`.`t1`.`f1` and `test`.`t2`.`f2` between `test`.`t1`.`f1` and `test`.`t1`.`f2` and `test`.`t2`.`f2` + 1 >= `test`.`t1`.`f1` + 1
608
608
# Check illegal syntax
609
609
EXPLAIN EXTENDED SELECT /*+ BKA(qb1 t3@qb1) */ f2 FROM
@@ -640,7 +640,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
640
640
1 SIMPLE tbl12 ALL NULL NULL NULL NULL 10 100.00 Using where
641
641
1 SIMPLE tbl13 hash_ALL a #hash#a 5 test.tbl12.a 1000 0.10 Using where; Using join buffer (flat, BNLH join)
642
642
Warnings:
643
-
Warning 4212 Unresolved table name `tbl2`@`select#1` for BKA hint
643
+
Warning 4219 Unresolved table name `tbl2`@`select#1` for BKA hint
644
644
Note 1003 select `test`.`tbl12`.`a` AS `a`,`test`.`tbl12`.`b` AS `b`,`test`.`tbl13`.`a` AS `a`,`test`.`tbl13`.`b` AS `b`,`test`.`tbl13`.`c` AS `c`,`test`.`tbl13`.`filler` AS `filler` from `test`.`t12` `tbl12` join `test`.`t13` `tbl13` where `test`.`tbl13`.`a` = `test`.`tbl12`.`a` and `test`.`tbl13`.`b` + 1 <= `test`.`tbl13`.`b` + 1
645
645
# Check that PS and conventional statements give the same result.
0 commit comments