diff options
author | ramil@mysql.com <> | 2006-03-02 15:05:55 +0400 |
---|---|---|
committer | ramil@mysql.com <> | 2006-03-02 15:05:55 +0400 |
commit | 72da0c609147ec70598d487faed8ee8ee12f18dd (patch) | |
tree | 330a90ba0dcc96bb8fb821076e6817ff34d916df /sql/item_func.cc | |
parent | 95fe35437a7f65b360a06745eeca38fdd904f32c (diff) | |
download | mariadb-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.cc | 2 |
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; |