diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-01-14 20:51:05 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-01-14 20:51:05 +0400 |
commit | 29f77d41f531a94d1a71d6e5d33f2be104e99026 (patch) | |
tree | d65701efd4f89818be010d5fb3d1e7867311c543 /mysql-test/main/func_str.result | |
parent | aad0165ceab4fa4e756f5fd473ef9df003a447cb (diff) | |
download | mariadb-git-29f77d41f531a94d1a71d6e5d33f2be104e99026.tar.gz |
MDEV-18205 Assertion `str_length < len' failed in Binary_string::realloc_raw
Bug was introduced in this commit:
commit: a9ca819897f5c82582bfd3fedb09c78131cf8e00
Call alloc() instead of realloc()
Use alloc() if we don't need original string (avoid copy)
Removed not needed test of str_length in sql_string.cc
copy_if_not_alloced() was forgotten when changing realloc()'s to alloc()'s.
Changing it now.
Diffstat (limited to 'mysql-test/main/func_str.result')
-rw-r--r-- | mysql-test/main/func_str.result | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/main/func_str.result b/mysql-test/main/func_str.result index 07dca08c819..90206a0ce5d 100644 --- a/mysql-test/main/func_str.result +++ b/mysql-test/main/func_str.result @@ -4961,3 +4961,15 @@ DROP TABLE t1; # # End of 10.3 tests # +# +# Start of 10.4 tests +# +# +# MDEV-18205 Assertion `str_length < len' failed in Binary_string::realloc_raw +# +SELECT GROUP_CONCAT( UpdateXML( '<a>new year</a>', '/a', '2019-01-01 00:00:00' ), ENCODE('text','pass') ) AS f; +f +2019-01-01 00:00:00F}^i +# +# End of 10.4 tests +# |