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
e8a6fa42
Commit
e8a6fa42
authored
May 30, 2005
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_select.cc:
Post-review modifications for the fix of bug #7894.
parent
10cc5a46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
sql/sql_select.cc
sql/sql_select.cc
+6
-9
No files found.
sql/sql_select.cc
View file @
e8a6fa42
...
...
@@ -9197,17 +9197,14 @@ void free_underlaid_joins(THD *thd, SELECT_LEX *select)
1 on error
*/
static
bool
change_group_ref
(
THD
*
thd
,
Item
*
expr
,
ORDER
*
group_list
,
static
bool
change_group_ref
(
THD
*
thd
,
Item
_func
*
expr
,
ORDER
*
group_list
,
bool
*
changed
)
{
if
(
expr
->
type
()
!=
Item
::
FUNC_ITEM
)
return
0
;
Item_func
*
func_item
=
(
Item_func
*
)
expr
;
if
(
func_item
->
arg_count
)
if
(
expr
->
arg_count
)
{
Item
**
arg
,
**
arg_end
;
for
(
arg
=
func_item
->
arguments
(),
arg_end
=
func_item
->
arguments
()
+
func_item
->
arg_count
;
for
(
arg
=
expr
->
arguments
(),
arg_end
=
expr
->
arguments
()
+
expr
->
arg_count
;
arg
!=
arg_end
;
arg
++
)
{
Item
*
item
=
*
arg
;
...
...
@@ -9228,7 +9225,7 @@ static bool change_group_ref(THD *thd, Item *expr, ORDER *group_list,
}
else
if
(
item
->
type
()
==
Item
::
FUNC_ITEM
)
{
if
(
change_group_ref
(
thd
,
item
,
group_list
,
changed
))
if
(
change_group_ref
(
thd
,
(
Item_func
*
)
item
,
group_list
,
changed
))
return
1
;
}
}
...
...
@@ -9294,7 +9291,7 @@ bool JOIN::rollup_init()
if
(
item
->
type
()
==
Item
::
FUNC_ITEM
)
{
bool
changed
=
0
;
if
(
change_group_ref
(
thd
,
item
,
group_list
,
&
changed
))
if
(
change_group_ref
(
thd
,
(
Item_func
*
)
item
,
group_list
,
&
changed
))
return
1
;
/*
We have to prevent creation of a field in a temporary table for
...
...
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