mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 19:55:32 +02:00
Fix for replication of INSERT | REPLACE | CREATE ... SELECT
sql/sql_select.cc: Fix for repllication of INSERT | REPLACE | CREATE ... SELECT
This commit is contained in:
parent
5cd07da765
commit
0e812fc4b1
2 changed files with 8 additions and 8 deletions
|
|
@ -1595,6 +1595,7 @@ mysql_execute_command(void)
|
|||
for (table = tables->next ; table ; table=table->next)
|
||||
table->lock_type= lex->lock_option;
|
||||
}
|
||||
select_lex->options|= SELECT_NO_UNLOCK;
|
||||
thd->offset_limit=select_lex->offset_limit;
|
||||
thd->select_limit=select_lex->select_limit+select_lex->offset_limit;
|
||||
if (thd->select_limit < select_lex->select_limit)
|
||||
|
|
@ -1922,6 +1923,8 @@ mysql_execute_command(void)
|
|||
if ((res=check_table_access(thd, SELECT_ACL, save_next)))
|
||||
goto error;
|
||||
}
|
||||
/* Don't unlock tables until command is written to binary log */
|
||||
select_lex->options|= SELECT_NO_UNLOCK;
|
||||
|
||||
select_result *result;
|
||||
thd->offset_limit=select_lex->offset_limit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue