diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-05-09 13:39:13 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-05-15 14:20:54 +0200 |
commit | 0dd1ebcb27149c9be3994d7264c96ca75c5589f5 (patch) | |
tree | 81c8cbbde10022abcf7b097fe79460302ae9bdda /mysql-test/main/olap.test | |
parent | 8a9048bcf3f3ef520a9c4654e2e21516c459e4fd (diff) | |
download | mariadb-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.test')
-rw-r--r-- | mysql-test/main/olap.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/main/olap.test b/mysql-test/main/olap.test index 3da08581a87..74dbe8ba10b 100644 --- a/mysql-test/main/olap.test +++ b/mysql-test/main/olap.test @@ -447,3 +447,20 @@ DESC v1; DROP VIEW v1; DROP TABLE t1; + +--echo # +--echo # MDEV-15576: Server crashed in Cached_item_str::cmp / sortcmp or +--echo # Assertion `item->null_value' failed in +--echo # Type_handler_temporal_result::make_sort_key upon SELECT with NULLIF +--echo # and ROLLUP +--echo # + +CREATE TABLE t1 (i INT); +INSERT INTO t1 VALUES (1),(2); +--disable_warnings +SELECT NULLIF( CAST( 'foo' AS DATE ), NULL & 'bar' ) AS f FROM t1 GROUP BY f WITH ROLLUP; +--enable_warnings +DROP TABLE t1; + + +--echo # End of 10.3 Tests |