summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
author <Li-Bing.Song@sun.com>2010-01-16 15:44:24 +0800
committer <Li-Bing.Song@sun.com>2010-01-16 15:44:24 +0800
commit6f380d1650ad123c61640522cb5274eb143a5fa9 (patch)
tree5cb87884cc819c950b796602fd62601a7c339e24 /extra
parent440f5a9cad69a31424a7881f722ee93dfbc3ca07 (diff)
downloadmariadb-git-6f380d1650ad123c61640522cb5274eb143a5fa9.tar.gz
BUG#47418 RBR fails, failure with mixup of base/temporary/view
'CREATE TABLE IF NOT EXISTS ... SELECT' statement were causing 'CREATE TEMPORARY TABLE ...' to be written to the binary log in row-based mode (a.k.a. RBR), when there was a temporary table with the same name. Because the 'CREATE TABLE ... SELECT' statement was executed as 'INSERT ... SELECT' into the temporary table. Since in RBR mode no other statements related to temporary tables are written into binary log, this sometimes broke replication. This patch changes behavior of 'CREATE TABLE [IF NOT EXISTS] ... SELECT ...'. it ignores existence of temporary table with the same name as table being created and is interpreted as attempt to create/insert into base table. This makes behavior of 'CREATE TABLE [IF NOT EXISTS] ... SELECT' consistent with how ordinary 'CREATE TABLE' and 'CREATE TABLE ... LIKE' behave.
Diffstat (limited to 'extra')
0 files changed, 0 insertions, 0 deletions