1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix for bug #9841 "Unexpected read lock when trying to update a view in

a stored procedure" (version 2).

To handle updates and inserts into view in SP properly we should set
lock types for tables of the view's main select when we are opening
view for prelocking purproses.
This commit is contained in:
dlenev@brandersnatch.localdomain
2005-05-05 19:49:15 +04:00
parent 25f44eab31
commit d60674d665
3 changed files with 42 additions and 14 deletions

View File

@ -3741,6 +3741,25 @@ call bug7293 ('secrete')|
drop procedure bug7293|
delete from t1|
#
# BUG#9841: Unexpected read lock when trying to update a view in a
# stored procedure
#
--disable_warnings
drop procedure if exists bug9841|
drop view if exists v1|
--enable_warnings
create view v1 as select * from t1, t2 where id = s|
create procedure bug9841 ()
update v1 set data = 10|
call bug9841()|
drop view v1|
drop procedure bug9841|
#
# BUG#NNNN: New bug synopsis
#