diff options
author | Georgi Kodinov <joro@sun.com> | 2009-10-30 15:15:43 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-10-30 15:15:43 +0200 |
commit | 9d96cd6dcb3f171cbbe93c0f7061ce132a9087a7 (patch) | |
tree | 35ed35ec715be27cf87f8f67132283e347b9643b /mysql-test/r/select.result | |
parent | 851e250953e531c2c5189dff0d7202cb79acf5d6 (diff) | |
download | mariadb-git-9d96cd6dcb3f171cbbe93c0f7061ce132a9087a7.tar.gz |
Bug #48291 : crash with row() operator,select into @var, and
subquery returning multiple rows
Error handling was missing when handling subqueires in WHERE
and when assigning a SELECT result to a @variable.
This caused crash(es).
Fixed by adding error handling code to both the WHERE
condition evaluation and to assignment to an @variable.
Diffstat (limited to 'mysql-test/r/select.result')
-rw-r--r-- | mysql-test/r/select.result | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/select.result b/mysql-test/r/select.result index 4bb62fbfa70..5d07c97149f 100644 --- a/mysql-test/r/select.result +++ b/mysql-test/r/select.result @@ -4430,4 +4430,16 @@ SELECT 1 FROM t1 NATURAL LEFT JOIN t1 AS t2 FORCE INDEX(a); 1 1 DROP TABLE t1; +# +# Bug #48291 : crash with row() operator,select into @var, and +# subquery returning multiple rows +# +CREATE TABLE t1(a INT); +INSERT INTO t1 VALUES (2),(3); +# Should not crash +SELECT 1 FROM t1 WHERE a <> 1 AND NOT +ROW(a,a) <=> ROW((SELECT 1 FROM t1 WHERE 1=2),(SELECT 1 FROM t1)) +INTO @var0; +ERROR 21000: Subquery returns more than 1 row +DROP TABLE t1; End of 5.0 tests |