diff options
Diffstat (limited to 'mysql-test/t/rollback.test')
-rw-r--r-- | mysql-test/t/rollback.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/rollback.test b/mysql-test/t/rollback.test new file mode 100644 index 00000000000..6ea2cca887f --- /dev/null +++ b/mysql-test/t/rollback.test @@ -0,0 +1,14 @@ +# +# 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; |