summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-09-25 15:30:13 +0300
committerunknown <sanja@askmonty.org>2013-09-25 15:30:13 +0300
commitec7da1561e028aac40dee69433113978c982ce84 (patch)
treedf2b7923621ea7a4a2003a3e018ce1e35d665507 /sql/item_strfunc.cc
parent779003e18073332a73ed185410f95acc1ef85094 (diff)
downloadmariadb-git-ec7da1561e028aac40dee69433113978c982ce84.tar.gz
MDEV-5039: incorrect Item_func_regex::update_used_tables()
Other fix of maybe_null problem and revert of revno: 3608 "MDEV-3873 & MDEV-3876 & MDEV-3912 : Wrong result (extra rows) with ALL subquery from a MERGE view."
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 50ca7d91a53..a21dd9cc02a 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -272,7 +272,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;
}
@@ -435,7 +435,7 @@ void Item_func_concat::fix_length_and_dec()
if (max_result_length >= MAX_BLOB_WIDTH)
{
max_result_length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
max_length= (ulong) max_result_length;
}
@@ -795,7 +795,7 @@ void Item_func_concat_ws::fix_length_and_dec()
if (max_result_length >= MAX_BLOB_WIDTH)
{
max_result_length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
max_length= (ulong) max_result_length;
}
@@ -997,7 +997,7 @@ void Item_func_replace::fix_length_and_dec()
if (max_result_length >= MAX_BLOB_WIDTH)
{
max_result_length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
max_length= (ulong) max_result_length;
@@ -1081,7 +1081,7 @@ void Item_func_insert::fix_length_and_dec()
if (max_result_length >= MAX_BLOB_WIDTH)
{
max_result_length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
max_length= (ulong) max_result_length;
}
@@ -2186,7 +2186,7 @@ void Item_func_elt::fix_length_and_dec()
set_if_bigger(max_length,args[i]->max_length);
set_if_bigger(decimals,args[i]->decimals);
}
- set_persist_maybe_null(1); // NULL if wrong first arg
+ maybe_null=1; // NULL if wrong first arg
}
@@ -2366,14 +2366,14 @@ void Item_func_repeat::fix_length_and_dec()
if (max_result_length >= MAX_BLOB_WIDTH)
{
max_result_length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
max_length= (ulong) max_result_length;
}
else
{
max_length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
}
@@ -2458,14 +2458,14 @@ void Item_func_rpad::fix_length_and_dec()
if (length >= MAX_BLOB_WIDTH)
{
length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
max_length= (ulong) length;
}
else
{
max_length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
}
@@ -2577,14 +2577,14 @@ void Item_func_lpad::fix_length_and_dec()
if (length >= MAX_BLOB_WIDTH)
{
length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
max_length= (ulong) length;
}
else
{
max_length= MAX_BLOB_WIDTH;
- set_persist_maybe_null(1);
+ maybe_null= 1;
}
}
@@ -3499,7 +3499,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;
}