diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-03-05 17:43:30 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-03-12 17:37:23 +0100 |
commit | 5511e8ed5941e3b5a7687f87a1fb4fa75815ee7b (patch) | |
tree | 5ee9390b847c6c3debe398f4e789b576f39ca909 /mysql-test/r/sp.result | |
parent | 3a93ec53c1efdb511721fdb9e3bef9c3cf3bf675 (diff) | |
download | mariadb-git-5511e8ed5941e3b5a7687f87a1fb4fa75815ee7b.tar.gz |
MDEV-15328: MariaDB 10.2.13 Crashes upon CALL PROCEDURE PARAM LAST_INSERT_ID ()
There is not current SELECT during assigning SP parameters, do not use it if current_select is empty.
Diffstat (limited to 'mysql-test/r/sp.result')
-rw-r--r-- | mysql-test/r/sp.result | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result index d99780ad2ee..274727d58c4 100644 --- a/mysql-test/r/sp.result +++ b/mysql-test/r/sp.result @@ -8335,3 +8335,11 @@ ERROR 42S22: Unknown column 'name2' in 'field list' drop procedure p1; drop procedure p2; drop procedure p3; +# +# MDEV-15328: MariaDB 10.2.13 Crashes upon CALL PROCEDURE PARAM +# LAST_INSERT_ID () +# (part 1, part 2 is in query_cache.test) +# +CREATE PROCEDURE foo ( IN i INT UNSIGNED ) BEGIN END; +CALL foo( LAST_INSERT_ID() ); +DROP PROCEDURE foo; |