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
8e7f0fe7
Commit
8e7f0fe7
authored
Oct 17, 2006
by
gkodinov/kgeorge@macbook.gmz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename of the new members introduced in the fix for bug 21798
parent
a64ae184
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
sql/sql_select.cc
sql/sql_select.cc
+8
-8
sql/sql_select.h
sql/sql_select.h
+4
-4
No files found.
sql/sql_select.cc
View file @
8e7f0fe7
...
...
@@ -4956,23 +4956,23 @@ make_simple_join(JOIN *join,TABLE *tmp_table)
Reuse TABLE * and JOIN_TAB if already allocated by a previous call
to this function through JOIN::exec (may happen for sub-queries).
*/
if
(
!
join
->
table_
cache
)
if
(
!
join
->
table_
reexec
)
{
if
(
!
(
join
->
table_
cache
=
(
TABLE
**
)
join
->
thd
->
alloc
(
sizeof
(
TABLE
*
))))
if
(
!
(
join
->
table_
reexec
=
(
TABLE
**
)
join
->
thd
->
alloc
(
sizeof
(
TABLE
*
))))
DBUG_RETURN
(
TRUE
);
/* purecov: inspected */
if
(
join
->
tmp_join
)
join
->
tmp_join
->
table_
cache
=
join
->
table_cache
;
join
->
tmp_join
->
table_
reexec
=
join
->
table_reexec
;
}
if
(
!
join
->
join_tab_
cache
)
if
(
!
join
->
join_tab_
reexec
)
{
if
(
!
(
join
->
join_tab_
cache
=
if
(
!
(
join
->
join_tab_
reexec
=
(
JOIN_TAB
*
)
join
->
thd
->
alloc
(
sizeof
(
JOIN_TAB
))))
DBUG_RETURN
(
TRUE
);
/* purecov: inspected */
if
(
join
->
tmp_join
)
join
->
tmp_join
->
join_tab_
cache
=
join
->
join_tab_cache
;
join
->
tmp_join
->
join_tab_
reexec
=
join
->
join_tab_reexec
;
}
tableptr
=
join
->
table_
cache
;
join_tab
=
join
->
join_tab_
cache
;
tableptr
=
join
->
table_
reexec
;
join_tab
=
join
->
join_tab_
reexec
;
join
->
join_tab
=
join_tab
;
join
->
table
=
tableptr
;
tableptr
[
0
]
=
tmp_table
;
...
...
sql/sql_select.h
View file @
8e7f0fe7
...
...
@@ -290,8 +290,8 @@ public:
excessive memory usage.
*/
SORT_FIELD
*
sortorder
;
// make_unireg_sortorder()
TABLE
**
table_
cache
;
// make_simple_join()
JOIN_TAB
*
join_tab_
cache
;
// make_simple_join()
TABLE
**
table_
reexec
;
// make_simple_join()
JOIN_TAB
*
join_tab_
reexec
;
// make_simple_join()
/* end of allocation caching storage */
JOIN
(
THD
*
thd_arg
,
List
<
Item
>
&
fields_arg
,
ulonglong
select_options_arg
,
...
...
@@ -320,8 +320,8 @@ public:
exec_tmp_table1
=
0
;
exec_tmp_table2
=
0
;
sortorder
=
0
;
table_
cache
=
0
;
join_tab_
cache
=
0
;
table_
reexec
=
0
;
join_tab_
reexec
=
0
;
thd
=
thd_arg
;
sum_funcs
=
sum_funcs2
=
0
;
procedure
=
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