diff options
author | unknown <ramil@mysql.com> | 2006-03-02 15:05:55 +0400 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2006-03-02 15:05:55 +0400 |
commit | 6ea2c3cd57e5be58bb84b94951b34dc055b178a6 (patch) | |
tree | 330a90ba0dcc96bb8fb821076e6817ff34d916df /sql | |
parent | 5af68d301d205fad8c2f87a14db75b7a1dd10365 (diff) | |
download | mariadb-git-6ea2c3cd57e5be58bb84b94951b34dc055b178a6.tar.gz |
Fix for bug #17615: invalid handling of function results in UPDATE...SET statement.
sql/item_func.cc:
Fix for bug #17615: invalid handling of function results in UPDATE...SET statement.
- set proper collation
Diffstat (limited to 'sql')
-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; |