Commit 89e16428 authored by Sergey Petrunya's avatar Sergey Petrunya

- Make subselect_sj2 testcase more stable

- Better comments
parent d46a8854
...@@ -359,6 +359,10 @@ Canada ...@@ -359,6 +359,10 @@ Canada
China China
Czech Republic Czech Republic
drop table t1, t2; drop table t1, t2;
drop procedure if exists p1;
drop procedure if exists p2;
drop procedure if exists p3;
drop procedure if exists p4;
CREATE TABLE t1(a INT); CREATE TABLE t1(a INT);
CREATE TABLE t2(c INT); CREATE TABLE t2(c INT);
CREATE PROCEDURE p1(v1 int) CREATE PROCEDURE p1(v1 int)
......
...@@ -363,6 +363,10 @@ Canada ...@@ -363,6 +363,10 @@ Canada
China China
Czech Republic Czech Republic
drop table t1, t2; drop table t1, t2;
drop procedure if exists p1;
drop procedure if exists p2;
drop procedure if exists p3;
drop procedure if exists p4;
CREATE TABLE t1(a INT); CREATE TABLE t1(a INT);
CREATE TABLE t2(c INT); CREATE TABLE t2(c INT);
CREATE PROCEDURE p1(v1 int) CREATE PROCEDURE p1(v1 int)
......
...@@ -490,6 +490,12 @@ drop table t1, t2; ...@@ -490,6 +490,12 @@ drop table t1, t2;
# Bug#33062: subquery in stored routine cause crash # Bug#33062: subquery in stored routine cause crash
# #
--disable_warnings
drop procedure if exists p1;
drop procedure if exists p2;
drop procedure if exists p3;
drop procedure if exists p4;
--enable_warnings
CREATE TABLE t1(a INT); CREATE TABLE t1(a INT);
CREATE TABLE t2(c INT); CREATE TABLE t2(c INT);
......
...@@ -46,6 +46,7 @@ class Item_subselect :public Item_result_field ...@@ -46,6 +46,7 @@ class Item_subselect :public Item_result_field
< child_join->prepare < child_join->prepare
< engine->prepare < engine->prepare
*ref= substitution; *ref= substitution;
substitution= NULL;
< Item_subselect::fix_fields < Item_subselect::fix_fields
*/ */
Item *substitution; Item *substitution;
...@@ -390,6 +391,7 @@ class Item_in_subselect :public Item_exists_subselect ...@@ -390,6 +391,7 @@ class Item_in_subselect :public Item_exists_subselect
We can't remove it altogether as it is used to classify contents in We can't remove it altogether as it is used to classify contents in
join->sj_subselects. join->sj_subselects.
jtbm-todo: option 1: let sj_subselects list pairs.
*/ */
bool convert_to_semi_join; bool convert_to_semi_join;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment