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
f96200fd
Commit
f96200fd
authored
Jun 03, 2003
by
wax@kishkin.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG
correct bug with empty table
parent
a2e9bbf2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sql/item_sum.cc
sql/item_sum.cc
+5
-0
No files found.
sql/item_sum.cc
View file @
f96200fd
...
@@ -1582,6 +1582,8 @@ void Item_func_group_concat::reset()
...
@@ -1582,6 +1582,8 @@ void Item_func_group_concat::reset()
bool
Item_func_group_concat
::
add
()
bool
Item_func_group_concat
::
add
()
{
{
if
(
always_null
)
return
0
;
copy_fields
(
tmp_table_param
);
copy_fields
(
tmp_table_param
);
copy_funcs
(
tmp_table_param
->
items_to_copy
);
copy_funcs
(
tmp_table_param
->
items_to_copy
);
...
@@ -1676,6 +1678,7 @@ bool Item_func_group_concat::setup(THD *thd)
...
@@ -1676,6 +1678,7 @@ bool Item_func_group_concat::setup(THD *thd)
/*
/*
all not constant fields are push to list and create temp table
all not constant fields are push to list and create temp table
*/
*/
always_null
=
0
;
for
(
uint
i
=
0
;
i
<
arg_count
;
i
++
)
for
(
uint
i
=
0
;
i
<
arg_count
;
i
++
)
{
{
Item
*
item
=
args
[
i
];
Item
*
item
=
args
[
i
];
...
@@ -1688,6 +1691,8 @@ bool Item_func_group_concat::setup(THD *thd)
...
@@ -1688,6 +1691,8 @@ bool Item_func_group_concat::setup(THD *thd)
always_null
=
1
;
always_null
=
1
;
}
}
}
}
if
(
always_null
)
return
0
;
List
<
Item
>
all_fields
(
list
);
List
<
Item
>
all_fields
(
list
);
if
(
arg_count_order
)
if
(
arg_count_order
)
...
...
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