2000-12-28 02:56:38 +01:00
|
|
|
#
|
|
|
|
# This test should fail as MyISAM doesn't have rollback
|
|
|
|
#
|
|
|
|
|
2003-01-06 00:48:59 +01:00
|
|
|
--disable_warnings
|
2000-12-28 02:56:38 +01:00
|
|
|
drop table if exists t1;
|
2003-01-06 00:48:59 +01:00
|
|
|
--enable_warnings
|
2004-10-26 18:30:01 +02:00
|
|
|
# PS doesn't work with BEGIN ... ROLLBACK
|
|
|
|
--disable_ps_protocol
|
2000-12-28 02:56:38 +01:00
|
|
|
|
2003-12-10 05:31:42 +01:00
|
|
|
create table t1 (n int not null primary key) engine=myisam;
|
2000-12-28 02:56:38 +01:00
|
|
|
begin work;
|
|
|
|
insert into t1 values (4);
|
|
|
|
insert into t1 values (5);
|
2002-10-02 12:33:08 +02:00
|
|
|
rollback;
|
|
|
|
select @@warning_count;
|
|
|
|
select @@error_count;
|
|
|
|
show warnings;
|
|
|
|
show errors;
|
2000-12-28 02:56:38 +01:00
|
|
|
select * from t1;
|
2002-10-02 12:33:08 +02:00
|
|
|
select @@warning_count;
|
|
|
|
show warnings;
|
2000-12-28 02:56:38 +01:00
|
|
|
drop table t1;
|