mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-16708: fixed issue with handling of the directive --enable-prepared-warnings in mysqltest
This commit is contained in:
committed by
Sergei Golubchik
parent
fc71746a6a
commit
b126c3f3fa
@ -9,9 +9,10 @@ drop table if exists t1, t2;
|
||||
--enable_warnings
|
||||
|
||||
# Backup the mysql.proc table
|
||||
--enable_prepare_warnings
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
eval SELECT * FROM mysql.proc INTO OUTFILE '$MYSQLTEST_VARDIR/tmp/proc.txt';
|
||||
|
||||
--disable_prepare_warnings
|
||||
# Make sure we don't have any procedures left.
|
||||
delete from mysql.proc;
|
||||
|
||||
@ -42,8 +43,10 @@ drop table if exists t3|
|
||||
create table t3 ( x int )|
|
||||
insert into t3 values (2), (3)|
|
||||
|
||||
--enable_prepare_warnings
|
||||
create procedure bad_into(out param int)
|
||||
select x from t3 into param|
|
||||
--disable_prepare_warnings
|
||||
|
||||
--error 1172
|
||||
call bad_into(@x)|
|
||||
@ -3797,12 +3800,14 @@ delimiter |;
|
||||
--echo # because SIGNAL would raise SQL-error in that case.
|
||||
--echo
|
||||
|
||||
--enable_prepare_warnings
|
||||
CREATE FUNCTION f1() RETURNS INTEGER
|
||||
BEGIN
|
||||
DECLARE v VARCHAR(5) DEFAULT -1;
|
||||
SELECT b FROM t1 WHERE a = 2 INTO v;
|
||||
RETURN v;
|
||||
END|
|
||||
--disable_prepare_warnings
|
||||
|
||||
--echo
|
||||
--echo # Here we check that the NOT_FOUND condition raised in f1()
|
||||
|
Reference in New Issue
Block a user