1
0
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:
Alexander Barkov
2019-05-21 14:22:49 +04:00
parent ed39181a27
commit 8164bd24a6
6 changed files with 65 additions and 8 deletions

View File

@ -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: