mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0-bug21414 mysql-test/r/sp.result: Auto merged mysql-test/t/sp.test: Auto merged sql/mysql_priv.h: Auto merged sql/sp.cc: Auto merged sql/sql_acl.cc: Auto merged
This commit is contained in:
@ -5394,4 +5394,12 @@ Procedure sql_mode Create Procedure
|
||||
bug21416 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug21416`()
|
||||
show create procedure bug21416
|
||||
drop procedure bug21416|
|
||||
DROP PROCEDURE IF EXISTS bug21414|
|
||||
CREATE PROCEDURE bug21414() SELECT 1|
|
||||
FLUSH TABLES WITH READ LOCK|
|
||||
DROP PROCEDURE bug21414|
|
||||
ERROR HY000: Can't execute the query because you have a conflicting read lock
|
||||
UNLOCK TABLES|
|
||||
The following should succeed.
|
||||
DROP PROCEDURE bug21414|
|
||||
drop table t1,t2;
|
||||
|
@ -1,13 +1,9 @@
|
||||
#
|
||||
# Basic stored PROCEDURE tests
|
||||
#
|
||||
# Please keep this file free of --error cases and other
|
||||
# things that will not run in a single debugged mysqld
|
||||
# process (e.g. master-slave things).
|
||||
#
|
||||
# Test cases for bugs are added at the end. See template there.
|
||||
#
|
||||
# Tests that require --error go into sp-error.test
|
||||
# Some tests that require --error go into sp-error.test
|
||||
# Tests that require inndb go into sp_trans.test
|
||||
# Tests that check privilege and security issues go to sp-security.test.
|
||||
# Tests that require multiple connections, except security/privilege tests,
|
||||
@ -6322,6 +6318,27 @@ create procedure bug21416() show create procedure bug21416|
|
||||
call bug21416()|
|
||||
drop procedure bug21416|
|
||||
|
||||
|
||||
#
|
||||
# BUG#21414: SP: Procedure undroppable, to some extent
|
||||
#
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS bug21414|
|
||||
--enable_warnings
|
||||
|
||||
CREATE PROCEDURE bug21414() SELECT 1|
|
||||
|
||||
FLUSH TABLES WITH READ LOCK|
|
||||
|
||||
--error ER_CANT_UPDATE_WITH_READLOCK
|
||||
DROP PROCEDURE bug21414|
|
||||
|
||||
UNLOCK TABLES|
|
||||
|
||||
--echo The following should succeed.
|
||||
DROP PROCEDURE bug21414|
|
||||
|
||||
|
||||
#
|
||||
# BUG#NNNN: New bug synopsis
|
||||
#
|
||||
|
Reference in New Issue
Block a user