mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-19535 sql_mode=ORACLE: 'SELECT INTO @var FOR UPDATE' does not lock the table
This commit is contained in:
@ -9470,6 +9470,12 @@ bool LEX::select_finalize(st_select_lex_unit *expr)
|
||||
}
|
||||
|
||||
|
||||
bool LEX::select_finalize(st_select_lex_unit *expr, Lex_select_lock l)
|
||||
{
|
||||
return expr->set_lock_to_the_last_select(l) ||
|
||||
select_finalize(expr);
|
||||
}
|
||||
|
||||
/*
|
||||
"IN" and "EXISTS" subselect can appear in two statement types:
|
||||
|
||||
|
Reference in New Issue
Block a user