diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-06-06 12:51:04 +0500 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-06-06 12:51:04 +0500 |
commit | 581d4d23a15f10ec3457493074741f3753a26841 (patch) | |
tree | 2a60f2b824238f63be3df25c4d03c584be60a4d1 /sql/item_strfunc.h | |
parent | 6c431a5ecdd3f1f94de650217877b9c9b2d9a7ac (diff) | |
download | mariadb-git-581d4d23a15f10ec3457493074741f3753a26841.tar.gz |
Bug#19599 duplication of information_schema column value in a CONCAT expr with user var
mark result string using String::mark_as_const()
which prevents CONCAT from reusing it as a buffer
for concatenation result.
mysql-test/r/information_schema.result:
Bug#19599 duplication of information_schema column value in a CONCAT expr with user var
test case
mysql-test/t/information_schema.test:
Bug#19599 duplication of information_schema column value in a CONCAT expr with user var
test case
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 90d421a2c68..af59b8d740b 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -674,6 +674,7 @@ public: str->charset(), conv_charset, &errors)) null_value= 1; use_cached_value= 1; + str_value.mark_as_const(); safe= (errors == 0); } else |