diff options
author | mats@mysql.com <> | 2004-12-03 12:13:51 +0100 |
---|---|---|
committer | mats@mysql.com <> | 2004-12-03 12:13:51 +0100 |
commit | 2bbdf2403dc9b6b8b4d4803c5e81b05958ea2890 (patch) | |
tree | 9bc3bd40e4b1f44785c9ff7e39f7d045b8960d70 /sql/handler.cc | |
parent | 3455e345b2e9cd0674f3ed4abbebdbef6d5748b8 (diff) | |
download | mariadb-git-2bbdf2403dc9b6b8b4d4803c5e81b05958ea2890.tar.gz |
Bug#6391 (binlog-do-db rules ignored)
CREATE DATABASE statement used the current database instead of the
database created when checking conditions for replication.
CREATE/DROP/ALTER DATABASE statements are now replicated based on
the manipulated database.
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 5dae7950390..d2844f3e09b 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -723,7 +723,7 @@ int ha_rollback_to_savepoint(THD *thd, char *savepoint_name) if (unlikely((thd->options & OPTION_STATUS_NO_TRANS_UPDATE) && my_b_tell(&thd->transaction.trans_log))) { - Query_log_event qinfo(thd, thd->query, thd->query_length, TRUE); + Query_log_event qinfo(thd, thd->query, thd->query_length, TRUE, FALSE); if (mysql_bin_log.write(&qinfo)) error= 1; } @@ -761,7 +761,7 @@ int ha_savepoint(THD *thd, char *savepoint_name) innobase_savepoint(thd,savepoint_name, my_b_tell(&thd->transaction.trans_log)); #endif - Query_log_event qinfo(thd, thd->query, thd->query_length, TRUE); + Query_log_event qinfo(thd, thd->query, thd->query_length, TRUE, FALSE); if (mysql_bin_log.write(&qinfo)) error= 1; } |