mirror of
https://github.com/MariaDB/server.git
synced 2025-10-31 15:50:51 +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:
@@ -3057,4 +3057,12 @@ yes
|
||||
yes
|
||||
drop procedure bug7293|
|
||||
delete from t1|
|
||||
drop procedure if exists bug9841|
|
||||
drop view if exists v1|
|
||||
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|
|
||||
drop table t1,t2;
|
||||
|
||||
Reference in New Issue
Block a user