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
4b08b10b
Commit
4b08b10b
authored
Feb 18, 2016
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-9489:Assertion `0' failed in Protocol::end_statement() on UNION ALL
Restoring currect_select fixed.
parent
fd8e846a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
mysql-test/r/subselect_mat.result
mysql-test/r/subselect_mat.result
+15
-0
mysql-test/t/subselect_mat.test
mysql-test/t/subselect_mat.test
+16
-0
sql/item_subselect.cc
sql/item_subselect.cc
+2
-0
No files found.
mysql-test/r/subselect_mat.result
View file @
4b08b10b
...
...
@@ -2518,3 +2518,18 @@ a b sq
4 4 1
4 2 1
drop table t1, t2;
#
# MDEV-9489: Assertion `0' failed in Protocol::end_statement() on
# UNION ALL
#
CREATE TABLE t1 (f1 INT);
CREATE TABLE t2 (f2 INT);
INSERT INTO t1 VALUES (1),(2);
( SELECT 1 FROM t1 WHERE f1 NOT IN ( SELECT f2 FROM t2 ) LIMIT 0 )
UNION ALL
( SELECT 1 FROM t1 WHERE f1 NOT IN ( SELECT f2 FROM t2 ) )
;
1
1
1
drop table t1, t2;
mysql-test/t/subselect_mat.test
View file @
4b08b10b
...
...
@@ -254,3 +254,19 @@ SELECT a, b, (a, b) NOT IN (SELECT a, b FROM t2) as sq
FROM
t1
;
drop
table
t1
,
t2
;
--
echo
#
--
echo
# MDEV-9489: Assertion `0' failed in Protocol::end_statement() on
--
echo
# UNION ALL
--
echo
#
CREATE
TABLE
t1
(
f1
INT
);
CREATE
TABLE
t2
(
f2
INT
);
INSERT
INTO
t1
VALUES
(
1
),(
2
);
(
SELECT
1
FROM
t1
WHERE
f1
NOT
IN
(
SELECT
f2
FROM
t2
)
LIMIT
0
)
UNION
ALL
(
SELECT
1
FROM
t1
WHERE
f1
NOT
IN
(
SELECT
f2
FROM
t2
)
)
;
drop
table
t1
,
t2
;
sql/item_subselect.cc
View file @
4b08b10b
...
...
@@ -5328,6 +5328,7 @@ int subselect_hash_sj_engine::exec()
item_in
->
reset
();
item_in
->
make_const
();
item_in
->
set_first_execution
();
thd
->
lex
->
current_select
=
save_select
;
DBUG_RETURN
(
FALSE
);
}
...
...
@@ -5371,6 +5372,7 @@ int subselect_hash_sj_engine::exec()
item_in
->
null_value
=
1
;
item_in
->
make_const
();
item_in
->
set_first_execution
();
thd
->
lex
->
current_select
=
save_select
;
DBUG_RETURN
(
FALSE
);
}
...
...
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