Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
42b928ca
Commit
42b928ca
authored
Sep 22, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix after previous cset: update test results
parent
0df523d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
mysql-test/r/subselect_sj2_mat.result
mysql-test/r/subselect_sj2_mat.result
+17
-0
sql/item_subselect.cc
sql/item_subselect.cc
+2
-0
No files found.
mysql-test/r/subselect_sj2_mat.result
View file @
42b928ca
...
@@ -760,6 +760,23 @@ LEFT JOIN t2 AS SQ4_alias3 ON SQ4_alias3.f10
...
@@ -760,6 +760,23 @@ LEFT JOIN t2 AS SQ4_alias3 ON SQ4_alias3.f10
GROUP BY field2;
GROUP BY field2;
field2
field2
drop table t1, t2, t3;
drop table t1, t2, t3;
#
# BUG#849763: Wrong result with second execution of prepared statement with semijoin + view
#
CREATE TABLE t1 ( c varchar(1)) engine=innodb;
INSERT INTO t1 VALUES ('r');
CREATE TABLE t2 ( a integer, b varchar(1), c varchar(1)) engine=innodb;
INSERT INTO t2 VALUES (1,'r','r');
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
PREPARE st1 FROM 'SELECT * FROM t2 WHERE a = SOME (SELECT a FROM v1 WHERE v1.c = t2.c)';
EXECUTE st1;
a b c
1 r r
EXECUTE st1;
a b c
1 r r
DROP VIEW v1;
DROP TABLE t1, t2;
set optimizer_switch=@subselect_sj2_tmp;
set optimizer_switch=@subselect_sj2_tmp;
set optimizer_switch=default;
set optimizer_switch=default;
select @@optimizer_switch like '%materialization=on%';
select @@optimizer_switch like '%materialization=on%';
...
...
sql/item_subselect.cc
View file @
42b928ca
...
@@ -2477,6 +2477,8 @@ void Item_in_subselect::fix_after_pullout(st_select_lex *new_parent, Item **ref)
...
@@ -2477,6 +2477,8 @@ void Item_in_subselect::fix_after_pullout(st_select_lex *new_parent, Item **ref)
{
{
left_expr
->
fix_after_pullout
(
new_parent
,
&
left_expr
);
left_expr
->
fix_after_pullout
(
new_parent
,
&
left_expr
);
Item_subselect
::
fix_after_pullout
(
new_parent
,
ref
);
Item_subselect
::
fix_after_pullout
(
new_parent
,
ref
);
//psergey-todo: the above looks odd, why don't we 'aggregate' left_expr with
//the rest?
}
}
void
Item_in_subselect
::
update_used_tables
()
void
Item_in_subselect
::
update_used_tables
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment