summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
author <Li-Bing.Song@sun.com>2009-08-13 10:48:57 +0800
committer <Li-Bing.Song@sun.com>2009-08-13 10:48:57 +0800
commit10e90a1fe5154e78402fe4b3868e79d1f2076239 (patch)
tree35a500b7817051b61aeb42aba97e0a4b6d6e774c /sql-common
parent602404b37a298cdcfe535e4e09999cf587b427b3 (diff)
downloadmariadb-git-10e90a1fe5154e78402fe4b3868e79d1f2076239.tar.gz
BUG#45574 CREATE IF NOT EXISTS is not binlogged if the object exists
There is an inconsistency with DROP DATABASE|TABLE|EVENT IF EXISTS and CREATE DATABASE|TABLE|EVENT IF NOT EXISTS. DROP IF EXISTS statements are binlogged even if either the DB, TABLE or EVENT does not exist. In contrast, Only the CREATE EVENT IF NOT EXISTS is binlogged when the EVENT exists. This patch fixes the following cases for all the replication formats: CREATE DATABASE IF NOT EXISTS. CREATE TABLE IF NOT EXISTS, CREATE TABLE IF NOT EXISTS ... LIKE, CREAET TABLE IF NOT EXISTS ... SELECT.
Diffstat (limited to 'sql-common')
0 files changed, 0 insertions, 0 deletions