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
a19ddf01
Commit
a19ddf01
authored
May 19, 2011
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warnings.
parent
8ec03d80
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
sql/sql_lex.cc
sql/sql_lex.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+4
-4
sql/sql_union.cc
sql/sql_union.cc
+2
-2
No files found.
sql/sql_lex.cc
View file @
a19ddf01
...
@@ -3239,7 +3239,7 @@ void st_select_lex::append_table_to_list(TABLE_LIST *TABLE_LIST::*link,
...
@@ -3239,7 +3239,7 @@ void st_select_lex::append_table_to_list(TABLE_LIST *TABLE_LIST::*link,
TABLE_LIST
*
table
)
TABLE_LIST
*
table
)
{
{
TABLE_LIST
*
tl
;
TABLE_LIST
*
tl
;
for
(
tl
=
leaf_tables
.
head
();
tl
->*
link
;
tl
=
tl
->*
link
);
for
(
tl
=
leaf_tables
.
head
();
tl
->*
link
;
tl
=
tl
->*
link
)
;
tl
->*
link
=
table
;
tl
->*
link
=
table
;
}
}
...
...
sql/sql_select.cc
View file @
a19ddf01
...
@@ -7793,10 +7793,10 @@ bool generate_derived_keys(DYNAMIC_ARRAY *keyuse_array)
...
@@ -7793,10 +7793,10 @@ bool generate_derived_keys(DYNAMIC_ARRAY *keyuse_array)
TABLE
*
prev_table
=
0
;
TABLE
*
prev_table
=
0
;
for
(
uint
i
=
0
;
i
<
elements
;
i
++
,
keyuse
++
)
for
(
uint
i
=
0
;
i
<
elements
;
i
++
,
keyuse
++
)
{
{
KEYUSE
*
first_table_keyuse
;
KEYUSE
*
first_table_keyuse
=
NULL
;
table_map
last_used_tables
;
table_map
last_used_tables
=
0
;
uint
count
;
uint
count
=
0
;
uint
keys
;
uint
keys
=
0
;
TABLE_LIST
*
derived
=
NULL
;
TABLE_LIST
*
derived
=
NULL
;
if
(
keyuse
->
table
!=
prev_table
)
if
(
keyuse
->
table
!=
prev_table
)
derived
=
keyuse
->
table
->
pos_in_table_list
;
derived
=
keyuse
->
table
->
pos_in_table_list
;
...
...
sql/sql_union.cc
View file @
a19ddf01
...
@@ -356,8 +356,8 @@ bool st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
...
@@ -356,8 +356,8 @@ bool st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
List_iterator_fast
<
Item
>
tp
(
types
);
List_iterator_fast
<
Item
>
tp
(
types
);
Item
*
type
;
Item
*
type
;
ulonglong
create_options
;
ulonglong
create_options
;
uint
save_tablenr
;
uint
save_tablenr
=
0
;
table_map
save_map
;
table_map
save_map
=
0
;
while
((
type
=
tp
++
))
while
((
type
=
tp
++
))
{
{
...
...
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