diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-05-30 17:03:26 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-05-30 17:03:26 +0400 |
commit | cd1d161c261dcb6f9158bf0a537cb9deee051010 (patch) | |
tree | bb4afa8e4b8f143c8aa11ec325eabf91e041ccc7 /mysql-test/main/sp.result | |
parent | f98bb23168ee9bc0da8aa7111f35cf2539986387 (diff) | |
download | mariadb-git-cd1d161c261dcb6f9158bf0a537cb9deee051010.tar.gz |
MDEV-19637 Crash on an SP variable assignment to a wrong subselect
Diffstat (limited to 'mysql-test/main/sp.result')
-rw-r--r-- | mysql-test/main/sp.result | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/main/sp.result b/mysql-test/main/sp.result index 3129a2e165c..5908ee24ad4 100644 --- a/mysql-test/main/sp.result +++ b/mysql-test/main/sp.result @@ -8792,3 +8792,18 @@ drop procedure p4; drop table t1; set @@sql_mode=@save_sql_mode; # End of 10.3 tests +# +# Start of 10.4 tests +# +# +# MDEV-19637 Crash on an SP variable assignment to a wrong subselect +# +BEGIN NOT ATOMIC +DECLARE a INT; +SET a=(SELECT 1 FROM DUAL UNION SELECT HIGH_PRIORITY 2 FROM DUAL); +END; +$$ +ERROR 42000: Incorrect usage/placement of 'HIGH_PRIORITY' +# +# End of 10.4 tests +# |