diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-04-22 14:01:58 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-04-22 14:01:58 +0400 |
commit | 279b50b4eb69f882510f069e79715c38dc13355e (patch) | |
tree | 115d0e09a5906c1673781fe7a3eba8556846ce6a /mysql-test/t | |
parent | f4b27400185bab217da11f8781eebb09a8502304 (diff) | |
download | mariadb-git-279b50b4eb69f882510f069e79715c38dc13355e.tar.gz |
MDEV-14041 Server crashes in String::length on queries with functions and ROLLUP
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/olap.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/t/olap.test b/mysql-test/t/olap.test index bb7806969d3..8d1951573b3 100644 --- a/mysql-test/t/olap.test +++ b/mysql-test/t/olap.test @@ -440,5 +440,27 @@ DROP TABLE t; --echo # +--echo # MDEV-14041 Server crashes in String::length on queries with functions and ROLLUP +--echo # + +CREATE TABLE t1 (i INT); +INSERT INTO t1 VALUES (1),(2); +SELECT GET_LOCK( 'foo', 0 ); +SELECT HEX( RELEASE_LOCK( 'foo' ) ) AS f FROM t1 GROUP BY f WITH ROLLUP; +DROP TABLE t1; + +CREATE TABLE t1 (i INT); +INSERT INTO t1 VALUES (1),(2); +SELECT i FROM t1 GROUP BY i WITH ROLLUP +UNION ALL +SELECT ELT( FOUND_ROWS(), 1 ) f FROM t1 GROUP BY f WITH ROLLUP; +DROP TABLE t1; + +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (1),(2); +SELECT a FROM t1 GROUP BY NULLIF( CONVERT('', DATE), '2015-10-15' ) WITH ROLLUP; +DROP TABLE t1; + +--echo # --echo # End of 10.1 tests --echo # |