mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5317 out parameters in PREPARE "SELECT ... INTO"
originally based on the patch by Antony T Curtis
This commit is contained in:
@ -256,9 +256,14 @@ execute stmt1 using @my_key ;
|
||||
execute full_info ;
|
||||
--disable_metadata
|
||||
|
||||
# the next statement must fail
|
||||
--error 1064
|
||||
# the next statement does not fail anymore
|
||||
prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
|
||||
execute stmt1 using @result;
|
||||
--enable_metadata
|
||||
execute full_info ;
|
||||
--disable_metadata
|
||||
select @result;
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user