diff options
author | unknown <sanja@askmonty.org> | 2013-09-26 21:20:15 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2013-09-26 21:20:15 +0300 |
commit | e5746665c9f8dcfa66a7a645f1c5517769a2fa0a (patch) | |
tree | 56e9d83b5ef43f93d9628c25f69b81f174d48f5c /sql/item_strfunc.cc | |
parent | 828be0d9bae813d0587fbede6e02b12eebac66ca (diff) | |
parent | 9d83468e78ba23f024ce3c11443913ad75cf1ea5 (diff) | |
download | mariadb-git-e5746665c9f8dcfa66a7a645f1c5517769a2fa0a.tar.gz |
merge 10.0-base -> 10.0
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 2d2b231fdfe..d7aea544fee 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -323,7 +323,7 @@ String *Item_func_sha2::val_str_ascii(String *str) void Item_func_sha2::fix_length_and_dec() { - set_persist_maybe_null(1); + maybe_null= 1; max_length = 0; #if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY) @@ -449,7 +449,7 @@ String *Item_func_aes_decrypt::val_str(String *str) void Item_func_aes_decrypt::fix_length_and_dec() { max_length=args[0]->max_length; - set_persist_maybe_null(1); + maybe_null= 1; } @@ -2677,7 +2677,7 @@ void Item_func_elt::fix_length_and_dec() set_if_bigger(decimals,args[i]->decimals); } fix_char_length(char_length); - set_persist_maybe_null(1); // NULL if wrong first arg + maybe_null=1; // NULL if wrong first arg } @@ -2872,7 +2872,7 @@ void Item_func_repeat::fix_length_and_dec() else { max_length= MAX_BLOB_WIDTH; - set_persist_maybe_null(1); + maybe_null= 1; } } @@ -2991,7 +2991,7 @@ void Item_func_rpad::fix_length_and_dec() else { max_length= MAX_BLOB_WIDTH; - set_persist_maybe_null(1); + maybe_null= 1; } } @@ -3097,7 +3097,7 @@ void Item_func_lpad::fix_length_and_dec() else { max_length= MAX_BLOB_WIDTH; - set_persist_maybe_null(1); + maybe_null= 1; } } @@ -4074,7 +4074,7 @@ bool Item_func_dyncol_create::fix_fields(THD *thd, Item **ref) void Item_func_dyncol_create::fix_length_and_dec() { - set_persist_maybe_null(1); + maybe_null= TRUE; collation.set(&my_charset_bin); decimals= 0; } |