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
0a638f6b
Commit
0a638f6b
authored
Jul 07, 2008
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#37627: addendum :
- moved the test into a separate file to check for presence of the test variable
parent
124dea7f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
28 deletions
+30
-28
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+1
-13
mysql-test/r/subselect_debug.result
mysql-test/r/subselect_debug.result
+12
-0
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+1
-15
mysql-test/t/subselect_debug.test
mysql-test/t/subselect_debug.test
+16
-0
No files found.
mysql-test/r/subselect.result
View file @
0a638f6b
...
@@ -4398,16 +4398,4 @@ INSERT INTO t1 VALUES (1), (3);
...
@@ -4398,16 +4398,4 @@ INSERT INTO t1 VALUES (1), (3);
SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
a b
a b
DROP TABLE t1,t2;
DROP TABLE t1,t2;
CREATE TABLE t1(id INT);
End of 5.0 tests.
INSERT INTO t1 VALUES (1),(2),(3),(4);
INSERT INTO t1 SELECT a.id FROM t1 a,t1 b,t1 c,t1 d;
INSERT INTO t1 SELECT a.id FROM t1 a,t1 b,t1 c;
SET SESSION debug="d,subselect_exec_fail";
SELECT SUM(EXISTS(SELECT RAND() FROM t1)) FROM t1;
SUM(EXISTS(SELECT RAND() FROM t1))
0
SELECT REVERSE(EXISTS(SELECT RAND() FROM t1));
REVERSE(EXISTS(SELECT RAND() FROM t1))
0
SET SESSION debug=DEFAULT;
DROP TABLE t1;
mysql-test/r/subselect_debug.result
0 → 100644
View file @
0a638f6b
CREATE TABLE t1(id INT);
INSERT INTO t1 VALUES (1),(2),(3),(4);
INSERT INTO t1 SELECT a.id FROM t1 a,t1 b,t1 c,t1 d;
SET SESSION debug="d,subselect_exec_fail";
SELECT SUM(EXISTS(SELECT RAND() FROM t1)) FROM t1;
SUM(EXISTS(SELECT RAND() FROM t1))
0
SELECT REVERSE(EXISTS(SELECT RAND() FROM t1));
REVERSE(EXISTS(SELECT RAND() FROM t1))
0
SET SESSION debug=DEFAULT;
DROP TABLE t1;
mysql-test/t/subselect.test
View file @
0a638f6b
...
@@ -3299,18 +3299,4 @@ SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
...
@@ -3299,18 +3299,4 @@ SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
#
--
echo
End
of
5.0
tests
.
# Bug #37627: Killing query with sum(exists()) or avg(exists()) reproducibly
# crashes server
#
CREATE
TABLE
t1
(
id
INT
);
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
),(
4
);
INSERT
INTO
t1
SELECT
a
.
id
FROM
t1
a
,
t1
b
,
t1
c
,
t1
d
;
INSERT
INTO
t1
SELECT
a
.
id
FROM
t1
a
,
t1
b
,
t1
c
;
# Setup the mysqld to crash at certain point
SET
SESSION
debug
=
"d,subselect_exec_fail"
;
SELECT
SUM
(
EXISTS
(
SELECT
RAND
()
FROM
t1
))
FROM
t1
;
SELECT
REVERSE
(
EXISTS
(
SELECT
RAND
()
FROM
t1
));
SET
SESSION
debug
=
DEFAULT
;
DROP
TABLE
t1
;
mysql-test/t/subselect_debug.test
0 → 100644
View file @
0a638f6b
--
source
include
/
have_debug
.
inc
#
# Bug #37627: Killing query with sum(exists()) or avg(exists()) reproducibly
# crashes server
#
CREATE
TABLE
t1
(
id
INT
);
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
),(
4
);
INSERT
INTO
t1
SELECT
a
.
id
FROM
t1
a
,
t1
b
,
t1
c
,
t1
d
;
# Setup the mysqld to crash at certain point
SET
SESSION
debug
=
"d,subselect_exec_fail"
;
SELECT
SUM
(
EXISTS
(
SELECT
RAND
()
FROM
t1
))
FROM
t1
;
SELECT
REVERSE
(
EXISTS
(
SELECT
RAND
()
FROM
t1
));
SET
SESSION
debug
=
DEFAULT
;
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