summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-08-08 19:09:54 +0500
committerunknown <bar@mysql.com>2005-08-08 19:09:54 +0500
commitd3a6f4082fa5c50881b4344a23d157f8c3c5009d (patch)
tree9bdb449b91e6b7a6573d54fc11844c6e6a0115be /sql/item_strfunc.cc
parente63010037479aaebb191e43032b5f5365419a48c (diff)
downloadmariadb-git-d3a6f4082fa5c50881b4344a23d157f8c3c5009d.tar.gz
func_system.result, func_system.test:
adding test case item_strfunc.cc: Bug#12351 CONCAT with USER()/DATEBASE() and a column gets strange results. Mark created Item_str as constant, so CONCAT cannot reuse it for optimization purposes. sql/item_strfunc.cc: Bug#12351 CONCAT with USER()/DATEBASE() and a column gets strange results mysql-test/t/func_system.test: adding test case mysql-test/r/func_system.result: adding test case
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index d316c7eaf72..7a66a57c84b 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -1550,6 +1550,7 @@ Item *Item_func_sysconst::safe_charset_converter(CHARSET_INFO *tocs)
return NULL;
}
conv->str_value.copy();
+ conv->str_value.shrink_to_length();
return conv;
}