1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug #9486 "Can't perform multi-update in stored procedure".

New more SP-locking friendly approach to handling locks in multi-update.
Now we mark all tables of multi-update as needing write lock at parsing
stage and if possible downgrade lock at execution stage (For its work
SP-locking mechanism needs to know all lock types right after parsing
stage).
This commit is contained in:
dlenev@brandersnatch.localdomain
2005-04-15 20:31:47 +04:00
parent 32221d9b9e
commit 6b0b4734d9
7 changed files with 73 additions and 25 deletions

View File

@ -732,7 +732,7 @@ typedef struct st_lex
USER_RESOURCES mqh;
ulong type;
enum_sql_command sql_command, orig_sql_command;
thr_lock_type lock_option, multi_lock_option;
thr_lock_type lock_option;
enum SSL_type ssl_type; /* defined in violite.h */
enum my_lex_states next_state;
enum enum_duplicates duplicates;