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
51672ec2
Commit
51672ec2
authored
Aug 09, 2012
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.1 -> 5.5 merge
parents
6e4b8b02
2f30b340
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
sql/item.cc
sql/item.cc
+6
-1
sql/item_subselect.cc
sql/item_subselect.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+0
-4
No files found.
sql/item.cc
View file @
51672ec2
...
@@ -6429,7 +6429,12 @@ bool Item_ref::fix_fields(THD *thd, Item **reference)
...
@@ -6429,7 +6429,12 @@ bool Item_ref::fix_fields(THD *thd, Item **reference)
if
(
from_field
!=
not_found_field
)
if
(
from_field
!=
not_found_field
)
{
{
Item_field
*
fld
;
Item_field
*
fld
;
if
(
!
(
fld
=
new
Item_field
(
thd
,
last_checked_context
,
from_field
)))
Query_arena
backup
,
*
arena
;
arena
=
thd
->
activate_stmt_arena_if_needed
(
&
backup
);
fld
=
new
Item_field
(
thd
,
last_checked_context
,
from_field
);
if
(
arena
)
thd
->
restore_active_arena
(
arena
,
&
backup
);
if
(
!
fld
)
goto
error
;
goto
error
;
thd
->
change_item_tree
(
reference
,
fld
);
thd
->
change_item_tree
(
reference
,
fld
);
mark_as_dependent
(
thd
,
last_checked_context
->
select_lex
,
mark_as_dependent
(
thd
,
last_checked_context
->
select_lex
,
...
...
sql/item_subselect.cc
View file @
51672ec2
...
@@ -1146,7 +1146,7 @@ Item_in_subselect::single_value_transformer(JOIN *join,
...
@@ -1146,7 +1146,7 @@ Item_in_subselect::single_value_transformer(JOIN *join,
}
}
else
else
{
{
Item
*
item
=
(
Item
*
)
select_lex
->
item_list
.
head
();
Item
*
item
=
(
Item
*
)
select_lex
->
item_list
.
head
()
->
real_item
()
;
if
(
select_lex
->
table_list
.
elements
)
if
(
select_lex
->
table_list
.
elements
)
{
{
...
...
sql/sql_select.cc
View file @
51672ec2
...
@@ -557,8 +557,6 @@ JOIN::prepare(Item ***rref_pointer_array,
...
@@ -557,8 +557,6 @@ JOIN::prepare(Item ***rref_pointer_array,
if
(
having
)
if
(
having
)
{
{
Query_arena
backup
,
*
arena
;
arena
=
thd
->
activate_stmt_arena_if_needed
(
&
backup
);
nesting_map
save_allow_sum_func
=
thd
->
lex
->
allow_sum_func
;
nesting_map
save_allow_sum_func
=
thd
->
lex
->
allow_sum_func
;
thd
->
where
=
"having clause"
;
thd
->
where
=
"having clause"
;
thd
->
lex
->
allow_sum_func
|=
1
<<
select_lex_arg
->
nest_level
;
thd
->
lex
->
allow_sum_func
|=
1
<<
select_lex_arg
->
nest_level
;
...
@@ -568,8 +566,6 @@ JOIN::prepare(Item ***rref_pointer_array,
...
@@ -568,8 +566,6 @@ JOIN::prepare(Item ***rref_pointer_array,
having
->
check_cols
(
1
)));
having
->
check_cols
(
1
)));
select_lex
->
having_fix_field
=
0
;
select_lex
->
having_fix_field
=
0
;
select_lex
->
having
=
having
;
select_lex
->
having
=
having
;
if
(
arena
)
thd
->
restore_active_arena
(
arena
,
&
backup
);
if
(
having_fix_rc
||
thd
->
is_error
())
if
(
having_fix_rc
||
thd
->
is_error
())
DBUG_RETURN
(
-
1
);
/* purecov: inspected */
DBUG_RETURN
(
-
1
);
/* purecov: inspected */
...
...
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