summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2017-08-15 13:15:19 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2017-08-23 07:32:49 +0200
commitebd96c314953f5c0073ff5846484fd5e438fe0ad (patch)
treeb463a71d6e66267ea4469c1814a0837b150c1258 /mysql-test/r
parentd75f8a174218fd0ada64222d2a538f7aace897bc (diff)
downloadmariadb-git-ebd96c314953f5c0073ff5846484fd5e438fe0ad.tar.gz
Bug#19875294 ASSERTION `SRC' FAILED IN MY_STRNXFRM_UNICODE (SIG 6 -STRINGS/CTYPE-UTF8.C:5151)
Backport from 5.7 to 5.5 Field_set::val_str() should return String("", 0, cs) rather than String(NULL, 0, cs)
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/case.result16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/case.result b/mysql-test/r/case.result
index 40d900a0389..be712114a29 100644
--- a/mysql-test/r/case.result
+++ b/mysql-test/r/case.result
@@ -220,3 +220,19 @@ a d
3 11120436154190595086
drop table t1, t2;
End of 5.0 tests
+#
+# Bug#19875294 ASSERTION `SRC' FAILED IN MY_STRNXFRM_UNICODE
+# (SIG 6 -STRINGS/CTYPE-UTF8.C:5151)
+#
+set @@sql_mode='';
+CREATE TABLE t1(c1 SET('','')CHARACTER SET ucs2) engine=innodb;
+Warnings:
+Note 1291 Column 'c1' has duplicated value '' in SET
+INSERT INTO t1 VALUES(990101.102);
+Warnings:
+Warning 1265 Data truncated for column 'c1' at row 1
+SELECT COALESCE(c1)FROM t1 ORDER BY 1;
+COALESCE(c1)
+
+DROP TABLE t1;
+set @@sql_mode=default;