summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorramil@mysql.com <>2006-03-02 15:05:55 +0400
committerramil@mysql.com <>2006-03-02 15:05:55 +0400
commit72da0c609147ec70598d487faed8ee8ee12f18dd (patch)
tree330a90ba0dcc96bb8fb821076e6817ff34d916df /sql/item_func.cc
parent95fe35437a7f65b360a06745eeca38fdd904f32c (diff)
downloadmariadb-git-72da0c609147ec70598d487faed8ee8ee12f18dd.tar.gz
Fix for bug #17615: invalid handling of function results in UPDATE...SET statement.
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index a85f05c2e22..ccfb71e9d0c 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -4881,6 +4881,7 @@ Item_func_sp::fix_length_and_dec()
{
decimals= result_field->decimals();
max_length= result_field->field_length;
+ collation.set(result_field->charset());
DBUG_VOID_RETURN;
}
@@ -4891,6 +4892,7 @@ Item_func_sp::fix_length_and_dec()
}
decimals= field->decimals();
max_length= field->field_length;
+ collation.set(field->charset());
maybe_null= 1;
delete field;
DBUG_VOID_RETURN;