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
7322441d
Commit
7322441d
authored
Aug 02, 2005
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge
parents
b5f33d2b
5e851429
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
sql/item_sum.cc
sql/item_sum.cc
+10
-4
No files found.
sql/item_sum.cc
View file @
7322441d
...
...
@@ -2632,7 +2632,11 @@ int group_concat_key_cmp_with_distinct(void* arg, byte* key1,
the temporary table, not the original field
*/
Field
*
field
=
(
*
field_item
)
->
get_tmp_table_field
();
if
(
field
)
/*
If field_item is a const item then either get_tp_table_field returns 0
or it is an item over a const table.
*/
if
(
field
&&
!
(
*
field_item
)
->
const_item
())
{
int
res
;
uint
offset
=
field
->
offset
()
-
table
->
s
->
null_bytes
;
...
...
@@ -2666,8 +2670,11 @@ int group_concat_key_cmp_with_order(void* arg, byte* key1, byte* key2)
the temporary table, not the original field
*/
Field
*
field
=
item
->
get_tmp_table_field
();
/* If the item is a constant, there is no tmp table field */
if
(
field
)
/*
If item is a const item then either get_tp_table_field returns 0
or it is an item over a const table.
*/
if
(
field
&&
!
item
->
const_item
())
{
int
res
;
uint
offset
=
field
->
offset
()
-
table
->
s
->
null_bytes
;
...
...
@@ -3037,7 +3044,6 @@ bool Item_func_group_concat::setup(THD *thd)
DBUG_RETURN
(
TRUE
);
count_field_types
(
tmp_table_param
,
all_fields
,
0
);
tmp_table_param
->
need_const
=
1
;
DBUG_ASSERT
(
table
==
0
);
/*
We have to create a temporary table to get descriptions of fields
...
...
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