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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2f6912da
Commit
2f6912da
authored
Apr 23, 2021
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-24898: Server crashes in st_select_lex::next_select
(trivial backport to 10.2) Add a testcase
parent
c72c77ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/r/subselect4.result
mysql-test/r/subselect4.result
+11
-0
mysql-test/t/subselect4.test
mysql-test/t/subselect4.test
+13
-0
No files found.
mysql-test/r/subselect4.result
View file @
2f6912da
...
...
@@ -2772,3 +2772,14 @@ GROUP BY 1
)
1
DROP TABLE t1;
#
# MDEV-24898: Server crashes in st_select_lex::next_select / Item_subselect::is_expensive
# (Testcase)
#
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1),(2);
CREATE TABLE t2 (b INT);
INSERT INTO t2 VALUES (3),(4);
SELECT 1 IN (SELECT (SELECT a FROM t1) AS x FROM t2 GROUP BY x);
ERROR 21000: Subquery returns more than 1 row
drop table t1,t2;
mysql-test/t/subselect4.test
View file @
2f6912da
...
...
@@ -2269,3 +2269,16 @@ SELECT
);
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-24898: Server crashes in st_select_lex::next_select / Item_subselect::is_expensive
--
echo
# (Testcase)
--
echo
#
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(
1
),(
2
);
# Optional, fails either way
CREATE
TABLE
t2
(
b
INT
);
INSERT
INTO
t2
VALUES
(
3
),(
4
);
# Optional, fails either way
--
error
ER_SUBQUERY_NO_1_ROW
SELECT
1
IN
(
SELECT
(
SELECT
a
FROM
t1
)
AS
x
FROM
t2
GROUP
BY
x
);
drop
table
t1
,
t2
;
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