summaryrefslogtreecommitdiff
path: root/mysql-test/main/olap.result
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2018-05-09 13:39:13 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2018-05-15 14:20:54 +0200
commit0dd1ebcb27149c9be3994d7264c96ca75c5589f5 (patch)
tree81c8cbbde10022abcf7b097fe79460302ae9bdda /mysql-test/main/olap.result
parent8a9048bcf3f3ef520a9c4654e2e21516c459e4fd (diff)
downloadmariadb-git-0dd1ebcb27149c9be3994d7264c96ca75c5589f5.tar.gz
MDEV-15576: Server crashed in Cached_item_str::cmp / sortcmp or Assertion `item->null_value' failed in Type_handler_temporal_result::make_sort_key upon SELECT with NULLIF and ROLLUP
Fixed null_value processing and is_null() usage.
Diffstat (limited to 'mysql-test/main/olap.result')
-rw-r--r--mysql-test/main/olap.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/main/olap.result b/mysql-test/main/olap.result
index bcc96d4951d..6fdbe008016 100644
--- a/mysql-test/main/olap.result
+++ b/mysql-test/main/olap.result
@@ -816,3 +816,17 @@ a int(11) YES 0
b int(20) YES 0
DROP VIEW v1;
DROP TABLE t1;
+#
+# MDEV-15576: Server crashed in Cached_item_str::cmp / sortcmp or
+# Assertion `item->null_value' failed in
+# Type_handler_temporal_result::make_sort_key upon SELECT with NULLIF
+# and ROLLUP
+#
+CREATE TABLE t1 (i INT);
+INSERT INTO t1 VALUES (1),(2);
+SELECT NULLIF( CAST( 'foo' AS DATE ), NULL & 'bar' ) AS f FROM t1 GROUP BY f WITH ROLLUP;
+f
+NULL
+NULL
+DROP TABLE t1;
+# End of 10.3 Tests