mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
23 lines
662 B
Text
23 lines
662 B
Text
set default_storage_engine='tokudb';
|
|
drop table if exists t;
|
|
set tokudb_disable_slow_upsert=1;
|
|
create table t (id int primary key, x int not null);
|
|
insert noar into t values (1,1);
|
|
insert noar into t values (1,1) on duplicate key update x=x+1;
|
|
select * from t;
|
|
id x
|
|
1 2
|
|
insert noar into t values (1,10) on duplicate key update x=values(x)+1;
|
|
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
|
select * from t;
|
|
id x
|
|
1 2
|
|
insert noar into t values (1,10) on duplicate key update x=x+values(x);
|
|
select * from t;
|
|
id x
|
|
1 12
|
|
insert noar into t values (1,100) on duplicate key update x=x+values(x);
|
|
select * from t;
|
|
id x
|
|
1 112
|
|
drop table t;
|