diff options
author | unknown <sanja@askmonty.org> | 2014-02-12 17:07:05 +0200 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2014-02-12 17:07:05 +0200 |
commit | 528df1df4537fcf4ac12d3408645d04298af85c1 (patch) | |
tree | c7bae59594391d85c8968c001c61d399e3c3f1ee /mysql-test/t/ps.test | |
parent | 55829ac13d763589c50b880a98664852fd7c7e99 (diff) | |
download | mariadb-git-528df1df4537fcf4ac12d3408645d04298af85c1.tar.gz |
MDEV-5505: Assertion `! is_set()' fails on PREPARE SELECT with out of range in GROUP BY
Fixed error processing in find_order_in_list(): if an error reported to user there is no sens to continue.
Diffstat (limited to 'mysql-test/t/ps.test')
-rw-r--r-- | mysql-test/t/ps.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/ps.test b/mysql-test/t/ps.test index 4200f7435fb..9775a8dc28e 100644 --- a/mysql-test/t/ps.test +++ b/mysql-test/t/ps.test @@ -3618,3 +3618,18 @@ DROP VIEW v2; DROP TABLE t1, t2; --echo # End of 5.3 tests + +--echo # +--echo # MDEV-5505: Assertion `! is_set()' fails on PREPARE SELECT +--echo # with out of range in GROUP BY +--echo # +CREATE TABLE t1 (a INT); + +--error ER_DATA_OUT_OF_RANGE +PREPARE stmt FROM "SELECT 1 FROM t1 GROUP BY 0 OR 18446744073709551615+1"; +--error ER_DATA_OUT_OF_RANGE +SELECT 1 FROM t1 GROUP BY 0 OR 18446744073709551615+1; + +drop table t1; + +--echo # End of 5.3 tests |