diff options
author | unknown <wax@kishkin.ru> | 2003-04-16 00:22:43 +0600 |
---|---|---|
committer | unknown <wax@kishkin.ru> | 2003-04-16 00:22:43 +0600 |
commit | b03a00ebf64b5e92a71a8f43a1c34c5c8acd6dcc (patch) | |
tree | 212e8c7e26a9498fa9b46104be29e71e55b12190 /sql/item_sum.h | |
parent | fc6456b5c4966af2a633c4494404e279fe617c48 (diff) | |
download | mariadb-git-b03a00ebf64b5e92a71a8f43a1c34c5c8acd6dcc.tar.gz |
replace default separator in group_concat, correct a bug
mysql-test/r/func_gconcat.result:
replace default separator
sql/item_sum.h:
add fix_length_and_dec() and copy_or_same()
sql/sql_yacc.yy:
replace default separator
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r-- | sql/item_sum.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h index 42d46876d27..1b3e993fffc 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -697,6 +697,7 @@ class Item_func_group_concat : public Item_sum enum Sumfunctype sum_func () const {return GROUP_CONCAT_FUNC;} const char *func_name() const { return "group_concat"; } enum Type type() const { return SUM_FUNC_ITEM; } + void fix_length_and_dec() { max_length=group_concat_max_len; } virtual Item_result result_type () const { return STRING_RESULT; } void reset(); bool add(); @@ -715,4 +716,5 @@ class Item_func_group_concat : public Item_sum return res ? strtoll(res->c_ptr(),(char**) 0,10) : (longlong) 0; } String* val_str(String* str); + Item *copy_or_same(THD* thd) { return new Item_func_group_concat(thd, *this); } }; |