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
4cf3cb72
Commit
4cf3cb72
authored
Oct 30, 2011
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backported the test case for bug 58837. The fix was backported earlier.
parent
7bc6a83b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
0 deletions
+100
-0
mysql-test/include/icp_tests.inc
mysql-test/include/icp_tests.inc
+31
-0
mysql-test/r/innodb_icp.result
mysql-test/r/innodb_icp.result
+23
-0
mysql-test/r/maria_icp.result
mysql-test/r/maria_icp.result
+23
-0
mysql-test/r/myisam_icp.result
mysql-test/r/myisam_icp.result
+23
-0
No files found.
mysql-test/include/icp_tests.inc
View file @
4cf3cb72
...
@@ -492,6 +492,37 @@ DROP TABLE t1;
...
@@ -492,6 +492,37 @@ DROP TABLE t1;
set
optimizer_switch
=
@
save_optimizer_switch
;
set
optimizer_switch
=
@
save_optimizer_switch
;
--
echo
#
--
echo
# Bug#58837: ICP crash or valgrind error due to uninitialized
--
echo
# value in innobase_index_cond
--
echo
#
CREATE
TABLE
t1
(
t1_int
INT
,
t1_time
TIME
);
CREATE
TABLE
t2
(
t2_int
int
PRIMARY
KEY
,
t2_int2
INT
);
--
disable_warnings
INSERT
INTO
t2
VALUES
();
INSERT
INTO
t1
VALUES
();
--
enable_warnings
SELECT
*
FROM
t1
AS
t1a
WHERE
NOT
EXISTS
(
SELECT
*
FROM
t1
AS
t1b
WHERE
t1b
.
t1_int
NOT
IN
(
SELECT
t2
.
t2_int
FROM
t2
WHERE
t1b
.
t1_time
LIKE
t1b
.
t1_int
OR
t1b
.
t1_time
<>
t2
.
t2_int2
AND
6
=
7
));
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
#
--
echo
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
--
echo
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
--
echo
#
--
echo
#
...
...
mysql-test/r/innodb_icp.result
View file @
4cf3cb72
...
@@ -462,6 +462,29 @@ pk c1
...
@@ -462,6 +462,29 @@ pk c1
DROP TABLE t1;
DROP TABLE t1;
set optimizer_switch= @save_optimizer_switch;
set optimizer_switch= @save_optimizer_switch;
#
#
# Bug#58837: ICP crash or valgrind error due to uninitialized
# value in innobase_index_cond
#
CREATE TABLE t1 (
t1_int INT,
t1_time TIME
);
CREATE TABLE t2 (
t2_int int PRIMARY KEY,
t2_int2 INT
);
INSERT INTO t2 VALUES ();
INSERT INTO t1 VALUES ();
SELECT * FROM t1 AS t1a
WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
WHERE t1b.t1_int NOT IN
(SELECT t2.t2_int FROM t2
WHERE t1b.t1_time LIKE t1b.t1_int
OR t1b.t1_time <> t2.t2_int2
AND 6=7));
t1_int t1_time
DROP TABLE t1,t2;
#
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
#
#
CREATE TABLE t1 ( f11 int) ;
CREATE TABLE t1 ( f11 int) ;
...
...
mysql-test/r/maria_icp.result
View file @
4cf3cb72
...
@@ -468,6 +468,29 @@ pk c1
...
@@ -468,6 +468,29 @@ pk c1
DROP TABLE t1;
DROP TABLE t1;
set optimizer_switch= @save_optimizer_switch;
set optimizer_switch= @save_optimizer_switch;
#
#
# Bug#58837: ICP crash or valgrind error due to uninitialized
# value in innobase_index_cond
#
CREATE TABLE t1 (
t1_int INT,
t1_time TIME
);
CREATE TABLE t2 (
t2_int int PRIMARY KEY,
t2_int2 INT
);
INSERT INTO t2 VALUES ();
INSERT INTO t1 VALUES ();
SELECT * FROM t1 AS t1a
WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
WHERE t1b.t1_int NOT IN
(SELECT t2.t2_int FROM t2
WHERE t1b.t1_time LIKE t1b.t1_int
OR t1b.t1_time <> t2.t2_int2
AND 6=7));
t1_int t1_time
DROP TABLE t1,t2;
#
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
#
#
CREATE TABLE t1 ( f11 int) ;
CREATE TABLE t1 ( f11 int) ;
...
...
mysql-test/r/myisam_icp.result
View file @
4cf3cb72
...
@@ -466,6 +466,29 @@ pk c1
...
@@ -466,6 +466,29 @@ pk c1
DROP TABLE t1;
DROP TABLE t1;
set optimizer_switch= @save_optimizer_switch;
set optimizer_switch= @save_optimizer_switch;
#
#
# Bug#58837: ICP crash or valgrind error due to uninitialized
# value in innobase_index_cond
#
CREATE TABLE t1 (
t1_int INT,
t1_time TIME
);
CREATE TABLE t2 (
t2_int int PRIMARY KEY,
t2_int2 INT
);
INSERT INTO t2 VALUES ();
INSERT INTO t1 VALUES ();
SELECT * FROM t1 AS t1a
WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
WHERE t1b.t1_int NOT IN
(SELECT t2.t2_int FROM t2
WHERE t1b.t1_time LIKE t1b.t1_int
OR t1b.t1_time <> t2.t2_int2
AND 6=7));
t1_int t1_time
DROP TABLE t1,t2;
#
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
#
#
CREATE TABLE t1 ( f11 int) ;
CREATE TABLE t1 ( f11 int) ;
...
...
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