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
9870d87f
Commit
9870d87f
authored
Nov 08, 2006
by
bar@mysql.com/bar.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fix for bug 23451.
parent
ac3ce653
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
sql/item_sum.cc
sql/item_sum.cc
+6
-5
No files found.
sql/item_sum.cc
View file @
9870d87f
...
...
@@ -3038,7 +3038,7 @@ int dump_leaf_key(byte* key, element_count count __attribute__((unused)),
{
int
well_formed_error
;
CHARSET_INFO
*
cs
=
item
->
collation
.
collation
;
const
char
*
ptr
=
item
->
result
.
ptr
();
const
char
*
ptr
=
result
->
ptr
();
uint
add_length
;
/*
It's ok to use item->result.length() as the fourth argument
...
...
@@ -3047,10 +3047,10 @@ int dump_leaf_key(byte* key, element_count count __attribute__((unused)),
*/
add_length
=
cs
->
cset
->
well_formed_len
(
cs
,
ptr
+
old_length
,
ptr
+
item
->
group_concat_max_len
,
item
->
result
.
length
(),
ptr
+
item
->
max_length
,
result
->
length
(),
&
well_formed_error
);
item
->
result
.
length
(
old_length
+
add_length
);
result
->
length
(
old_length
+
add_length
);
item
->
count_cut_values
++
;
item
->
warning_for_row
=
TRUE
;
return
1
;
...
...
@@ -3310,7 +3310,8 @@ bool Item_func_group_concat::setup(THD *thd)
DBUG_RETURN
(
TRUE
);
/* We'll convert all blobs to varchar fields in the temporary table */
tmp_table_param
->
convert_blob_length
=
max_length
;
tmp_table_param
->
convert_blob_length
=
max_length
*
collation
.
collation
->
mbmaxlen
;
/* Push all not constant fields to the list and create a temp table */
always_null
=
0
;
for
(
uint
i
=
0
;
i
<
arg_count_field
;
i
++
)
...
...
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