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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f392edab
Commit
f392edab
authored
Jul 18, 2011
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed valgrind problems of the patch for bug 794901.
parent
cc0195d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
sql/sql_derived.cc
sql/sql_derived.cc
+1
-5
sql/sql_lex.cc
sql/sql_lex.cc
+1
-1
No files found.
sql/sql_derived.cc
View file @
f392edab
...
@@ -478,11 +478,7 @@ bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived)
...
@@ -478,11 +478,7 @@ bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived)
if
(
derived
->
merged_for_insert
)
if
(
derived
->
merged_for_insert
)
return
FALSE
;
return
FALSE
;
if
(
derived
->
is_materialized_derived
())
if
(
derived
->
is_materialized_derived
())
{
return
mysql_derived_prepare
(
thd
,
lex
,
derived
);
bool
res
=
mysql_derived_prepare
(
thd
,
lex
,
derived
);
derived
->
select_lex
->
leaf_tables
.
push_back
(
derived
);
return
res
;
}
if
(
!
derived
->
is_multitable
())
if
(
!
derived
->
is_multitable
())
{
{
if
(
!
derived
->
updatable
)
if
(
!
derived
->
updatable
)
...
...
sql/sql_lex.cc
View file @
f392edab
...
@@ -1639,6 +1639,7 @@ void st_select_lex::init_query()
...
@@ -1639,6 +1639,7 @@ void st_select_lex::init_query()
nest_level
=
0
;
nest_level
=
0
;
link_next
=
0
;
link_next
=
0
;
lock_option
=
TL_READ_DEFAULT
;
lock_option
=
TL_READ_DEFAULT
;
is_prep_leaf_list_saved
=
FALSE
;
bzero
((
char
*
)
expr_cache_may_be_used
,
sizeof
(
expr_cache_may_be_used
));
bzero
((
char
*
)
expr_cache_may_be_used
,
sizeof
(
expr_cache_may_be_used
));
}
}
...
@@ -1674,7 +1675,6 @@ void st_select_lex::init_select()
...
@@ -1674,7 +1675,6 @@ void st_select_lex::init_select()
cond_value
=
having_value
=
Item
::
COND_UNDEF
;
cond_value
=
having_value
=
Item
::
COND_UNDEF
;
inner_refs_list
.
empty
();
inner_refs_list
.
empty
();
full_group_by_flag
=
0
;
full_group_by_flag
=
0
;
is_prep_leaf_list_saved
=
FALSE
;
insert_tables
=
0
;
insert_tables
=
0
;
merged_into
=
0
;
merged_into
=
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