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
630869bc
Commit
630869bc
authored
Feb 23, 2006
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
71ef9102
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
sql/sql_base.cc
sql/sql_base.cc
+1
-2
sql/sql_select.h
sql/sql_select.h
+3
-7
No files found.
sql/sql_base.cc
View file @
630869bc
...
@@ -3594,7 +3594,6 @@ mark_common_columns(THD *thd, TABLE_LIST *table_ref_1, TABLE_LIST *table_ref_2,
...
@@ -3594,7 +3594,6 @@ mark_common_columns(THD *thd, TABLE_LIST *table_ref_1, TABLE_LIST *table_ref_2,
{
{
Field_iterator_table_ref
it_1
,
it_2
;
Field_iterator_table_ref
it_1
,
it_2
;
Natural_join_column
*
nj_col_1
,
*
nj_col_2
;
Natural_join_column
*
nj_col_1
,
*
nj_col_2
;
const
char
*
field_name_1
;
Query_arena
*
arena
,
backup
;
Query_arena
*
arena
,
backup
;
bool
add_columns
=
TRUE
;
bool
add_columns
=
TRUE
;
bool
result
=
TRUE
;
bool
result
=
TRUE
;
...
@@ -3627,6 +3626,7 @@ mark_common_columns(THD *thd, TABLE_LIST *table_ref_1, TABLE_LIST *table_ref_2,
...
@@ -3627,6 +3626,7 @@ mark_common_columns(THD *thd, TABLE_LIST *table_ref_1, TABLE_LIST *table_ref_2,
{
{
bool
is_created_1
;
bool
is_created_1
;
bool
found
=
FALSE
;
bool
found
=
FALSE
;
const
char
*
field_name_1
;
if
(
!
(
nj_col_1
=
it_1
.
get_or_create_column_ref
(
&
is_created_1
)))
if
(
!
(
nj_col_1
=
it_1
.
get_or_create_column_ref
(
&
is_created_1
)))
goto
err
;
goto
err
;
field_name_1
=
nj_col_1
->
name
();
field_name_1
=
nj_col_1
->
name
();
...
@@ -3823,7 +3823,6 @@ store_natural_using_join_columns(THD *thd, TABLE_LIST *natural_using_join,
...
@@ -3823,7 +3823,6 @@ store_natural_using_join_columns(THD *thd, TABLE_LIST *natural_using_join,
{
{
Field_iterator_table_ref
it_1
,
it_2
;
Field_iterator_table_ref
it_1
,
it_2
;
Natural_join_column
*
nj_col_1
,
*
nj_col_2
;
Natural_join_column
*
nj_col_1
,
*
nj_col_2
;
bool
is_created
;
Query_arena
*
arena
,
backup
;
Query_arena
*
arena
,
backup
;
bool
result
=
TRUE
;
bool
result
=
TRUE
;
List
<
Natural_join_column
>
*
non_join_columns
;
List
<
Natural_join_column
>
*
non_join_columns
;
...
...
sql/sql_select.h
View file @
630869bc
...
@@ -174,7 +174,9 @@ typedef struct st_rollup
...
@@ -174,7 +174,9 @@ typedef struct st_rollup
class
JOIN
:
public
Sql_alloc
class
JOIN
:
public
Sql_alloc
{
{
public:
JOIN
(
const
JOIN
&
rhs
);
/* not implemented */
JOIN
&
operator
=
(
const
JOIN
&
rhs
);
/* not implemented */
public:
JOIN_TAB
*
join_tab
,
**
best_ref
;
JOIN_TAB
*
join_tab
,
**
best_ref
;
JOIN_TAB
**
map2table
;
// mapping between table indexes and JOIN_TABs
JOIN_TAB
**
map2table
;
// mapping between table indexes and JOIN_TABs
JOIN_TAB
*
join_tab_save
;
// saved join_tab for subquery reexecution
JOIN_TAB
*
join_tab_save
;
// saved join_tab for subquery reexecution
...
@@ -286,12 +288,6 @@ class JOIN :public Sql_alloc
...
@@ -286,12 +288,6 @@ class JOIN :public Sql_alloc
init
(
thd_arg
,
fields_arg
,
select_options_arg
,
result_arg
);
init
(
thd_arg
,
fields_arg
,
select_options_arg
,
result_arg
);
}
}
JOIN
(
JOIN
&
join
)
:
fields_list
(
join
.
fields_list
)
{
init
(
join
.
thd
,
join
.
fields_list
,
join
.
select_options
,
join
.
result
);
}
void
init
(
THD
*
thd_arg
,
List
<
Item
>
&
fields_arg
,
ulonglong
select_options_arg
,
void
init
(
THD
*
thd_arg
,
List
<
Item
>
&
fields_arg
,
ulonglong
select_options_arg
,
select_result
*
result_arg
)
select_result
*
result_arg
)
...
...
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