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
7a9f45c6
Commit
7a9f45c6
authored
Jun 17, 2009
by
Sergey Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Use excessive parentheses to stop compiler warning
* Fix test results to account for changes in previous cset
parent
c0103f70
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
mysql-test/r/select.result
mysql-test/r/select.result
+0
-1
sql/sql_select.cc
sql/sql_select.cc
+3
-3
No files found.
mysql-test/r/select.result
View file @
7a9f45c6
...
@@ -3585,7 +3585,6 @@ INSERT INTO t2 VALUES (1,'a'),(2,'b'),(3,'c');
...
@@ -3585,7 +3585,6 @@ INSERT INTO t2 VALUES (1,'a'),(2,'b'),(3,'c');
EXPLAIN SELECT t1.a FROM t1 LEFT JOIN t2 ON t2.b=t1.b WHERE t1.a=3;
EXPLAIN SELECT t1.a FROM t1 LEFT JOIN t2 ON t2.b=t1.b WHERE t1.a=3;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
1 SIMPLE t1 const PRIMARY PRIMARY 4 const 1
1 SIMPLE t2 const b b 22 const 1 Using index
DROP TABLE t1,t2;
DROP TABLE t1,t2;
CREATE TABLE t1(id int PRIMARY KEY, b int, e int);
CREATE TABLE t1(id int PRIMARY KEY, b int, e int);
CREATE TABLE t2(i int, a int, INDEX si(i), INDEX ai(a));
CREATE TABLE t2(i int, a int, INDEX si(i), INDEX ai(a));
...
...
sql/sql_select.cc
View file @
7a9f45c6
...
@@ -16963,9 +16963,9 @@ static void print_join(THD *thd,
...
@@ -16963,9 +16963,9 @@ static void print_join(THD *thd,
CREATE VIEW. There we'll have nested_join->used_tables==0.
CREATE VIEW. There we'll have nested_join->used_tables==0.
*/
*/
if
(
eliminated_tables
&&
// (*)
if
(
eliminated_tables
&&
// (*)
(
curr
->
table
&&
(
curr
->
table
->
map
&
eliminated_tables
)
||
(
(
curr
->
table
&&
(
curr
->
table
->
map
&
eliminated_tables
)
)
||
curr
->
nested_join
&&
!
(
curr
->
nested_join
->
used_tables
&
(
curr
->
nested_join
&&
!
(
curr
->
nested_join
->
used_tables
&
~
eliminated_tables
)))
~
eliminated_tables
)))
)
{
{
continue
;
continue
;
}
}
...
...
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