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
b93c83ee
Commit
b93c83ee
authored
Oct 21, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#1271 - RAND_TABLE_BIT in expression and only const_tables in join
parent
e52a2f1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
sql/sql_select.cc
View file @
b93c83ee
...
@@ -2600,6 +2600,8 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
...
@@ -2600,6 +2600,8 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
table_map
used_tables
;
table_map
used_tables
;
if
(
join
->
tables
>
1
)
if
(
join
->
tables
>
1
)
cond
->
update_used_tables
();
// Tablenr may have changed
cond
->
update_used_tables
();
// Tablenr may have changed
if
(
join
->
const_tables
==
join
->
tables
)
join
->
const_table_map
|=
RAND_TABLE_BIT
;
{
// Check const tables
{
// Check const tables
COND
*
const_cond
=
COND
*
const_cond
=
make_cond_for_table
(
cond
,
join
->
const_table_map
,(
table_map
)
0
);
make_cond_for_table
(
cond
,
join
->
const_table_map
,(
table_map
)
0
);
...
...
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