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
e2afdb1e
Commit
e2afdb1e
authored
Jul 21, 2017
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13344: Server crashes in in AGGR_OP::put_record on subquery
Add a testcase
parent
17fc288b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/r/win.result
mysql-test/r/win.result
+11
-0
mysql-test/t/win.test
mysql-test/t/win.test
+9
-0
No files found.
mysql-test/r/win.result
View file @
e2afdb1e
...
...
@@ -3149,3 +3149,14 @@ ROW_NUMBER() OVER() i
SELECT ROW_NUMBER() OVER(), i FROM t1 WHERE 0;
ROW_NUMBER() OVER() i
DROP TABLE t1;
#
# MDEV-13344: Server crashes in in AGGR_OP::put_record on subquery
# with window function and constant table
# (Testcase only)
#
CREATE TABLE t1 (c CHAR(8)) ENGINE=MyISAM;
INSERT IGNORE INTO t1 VALUES ('foo');
SELECT ('bar',1) IN ( SELECT c, ROW_NUMBER() OVER (PARTITION BY c) FROM t1);
('bar',1) IN ( SELECT c, ROW_NUMBER() OVER (PARTITION BY c) FROM t1)
0
DROP TABLE t1;
mysql-test/t/win.test
View file @
e2afdb1e
...
...
@@ -1933,4 +1933,13 @@ SELECT DISTINCT ROW_NUMBER() OVER(), i FROM t1 WHERE 0;
SELECT
ROW_NUMBER
()
OVER
(),
i
FROM
t1
WHERE
0
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-13344: Server crashes in in AGGR_OP::put_record on subquery
--
echo
# with window function and constant table
--
echo
# (Testcase only)
--
echo
#
CREATE
TABLE
t1
(
c
CHAR
(
8
))
ENGINE
=
MyISAM
;
INSERT
IGNORE
INTO
t1
VALUES
(
'foo'
);
SELECT
(
'bar'
,
1
)
IN
(
SELECT
c
,
ROW_NUMBER
()
OVER
(
PARTITION
BY
c
)
FROM
t1
);
DROP
TABLE
t1
;
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