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
aeb5ab5d
Commit
aeb5ab5d
authored
Jun 15, 2005
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge rurik.mysql.com:/home/igor/mysql-5.0
into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
parents
66591aea
46325044
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
mysql-test/r/join_outer.result
mysql-test/r/join_outer.result
+8
-0
mysql-test/t/join_outer.test
mysql-test/t/join_outer.test
+12
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
mysql-test/r/join_outer.result
View file @
aeb5ab5d
...
...
@@ -975,3 +975,11 @@ EMPNUM NAME GRP
0 KERI 10
9 BARRY NULL
DROP TABLE t1,t2;
CREATE TABLE t1 (c11 int);
CREATE TABLE t2 (c21 int);
INSERT INTO t1 VALUES (30), (40), (50);
INSERT INTO t2 VALUES (300), (400), (500);
SELECT * FROM t1 LEFT JOIN t2 ON (c11=c21 AND c21=30) WHERE c11=40;
c11 c21
40 NULL
DROP TABLE t1, t2;
mysql-test/t/join_outer.test
View file @
aeb5ab5d
...
...
@@ -698,4 +698,16 @@ SELECT * FROM v1 WHERE EMPNUM < 10;
DROP
TABLE
t1
,
t2
;
#
# Test for bug #11285: false Item_equal on expression in outer join
#
CREATE
TABLE
t1
(
c11
int
);
CREATE
TABLE
t2
(
c21
int
);
INSERT
INTO
t1
VALUES
(
30
),
(
40
),
(
50
);
INSERT
INTO
t2
VALUES
(
300
),
(
400
),
(
500
);
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
(
c11
=
c21
AND
c21
=
30
)
WHERE
c11
=
40
;
DROP
TABLE
t1
,
t2
;
sql/sql_select.cc
View file @
aeb5ab5d
...
...
@@ -7064,7 +7064,7 @@ static COND* substitute_for_best_equal_field(COND *cond,
List_iterator_fast
<
Item_equal
>
it
(
cond_equal
->
current_level
);
while
((
item_equal
=
it
++
))
{
eliminate_item_equal
(
cond
,
cond_equal
->
upper_levels
,
item_equal
);
cond
=
eliminate_item_equal
(
cond
,
cond_equal
->
upper_levels
,
item_equal
);
}
}
}
...
...
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