Commit f77e963a authored by Rich Prohaska's avatar Rich Prohaska

refs #5725 no binlog for upserts for now

git-svn-id: file:///svn/mysql/tests/mysql-test@51152 c7de825b-a66e-492c-adef-691d508d4ae1
parent f75314e6
create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1;
insert into tt values (1,0);
insert into tt values (1,0) on duplicate key update x=x+1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
insert into tt values (2,0) on duplicate key update x=x+1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
set session tokudb_enable_fast_update=1;
set session tokudb_disable_slow_update=1;
update tt set x=x+1 where id=1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
update tt set x=x+1 where id=2;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
drop table tt;
create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1;
insert into tt values (1,0);
insert into tt values (1,0) on duplicate key update x=x+1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
insert into tt values (2,0) on duplicate key update x=x+1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
set session tokudb_enable_fast_update=1;
set session tokudb_disable_slow_update=1;
update tt set x=x+1 where id=1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
update tt set x=x+1 where id=2;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
drop table tt;
create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1;
insert into tt values (1,0);
insert into tt values (1,0) on duplicate key update x=x+1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
insert into tt values (2,0) on duplicate key update x=x+1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
set session tokudb_enable_fast_update=1;
set session tokudb_disable_slow_update=1;
update tt set x=x+1 where id=1;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
update tt set x=x+1 where id=2;
ERROR 42000: Table 'tt' uses an extension that doesn't exist in this MariaDB version
drop table tt;
source include/have_binlog_format_mixed.inc;
source include/have_tokudb.inc;
create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1;
insert into tt values (1,0);
error ER_UNSUPPORTED_EXTENSION;
insert into tt values (1,0) on duplicate key update x=x+1;
error ER_UNSUPPORTED_EXTENSION;
insert into tt values (2,0) on duplicate key update x=x+1;
set session tokudb_enable_fast_update=1;
set session tokudb_disable_slow_update=1;
error ER_UNSUPPORTED_EXTENSION;
update tt set x=x+1 where id=1;
error ER_UNSUPPORTED_EXTENSION;
update tt set x=x+1 where id=2;
drop table tt;
source include/have_binlog_format_row.inc;
source include/have_tokudb.inc;
create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1;
insert into tt values (1,0);
error ER_UNSUPPORTED_EXTENSION;
insert into tt values (1,0) on duplicate key update x=x+1;
error ER_UNSUPPORTED_EXTENSION;
insert into tt values (2,0) on duplicate key update x=x+1;
set session tokudb_enable_fast_update=1;
set session tokudb_disable_slow_update=1;
error ER_UNSUPPORTED_EXTENSION;
update tt set x=x+1 where id=1;
error ER_UNSUPPORTED_EXTENSION;
update tt set x=x+1 where id=2;
drop table tt;
source include/have_binlog_format_statement.inc;
source include/have_tokudb.inc;
create table tt (id int primary key, x int);
set session tokudb_enable_fast_upsert=1;
set session tokudb_disable_slow_upsert=1;
insert into tt values (1,0);
error ER_UNSUPPORTED_EXTENSION;
insert into tt values (1,0) on duplicate key update x=x+1;
error ER_UNSUPPORTED_EXTENSION;
insert into tt values (2,0) on duplicate key update x=x+1;
set session tokudb_enable_fast_update=1;
set session tokudb_disable_slow_update=1;
error ER_UNSUPPORTED_EXTENSION;
update tt set x=x+1 where id=1;
error ER_UNSUPPORTED_EXTENSION;
update tt set x=x+1 where id=2;
drop table tt;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment