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
4dff59a3
Commit
4dff59a3
authored
May 12, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Merge 5.2->5.3
parents
e10fecc0
e1b6e1b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
mysql-test/r/table_elim.result
mysql-test/r/table_elim.result
+21
-0
mysql-test/t/table_elim.test
mysql-test/t/table_elim.test
+24
-0
No files found.
mysql-test/r/table_elim.result
View file @
4dff59a3
...
@@ -570,6 +570,27 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -570,6 +570,27 @@ id select_type table type possible_keys key key_len ref rows Extra
# as that violates the "no interleaving of outer join nests" rule.
# as that violates the "no interleaving of outer join nests" rule.
DROP TABLE t1,t2,t3,t4,t5;
DROP TABLE t1,t2,t3,t4,t5;
#
#
# BUG#997747: Assertion `join->best_read < ((double)1.79..5e+308L)'
# failed in greedy_search with LEFT JOINs and unique keys
#
CREATE TABLE t1 (a1 INT);
CREATE TABLE t2 (b1 INT);
CREATE TABLE t3 (c1 INT, UNIQUE KEY(c1));
CREATE TABLE t4 (d1 INT, UNIQUE KEY(d1));
CREATE TABLE t5 (e1 INT);
INSERT INTO t1 VALUES (1),(2);
INSERT INTO t2 VALUES (2),(3);
INSERT INTO t3 VALUES (3),(4);
INSERT INTO t4 VALUES (4),(5);
INSERT INTO t5 VALUES (5),(6);
SELECT a1 FROM t1 LEFT JOIN t2 LEFT JOIN t3 LEFT JOIN t4
ON c1 = d1 ON d1 = b1 ON a1 = b1
LEFT JOIN t5 ON a1 = e1 ;
a1
1
2
DROP TABLE t1,t2,t3,t4,t5;
#
# BUG#884184: Wrong result with RIGHT JOIN + derived_merge
# BUG#884184: Wrong result with RIGHT JOIN + derived_merge
#
#
CREATE TABLE t1 (a int(11), b varchar(1)) ;
CREATE TABLE t1 (a int(11), b varchar(1)) ;
...
...
mysql-test/t/table_elim.test
View file @
4dff59a3
...
@@ -503,6 +503,28 @@ WHERE t3.f2 ;
...
@@ -503,6 +503,28 @@ WHERE t3.f2 ;
DROP
TABLE
t1
,
t2
,
t3
,
t4
,
t5
;
DROP
TABLE
t1
,
t2
,
t3
,
t4
,
t5
;
--
echo
#
--
echo
# BUG#997747: Assertion `join->best_read < ((double)1.79..5e+308L)'
--
echo
# failed in greedy_search with LEFT JOINs and unique keys
--
echo
#
CREATE
TABLE
t1
(
a1
INT
);
CREATE
TABLE
t2
(
b1
INT
);
CREATE
TABLE
t3
(
c1
INT
,
UNIQUE
KEY
(
c1
));
CREATE
TABLE
t4
(
d1
INT
,
UNIQUE
KEY
(
d1
));
CREATE
TABLE
t5
(
e1
INT
);
INSERT
INTO
t1
VALUES
(
1
),(
2
);
INSERT
INTO
t2
VALUES
(
2
),(
3
);
INSERT
INTO
t3
VALUES
(
3
),(
4
);
INSERT
INTO
t4
VALUES
(
4
),(
5
);
INSERT
INTO
t5
VALUES
(
5
),(
6
);
SELECT
a1
FROM
t1
LEFT
JOIN
t2
LEFT
JOIN
t3
LEFT
JOIN
t4
ON
c1
=
d1
ON
d1
=
b1
ON
a1
=
b1
LEFT
JOIN
t5
ON
a1
=
e1
;
DROP
TABLE
t1
,
t2
,
t3
,
t4
,
t5
;
--
echo
#
--
echo
#
--
echo
# BUG#884184: Wrong result with RIGHT JOIN + derived_merge
--
echo
# BUG#884184: Wrong result with RIGHT JOIN + derived_merge
--
echo
#
--
echo
#
...
@@ -521,4 +543,6 @@ EXPLAIN SELECT alias1.* FROM t3 LEFT JOIN v1 as alias1 ON ( t3.a = alias1.b );
...
@@ -521,4 +543,6 @@ EXPLAIN SELECT alias1.* FROM t3 LEFT JOIN v1 as alias1 ON ( t3.a = alias1.b );
drop
view
v1
;
drop
view
v1
;
DROP
TABLE
t1
,
t2
,
t3
;
DROP
TABLE
t1
,
t2
,
t3
;
SET
optimizer_switch
=@
save_optimizer_switch
;
SET
optimizer_switch
=@
save_optimizer_switch
;
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