mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
new lock for multiupdate:
- open and create derived tables - detect which tables should be locked for write - lock and fill derived tables some unitialized variables fixed
This commit is contained in:
@ -1314,7 +1314,11 @@ static int mysql_test_multiupdate(Prepared_statement *stmt,
|
||||
int res;
|
||||
if ((res= multi_update_precheck(stmt->thd, tables)))
|
||||
return res;
|
||||
return select_like_statement_test(stmt, tables, &mysql_multi_update_prepare);
|
||||
/*
|
||||
here we do not pass tables for opening, tables will be opened and locked
|
||||
by mysql_multi_update_prepare
|
||||
*/
|
||||
return select_like_statement_test(stmt, 0, &mysql_multi_update_prepare);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user