mariadb/mysql-test/t/rollback.test

15 lines
284 B
Text
Raw Normal View History

#
# This test should fail as MyISAM doesn't have rollback
#
drop table if exists t1;
create table t1 (n int not null primary key) type=myisam;
begin work;
insert into t1 values (4);
insert into t1 values (5);
# Should give an error
!$1196 rollback;
select * from t1;
drop table t1;