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
d6f7649d
Commit
d6f7649d
authored
Aug 28, 2013
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mdev-4942: Add another testcase after merging with other fixes.
parent
184df985
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
mysql-test/r/join_outer.result
mysql-test/r/join_outer.result
+12
-0
mysql-test/r/join_outer_jcl6.result
mysql-test/r/join_outer_jcl6.result
+12
-0
mysql-test/t/join_outer.test
mysql-test/t/join_outer.test
+13
-0
No files found.
mysql-test/r/join_outer.result
View file @
d6f7649d
...
...
@@ -2158,6 +2158,18 @@ SELECT * FROM t1 LEFT JOIN t2 ON i1 = j2 WHERE d1 IS NULL AND 1 OR i1 = i2;
i1 d1 i2 j2
2 0000-00-00 NULL NULL
DROP TABLE t1,t2;
# Another testcase
CREATE TABLE t1 (i1 INT) ENGINE=MyISAM;
INSERT INTO t1 VALUES (NULL);
CREATE TABLE t2 (i2 INT, a INT, b INT) ENGINE=MyISAM;
CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
INSERT INTO t2 VALUES (NULL,1,2),(NULL,2,3);
SELECT * FROM t1 LEFT JOIN v2 ON i1 = i2 WHERE a < b;
i1 i2 a b
SELECT * FROM t1 LEFT JOIN t2 ON i1 = i2 WHERE a < b;
i1 i2 a b
drop view v2;
drop table t1,t2;
#
# Bug mdev-4942: LEFT JOIN with conjunctive
# <non-nullable datetime field> IS NULL in WHERE
...
...
mysql-test/r/join_outer_jcl6.result
View file @
d6f7649d
...
...
@@ -2169,6 +2169,18 @@ SELECT * FROM t1 LEFT JOIN t2 ON i1 = j2 WHERE d1 IS NULL AND 1 OR i1 = i2;
i1 d1 i2 j2
2 0000-00-00 NULL NULL
DROP TABLE t1,t2;
# Another testcase
CREATE TABLE t1 (i1 INT) ENGINE=MyISAM;
INSERT INTO t1 VALUES (NULL);
CREATE TABLE t2 (i2 INT, a INT, b INT) ENGINE=MyISAM;
CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
INSERT INTO t2 VALUES (NULL,1,2),(NULL,2,3);
SELECT * FROM t1 LEFT JOIN v2 ON i1 = i2 WHERE a < b;
i1 i2 a b
SELECT * FROM t1 LEFT JOIN t2 ON i1 = i2 WHERE a < b;
i1 i2 a b
drop view v2;
drop table t1,t2;
#
# Bug mdev-4942: LEFT JOIN with conjunctive
# <non-nullable datetime field> IS NULL in WHERE
...
...
mysql-test/t/join_outer.test
View file @
d6f7649d
...
...
@@ -1706,6 +1706,19 @@ INSERT INTO t2 VALUES (1,10),(2,20);
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
i1
=
j2
WHERE
d1
IS
NULL
AND
1
OR
i1
=
i2
;
DROP
TABLE
t1
,
t2
;
--
echo
# Another testcase
CREATE
TABLE
t1
(
i1
INT
)
ENGINE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
NULL
);
CREATE
TABLE
t2
(
i2
INT
,
a
INT
,
b
INT
)
ENGINE
=
MyISAM
;
CREATE
ALGORITHM
=
TEMPTABLE
VIEW
v2
AS
SELECT
*
FROM
t2
;
INSERT
INTO
t2
VALUES
(
NULL
,
1
,
2
),(
NULL
,
2
,
3
);
SELECT
*
FROM
t1
LEFT
JOIN
v2
ON
i1
=
i2
WHERE
a
<
b
;
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
i1
=
i2
WHERE
a
<
b
;
drop
view
v2
;
drop
table
t1
,
t2
;
--
echo
#
--
echo
# Bug mdev-4942: LEFT JOIN with conjunctive
...
...
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