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
3036c420
Commit
3036c420
authored
Apr 25, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#202 add test cases for mdev-5932
parent
08ddd60d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
0 deletions
+67
-0
mysql-test/suite/tokudb.bugs/r/mdev5932.result
mysql-test/suite/tokudb.bugs/r/mdev5932.result
+26
-0
mysql-test/suite/tokudb.bugs/t/mdev5932.test
mysql-test/suite/tokudb.bugs/t/mdev5932.test
+41
-0
No files found.
mysql-test/suite/tokudb.bugs/r/mdev5932.result
0 → 100644
View file @
3036c420
drop table if exists t1,t2;
drop table if exists t1i,t2i;
CREATE TABLE t1 (a CHAR(3), INDEX(a)) ENGINE=TokuDB;
INSERT INTO t1 VALUES ('foo'),( NULL);
SELECT * FROM t1 WHERE 'bar' NOT IN ( SELECT t1_1.a FROM t1 AS t1_1, t1 AS t1_2 );
a
CREATE TABLE t2 AS
SELECT * FROM t1 WHERE 'bar' NOT IN ( SELECT t1_1.a FROM t1 AS t1_1, t1 AS t1_2 );
SELECT * FROM t2;
a
CREATE TABLE tsub AS SELECT t1_1.a FROM t1 AS t1_1, t1 AS t1_2;
CREATE TABLE t3 AS
SELECT * FROM t1 WHERE 'bar' NOT IN ( SELECT * FROM tsub );
SELECT * FROM t3;
a
DROP TABLE tsub, t3;
CREATE TABLE t1i (a CHAR(3), INDEX(a)) ENGINE=InnoDB;
INSERT INTO t1i VALUES ('foo'),( NULL);
SELECT * FROM t1i WHERE 'bar' NOT IN ( SELECT t1_1.a FROM t1i AS t1_1, t1i AS t1_2 );
a
CREATE TABLE t2i AS
SELECT * FROM t1i WHERE 'bar' NOT IN ( SELECT t1_1.a FROM t1i AS t1_1, t1i AS t1_2 );
SELECT * FROM t2i;
a
include/diff_tables.inc [t2,t2i]
drop table t1,t2,t1i,t2i;
mysql-test/suite/tokudb.bugs/t/mdev5932.test
0 → 100644
View file @
3036c420
source
include
/
have_tokudb
.
inc
;
source
include
/
have_innodb
.
inc
;
disable_warnings
;
drop
table
if
exists
t1
,
t2
;
drop
table
if
exists
t1i
,
t2i
;
enable_warnings
;
CREATE
TABLE
t1
(
a
CHAR
(
3
),
INDEX
(
a
))
ENGINE
=
TokuDB
;
INSERT
INTO
t1
VALUES
(
'foo'
),(
NULL
);
SELECT
*
FROM
t1
WHERE
'bar'
NOT
IN
(
SELECT
t1_1
.
a
FROM
t1
AS
t1_1
,
t1
AS
t1_2
);
CREATE
TABLE
t2
AS
SELECT
*
FROM
t1
WHERE
'bar'
NOT
IN
(
SELECT
t1_1
.
a
FROM
t1
AS
t1_1
,
t1
AS
t1_2
);
SELECT
*
FROM
t2
;
CREATE
TABLE
tsub
AS
SELECT
t1_1
.
a
FROM
t1
AS
t1_1
,
t1
AS
t1_2
;
CREATE
TABLE
t3
AS
SELECT
*
FROM
t1
WHERE
'bar'
NOT
IN
(
SELECT
*
FROM
tsub
);
SELECT
*
FROM
t3
;
DROP
TABLE
tsub
,
t3
;
CREATE
TABLE
t1i
(
a
CHAR
(
3
),
INDEX
(
a
))
ENGINE
=
InnoDB
;
INSERT
INTO
t1i
VALUES
(
'foo'
),(
NULL
);
SELECT
*
FROM
t1i
WHERE
'bar'
NOT
IN
(
SELECT
t1_1
.
a
FROM
t1i
AS
t1_1
,
t1i
AS
t1_2
);
CREATE
TABLE
t2i
AS
SELECT
*
FROM
t1i
WHERE
'bar'
NOT
IN
(
SELECT
t1_1
.
a
FROM
t1i
AS
t1_1
,
t1i
AS
t1_2
);
SELECT
*
FROM
t2i
;
let
$diff_tables
=
t2
,
t2i
;
source
include
/
diff_tables
.
inc
;
drop
table
t1
,
t2
,
t1i
,
t2i
;
\ No newline at end of file
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