diff options
| author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-08-20 12:09:17 +0300 |
|---|---|---|
| committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-08-20 12:09:17 +0300 |
| commit | f1517f4861ec0dc44a1c623154187fa051b2eb7c (patch) | |
| tree | d7d20b0fb3455280191417a9653848ff8d25442e /sql/sql_insert.cc | |
| parent | 89d7ac6007fe79cdf99563c95a8528be74e25efc (diff) | |
| parent | 05d0568bee2b8776bdb34850a1b6f7efc142db5b (diff) | |
| download | mariadb-git-f1517f4861ec0dc44a1c623154187fa051b2eb7c.tar.gz | |
merge
Diffstat (limited to 'sql/sql_insert.cc')
| -rw-r--r-- | sql/sql_insert.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 8604f876f37..567c7ff2b30 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -3972,6 +3972,17 @@ void select_create::abort() if (table) { + if (thd->lex->sql_command == SQLCOM_CREATE_TABLE && + thd->current_stmt_binlog_row_based && + !(thd->lex->create_info.options & HA_LEX_CREATE_TMP_TABLE) && + mysql_bin_log.is_open()) + { + /* + This should be removed after BUG#47899. + */ + mysql_bin_log.reset_gathered_updates(thd); + } + table->file->extra(HA_EXTRA_NO_IGNORE_DUP_KEY); table->file->extra(HA_EXTRA_WRITE_CANNOT_REPLACE); if (!create_info->table_existed) |
