mirror of
https://github.com/MariaDB/server.git
synced 2025-03-08 04:03:30 +01:00

git-svn-id: file:///svn/mysql/tests/mysql-test@55030 c7de825b-a66e-492c-adef-691d508d4ae1
62 lines
2.3 KiB
Text
62 lines
2.3 KiB
Text
set default_storage_engine='tokudb';
|
|
drop table if exists t;
|
|
create table tt (id int primary key, x int);
|
|
insert into tt values (1,0),(2,-pow(2,31)),(3,pow(2,31)-1);
|
|
create table ti like tt;
|
|
alter table ti engine=innodb;
|
|
insert into ti select * from tt;
|
|
set tokudb_disable_slow_update=1;
|
|
update noar tt set x=x+1 where id=1;
|
|
update noar ti set x=x+1 where id=1;
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
update noar tt set x=x-2 where id=1;
|
|
update noar ti set x=x-2 where id=1;
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
update noar tt set x=x+1 where id=1;
|
|
update noar ti set x=x+1 where id=1;
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
update noar tt set x=x-1 where id=2;
|
|
update noar ti set x=x-1 where id=2;
|
|
Warnings:
|
|
Warning 1264 Out of range value for column 'x' at row 1
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
update noar tt set x=x+1 where id=2;
|
|
update noar ti set x=x+1 where id=2;
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
update noar tt set x=x+1 where id=3;
|
|
update noar ti set x=x+1 where id=3;
|
|
Warnings:
|
|
Warning 1264 Out of range value for column 'x' at row 1
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
update noar tt set x=x-1 where id=3;
|
|
update noar ti set x=x-1 where id=3;
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
insert into tt values (4,pow(2,31)-10);
|
|
insert into ti values (4,pow(2,31)-10);
|
|
update noar tt set x=x+20 where id=4;
|
|
update noar ti set x=x+20 where id=4;
|
|
Warnings:
|
|
Warning 1264 Out of range value for column 'x' at row 1
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
insert into tt values (5,pow(2,31)-10);
|
|
insert into ti values (5,pow(2,31)-10);
|
|
update noar tt set x=x - -20 where id=5;
|
|
update noar ti set x=x - -20 where id=5;
|
|
Warnings:
|
|
Warning 1264 Out of range value for column 'x' at row 1
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
insert into tt values (6,-pow(2,31)+10);
|
|
insert into ti values (6,-pow(2,31)+10);
|
|
update noar tt set x=x-20 where id=6;
|
|
update noar ti set x=x-20 where id=6;
|
|
Warnings:
|
|
Warning 1264 Out of range value for column 'x' at row 1
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
insert into tt values (7,-pow(2,31)+10);
|
|
insert into ti values (7,-pow(2,31)+10);
|
|
update noar tt set x=x + -20 where id=7;
|
|
update noar ti set x=x + -20 where id=7;
|
|
Warnings:
|
|
Warning 1264 Out of range value for column 'x' at row 1
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
drop table tt, ti;
|