Skip to content

Commit 8e8f9c4

Browse files
committed
WL#4745: Remove PROCEDURE ANALYSE.
1 parent 0e1ca4e commit 8e8f9c4

Some content is hidden

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

45 files changed

+77
-2954
lines changed

include/sql_string.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef SQL_STRING_INCLUDED
22
#define SQL_STRING_INCLUDED
33

4-
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
4+
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
55
66
This program is free software; you can redistribute it and/or modify
77
it under the terms of the GNU General Public License as published by
@@ -712,4 +712,7 @@ inline LEX_CSTRING to_lex_cstring(const char *s)
712712
bool
713713
validate_string(const CHARSET_INFO *cs, const char *str, uint32 length,
714714
size_t *valid_length, bool *length_error);
715+
716+
bool append_escaped(String *to_str, const String *from_str);
717+
715718
#endif /* SQL_STRING_INCLUDED */

mysql-test/include/subquery.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ SELECT * FROM (SELECT 1 as id) b WHERE id IN (SELECT * FROM (SELECT 1 as id) c O
4343
SELECT * FROM (SELECT 1) a WHERE 1 IN (SELECT 1,1);
4444
SELECT 1 IN (SELECT 1);
4545
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
46-
-- error ER_WRONG_USAGE
47-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
48-
-- error ER_PARSE_ERROR
49-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
5046
-- error ER_BAD_FIELD_ERROR
5147
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
5248
-- error ER_BAD_FIELD_ERROR

mysql-test/r/analyze.result

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ analyze table t1;
3939
Table Op Msg_type Msg_text
4040
test.t1 analyze status OK
4141
drop table t1;
42-
CREATE TABLE t1 (a int);
43-
prepare stmt1 from "SELECT * FROM t1 PROCEDURE ANALYSE()";
44-
execute stmt1;
45-
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
46-
execute stmt1;
47-
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
48-
deallocate prepare stmt1;
49-
drop table t1;
5042
create temporary table t1(a int, index(a));
5143
insert into t1 values('1'),('2'),('3'),('4'),('5');
5244
analyze table t1;

mysql-test/r/func_analyse.result

Lines changed: 0 additions & 395 deletions
This file was deleted.

mysql-test/r/parser.result

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -728,54 +728,27 @@ SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
728728
FOR UPDATE;
729729
1
730730
1
731-
SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
732-
PROCEDURE ANALYSE() FOR UPDATE;
733-
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
734-
1 1 1 1 1 0 0 1.0000 0.0000 ENUM('1') NOT NULL
735731
SELECT 1 FROM
736732
(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
737733
FOR UPDATE) a;
738734
1
739735
1
740-
SELECT 1 FROM
741-
(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
742-
PROCEDURE ANALYSE() FOR UPDATE) a;
743-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
744736
SELECT 1 FROM t1
745737
WHERE EXISTS(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
746738
FOR UPDATE);
747739
1
748740
SELECT 1 FROM t1
749-
WHERE EXISTS(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
750-
PROCEDURE ANALYSE() FOR UPDATE);
751-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
752-
SELECT 1 FROM t1
753741
UNION
754742
SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
755743
FOR UPDATE;
756744
1
757745
1
758-
SELECT 1 FROM t1
759-
UNION
760-
SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
761-
PROCEDURE ANALYSE() FOR UPDATE;
762-
ERROR HY000: Incorrect usage of PROCEDURE and UNION
763-
SELECT 1 FROM DUAL PROCEDURE ANALYSE()
764-
UNION
765-
SELECT 1 FROM t1;
766-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNION
767-
SELECT 1 FROM t1' at line 2
768746
(SELECT 1 FROM t1)
769747
UNION
770748
(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
771749
FOR UPDATE);
772750
1
773751
1
774-
(SELECT 1 FROM t1)
775-
UNION
776-
(SELECT 1 FROM DUAL WHERE 1 GROUP BY 1 HAVING 1 ORDER BY 1
777-
PROCEDURE ANALYSE() FOR UPDATE);
778-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
779752
# "FOR UPDATE" tests
780753
SELECT 1 FROM t1 UNION SELECT 1 FROM t1 ORDER BY 1 LIMIT 1;
781754
1
@@ -823,10 +796,6 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp
823796
SELECT 1 FROM t1 UNION SELECT 1 FROM t1 INTO @var17727401;
824797
Warnings:
825798
Warning 1329 No data - zero rows fetched, selected, or processed
826-
SELECT 1 INTO @var17727401 FROM t1 PROCEDURE ANALYSE();
827-
ERROR HY000: Incorrect usage of PROCEDURE and INTO
828-
SELECT 1 FROM t1 PROCEDURE ANALYSE() INTO @var17727401;
829-
ERROR HY000: Incorrect usage of PROCEDURE and INTO
830799
# ORDER and LIMIT clause combinations
831800
(SELECT 1 FROM t1 ORDER BY 1) ORDER BY 1;
832801
1
@@ -1358,18 +1327,6 @@ CREATE PROCEDURE p1() BEGIN IF whatever THEN SELECT 1; END IF; END|
13581327
CALL p1();
13591328
ERROR 42S22: Unknown column 'whatever' in 'field list'
13601329
DROP PROCEDURE p1;
1361-
SELECT 1 PROCEDURE ANALYSE() UNION SELECT 1;
1362-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNION SELECT 1' at line 1
1363-
SELECT 1 UNION SELECT 1 PROCEDURE ANALYSE() ;
1364-
ERROR HY000: Incorrect usage of PROCEDURE and UNION
1365-
(SELECT 1 PROCEDURE ANALYSE()) UNION SELECT 1;
1366-
ERROR HY000: Incorrect usage of UNION and SELECT ... PROCEDURE ANALYSE()
1367-
(SELECT 1 PROCEDURE ANALYSE()) UNION (SELECT 1);
1368-
ERROR HY000: Incorrect usage of UNION and SELECT ... PROCEDURE ANALYSE()
1369-
SELECT 1 UNION (SELECT 1 PROCEDURE ANALYSE());
1370-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
1371-
(SELECT 1) UNION (SELECT 1 PROCEDURE ANALYSE());
1372-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
13731330
#
13741331
# Part 2: Test of changed (fixed) behavior.
13751332
#
@@ -1753,16 +1710,6 @@ SELECT * FROM (SELECT a INTO @v FROM t1) t1a;
17531710
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT a INTO @v FROM t1) t1a' at line 1
17541711
SELECT * FROM (SELECT a INTO @v) t1a;
17551712
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT a INTO @v) t1a' at line 1
1756-
SELECT 1 PROCEDURE ANALYSE() INTO @v;
1757-
ERROR HY000: Incorrect usage of PROCEDURE and INTO
1758-
(SELECT 1 PROCEDURE ANALYSE() INTO @v);
1759-
ERROR HY000: Incorrect usage of PROCEDURE and INTO
1760-
(SELECT 1 UNION SELECT 1) ORDER BY 1 PROCEDURE ANALYSE();
1761-
ERROR HY000: Incorrect usage of PROCEDURE and UNION
1762-
(SELECT 1 UNION SELECT 1) LIMIT 1 PROCEDURE ANALYSE();
1763-
ERROR HY000: Incorrect usage of PROCEDURE and UNION
1764-
SELECT ( SELECT 1 PROCEDURE ANALYSE() ) a;
1765-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
17661713
DROP TABLE t1;
17671714
#
17681715
# Part 4: The <joined table> syntax.

mysql-test/r/sp-error.result

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,6 @@ CREATE PROCEDURE bug20953() CREATE VIEW v AS SELECT 1 INTO DUMPFILE "file";
12081208
ERROR HY000: View's SELECT contains a 'INTO' clause
12091209
CREATE PROCEDURE bug20953() CREATE VIEW v AS SELECT 1 INTO OUTFILE "file";
12101210
ERROR HY000: View's SELECT contains a 'INTO' clause
1211-
CREATE PROCEDURE bug20953()
1212-
CREATE VIEW v AS SELECT i FROM t1 PROCEDURE ANALYSE();
1213-
ERROR HY000: View's SELECT contains a 'PROCEDURE' clause
12141211
CREATE PROCEDURE bug20953() CREATE VIEW v AS SELECT 1 FROM (SELECT 1) AS d1;
12151212
DROP PROCEDURE bug20953;
12161213
CREATE PROCEDURE bug20953(i INT) CREATE VIEW v AS SELECT i;

mysql-test/r/subquery_all.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ SELECT 1 IN (SELECT 1);
8282
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8383
1
8484
1
85-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
86-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
87-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
88-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
8985
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
9086
ERROR 42S22: Unknown column 'a' in 'field list'
9187
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/subquery_all_bka.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ SELECT 1 IN (SELECT 1);
8383
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8484
1
8585
1
86-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
87-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
88-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
89-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
9086
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
9187
ERROR 42S22: Unknown column 'a' in 'field list'
9288
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/subquery_all_bka_nixbnl.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ SELECT 1 IN (SELECT 1);
8383
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8484
1
8585
1
86-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
87-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
88-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
89-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
9086
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
9187
ERROR 42S22: Unknown column 'a' in 'field list'
9288
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/subquery_nomat_nosj.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ SELECT 1 IN (SELECT 1);
8282
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8383
1
8484
1
85-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
86-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
87-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
88-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
8985
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
9086
ERROR 42S22: Unknown column 'a' in 'field list'
9187
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/subquery_nomat_nosj_bka.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ SELECT 1 IN (SELECT 1);
8383
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8484
1
8585
1
86-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
87-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
88-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
89-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
9086
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
9187
ERROR 42S22: Unknown column 'a' in 'field list'
9288
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/subquery_nomat_nosj_bka_nixbnl.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ SELECT 1 IN (SELECT 1);
8383
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8484
1
8585
1
86-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
87-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
88-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
89-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
9086
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
9187
ERROR 42S22: Unknown column 'a' in 'field list'
9288
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/subquery_none.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ SELECT 1 IN (SELECT 1);
8181
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8282
1
8383
1
84-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
85-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
86-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
87-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
8884
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
8985
ERROR 42S22: Unknown column 'a' in 'field list'
9086
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/subquery_none_bka.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ SELECT 1 IN (SELECT 1);
8282
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8383
1
8484
1
85-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
86-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
87-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
88-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
8985
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
9086
ERROR 42S22: Unknown column 'a' in 'field list'
9187
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/subquery_none_bka_nixbnl.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ SELECT 1 IN (SELECT 1);
8282
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
8383
1
8484
1
85-
select (SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(1));
86-
ERROR HY000: Incorrect usage of PROCEDURE and subquery
87-
SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE((SELECT 1));
88-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT 1))' at line 1
8985
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NULL;
9086
ERROR 42S22: Unknown column 'a' in 'field list'
9187
SELECT (SELECT 1) as a FROM (SELECT 1) b WHERE (SELECT a) IS NOT NULL;

mysql-test/r/view.result

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,8 +944,6 @@ ERROR HY000: View's SELECT contains a 'INTO' clause
944944
create view v1 as select 5 into outfile 'ttt';
945945
ERROR HY000: View's SELECT contains a 'INTO' clause
946946
create table t1 (a int);
947-
create view v1 as select a from t1 procedure analyse();
948-
ERROR HY000: View's SELECT contains a 'PROCEDURE' clause
949947
create view v1 as select 1 from (select 1) as d1;
950948
drop view v1;
951949
drop table t1;

mysql-test/suite/ndb/r/ndb_join_pushdown_bka.result

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -382,16 +382,6 @@ set ndb_join_pushdown=true;
382382
explain
383383
select *
384384
from t1
385-
join t1 as t2 on t2.a = t1.c and t2.b = t1.d procedure analyse();
386-
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
387-
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 ALL NULL NULL NULL NULL 16 100.00 NULL
388-
1 SIMPLE t2 p0,p1,p2,p3,p4,p5,p6,p7 eq_ref PRIMARY PRIMARY 8 test.t1.c,test.t1.d 1 100.00 Using join buffer (Batched Key Access)
389-
Warnings:
390-
Note 1003 Cannot push table 't2' as child of table 't1'. Doing so would prevent using join buffer for table 't2'.
391-
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t1` join `test`.`t1` `t2` where ((`test`.`t2`.`b` = `test`.`t1`.`d`) and (`test`.`t2`.`a` = `test`.`t1`.`c`))
392-
explain
393-
select *
394-
from t1
395385
join t1 as t2 on t2.a = t1.c and t2.b = t1.d
396386
where t1.a = 2 and t1.b = 3;
397387
id select_type table partitions type possible_keys key key_len ref rows filtered Extra

mysql-test/suite/ndb/r/ndb_join_pushdown_default.result

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,6 @@ set ndb_join_pushdown=true;
365365
explain
366366
select *
367367
from t1
368-
join t1 as t2 on t2.a = t1.c and t2.b = t1.d procedure analyse();
369-
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
370-
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 ALL NULL NULL NULL NULL 16 100.00 Parent of 2 pushed join@1
371-
1 SIMPLE t2 p0,p1,p2,p3,p4,p5,p6,p7 eq_ref PRIMARY PRIMARY 8 test.t1.c,test.t1.d 1 100.00 Child of 't1' in pushed join@1
372-
Warnings:
373-
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t1` join `test`.`t1` `t2` where ((`test`.`t2`.`b` = `test`.`t1`.`d`) and (`test`.`t2`.`a` = `test`.`t1`.`c`))
374-
explain
375-
select *
376-
from t1
377368
join t1 as t2 on t2.a = t1.c and t2.b = t1.d
378369
where t1.a = 2 and t1.b = 3;
379370
id select_type table partitions type possible_keys key key_len ref rows filtered Extra

mysql-test/suite/ndb/r/ndb_join_pushdown_nobnl.result

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -363,15 +363,6 @@ set ndb_join_pushdown=true;
363363
explain
364364
select *
365365
from t1
366-
join t1 as t2 on t2.a = t1.c and t2.b = t1.d procedure analyse();
367-
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
368-
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 ALL NULL NULL NULL NULL 16 100.00 Parent of 2 pushed join@1
369-
1 SIMPLE t2 p0,p1,p2,p3,p4,p5,p6,p7 eq_ref PRIMARY PRIMARY 8 test.t1.c,test.t1.d 1 100.00 Child of 't1' in pushed join@1
370-
Warnings:
371-
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t1` join `test`.`t1` `t2` where ((`test`.`t2`.`b` = `test`.`t1`.`d`) and (`test`.`t2`.`a` = `test`.`t1`.`c`))
372-
explain
373-
select *
374-
from t1
375366
join t1 as t2 on t2.a = t1.c and t2.b = t1.d
376367
where t1.a = 2 and t1.b = 3;
377368
id select_type table partitions type possible_keys key key_len ref rows filtered Extra

mysql-test/suite/ndb/r/ndb_join_pushdown_none.result

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,6 @@ set ndb_join_pushdown=true;
365365
explain
366366
select *
367367
from t1
368-
join t1 as t2 on t2.a = t1.c and t2.b = t1.d procedure analyse();
369-
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
370-
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 ALL NULL NULL NULL NULL 16 100.00 Parent of 2 pushed join@1
371-
1 SIMPLE t2 p0,p1,p2,p3,p4,p5,p6,p7 eq_ref PRIMARY PRIMARY 8 test.t1.c,test.t1.d 1 100.00 Child of 't1' in pushed join@1
372-
Warnings:
373-
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t1` join `test`.`t1` `t2` where ((`test`.`t2`.`b` = `test`.`t1`.`d`) and (`test`.`t2`.`a` = `test`.`t1`.`c`))
374-
explain
375-
select *
376-
from t1
377368
join t1 as t2 on t2.a = t1.c and t2.b = t1.d
378369
where t1.a = 2 and t1.b = 3;
379370
id select_type table partitions type possible_keys key key_len ref rows filtered Extra

mysql-test/suite/ndb/t/ndb_join_pushdown.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ left join t1 as t2 on t2.a = t1.b and t2.b = t1.c
145145
left join t1 as t3 on t3.a = t2.a and t3.b = t2.b;
146146

147147
set ndb_join_pushdown=true;
148-
explain
149-
select *
150-
from t1
151-
join t1 as t2 on t2.a = t1.c and t2.b = t1.d procedure analyse();
152148

153149
--replace_result p0,p1,p2,p3,p4,p5,p6,p7 pXYZ p0 pX p5 pX
154150
explain

mysql-test/t/analyze.test

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,6 @@ analyze table t1;
5353

5454
drop table t1;
5555

56-
#
57-
# procedure in PS BUG#13673
58-
#
59-
CREATE TABLE t1 (a int);
60-
prepare stmt1 from "SELECT * FROM t1 PROCEDURE ANALYSE()";
61-
execute stmt1;
62-
execute stmt1;
63-
deallocate prepare stmt1;
64-
drop table t1;
65-
6656
#
6757
# bug#15225 (ANALYZE temporary has no effect)
6858
#

0 commit comments

Comments
 (0)