mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug #13231 mysqltest: fails to dectect when mysql_next_result fails
- Added functionality to check errors returned from mysql_next_result - Exit from mysqltest when and unexpected error occurs. - The above fixes reveal problems with rpl000009, sp-error and query_cache- - Fix sp-error by adding an expected error - Fix rpl000009 by not sending "ok" from mysql_create_db when called with silent flag from load_master_data - Fix query_cache in separate patch
This commit is contained in:
@@ -991,6 +991,7 @@ P1: BEGIN
|
||||
SELECT 'end of proc';
|
||||
END P1|
|
||||
delimiter ;|
|
||||
--error 1326
|
||||
call SP001();
|
||||
drop procedure SP001;
|
||||
drop table t1, t2;
|
||||
@@ -1187,7 +1188,30 @@ delimiter ;|
|
||||
create trigger bug12712
|
||||
before insert on t1 for each row set session autocommit = 0;
|
||||
|
||||
|
||||
#
|
||||
# BUG#9367: Stored procedures: client hang after "show warnings"
|
||||
#
|
||||
--disable_parsing
|
||||
--disable_warnings
|
||||
drop procedure if exists bug9367;
|
||||
--enable_warnings
|
||||
create table t1 (s1 int);
|
||||
select s1 from t1;
|
||||
delimiter |;
|
||||
create procedure bug9367()
|
||||
begin
|
||||
declare v int;
|
||||
declare c cursor for select s1 from t1;
|
||||
open c;
|
||||
show warnings;
|
||||
fetch c into v;
|
||||
select v;
|
||||
end|
|
||||
delimiter ;|
|
||||
call bug9367();
|
||||
drop procedure bug9367;
|
||||
drop table t1;
|
||||
--enable_parsing
|
||||
#
|
||||
# BUG#NNNN: New bug synopsis
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user