summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 0321d37c0fe..54fc427edf0 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -313,7 +313,7 @@ null:
void Item_func_concat_ws::fix_length_and_dec()
{
- max_length=0;
+ max_length=separator->max_length*(arg_count-1);
for (uint i=0 ; i < arg_count ; i++)
max_length+=args[i]->max_length;
if (max_length > MAX_BLOB_WIDTH)