diff options
author | Martin Hansson <martin.hansson@oracle.com> | 2011-01-13 09:07:21 +0100 |
---|---|---|
committer | Martin Hansson <martin.hansson@oracle.com> | 2011-01-13 09:07:21 +0100 |
commit | ef6b98ee5a2d4d606e519535f70426d3db8d524a (patch) | |
tree | d1db205d8cade9fce4f01b09cf0b70cfeb9a6f31 /mysql-test/r/func_str.result | |
parent | df3b2340a84edd27cadb0b7f3b70c0c5f82cc0bd (diff) | |
parent | 716b64cdb050ff9a22457990f336ef20a7b3663a (diff) | |
download | mariadb-git-ef6b98ee5a2d4d606e519535f70426d3db8d524a.tar.gz |
Merge of fix for Bug#58165.
Diffstat (limited to 'mysql-test/r/func_str.result')
-rw-r--r-- | mysql-test/r/func_str.result | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/func_str.result b/mysql-test/r/func_str.result index 41fe9c096b0..81fe2413725 100644 --- a/mysql-test/r/func_str.result +++ b/mysql-test/r/func_str.result @@ -2615,6 +2615,22 @@ CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3)) 1 Warnings: Warning 1292 Truncated incorrect DECIMAL value: '' +# +# Bug#58165: "my_empty_string" gets modified and causes LOAD DATA to fail +# and other crashes +# +CREATE TABLE t1 ( a TEXT ); +SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE 'bug58165.txt'; +SELECT insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' ); +insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' ) +x +Warnings: +Warning 1292 Truncated incorrect INTEGER value: 'b' +LOAD DATA INFILE 'bug58165.txt' INTO TABLE t1; +SELECT * FROM t1; +a +aaaaaaaaaaaaaa +DROP TABLE t1; End of 5.1 tests Start of 5.4 tests SELECT format(12345678901234567890.123, 3); |