summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index b2eaf39d624..506d2a16108 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -3156,9 +3156,9 @@ String* Item_func_group_concat::val_str(String* str)
void Item_func_group_concat::print(String *str)
{
- str->append("group_concat(", 13);
+ str->append(STRING_WITH_LEN("group_concat("));
if (distinct)
- str->append("distinct ", 9);
+ str->append(STRING_WITH_LEN("distinct "));
for (uint i= 0; i < arg_count_field; i++)
{
if (i)
@@ -3167,19 +3167,19 @@ void Item_func_group_concat::print(String *str)
}
if (arg_count_order)
{
- str->append(" order by ", 10);
+ str->append(STRING_WITH_LEN(" order by "));
for (uint i= 0 ; i < arg_count_order ; i++)
{
if (i)
str->append(',');
(*order[i]->item)->print(str);
if (order[i]->asc)
- str->append(" ASC");
+ str->append(STRING_WITH_LEN(" ASC"));
else
- str->append(" DESC");
+ str->append(STRING_WITH_LEN(" DESC"));
}
}
- str->append(" separator \'", 12);
+ str->append(STRING_WITH_LEN(" separator \'"));
str->append(*separator);
- str->append("\')", 2);
+ str->append(STRING_WITH_LEN("\')"));
}