2001-09-28 07:05:54 +02:00
|
|
|
drop table if exists t1;
|
2003-12-10 05:31:42 +01:00
|
|
|
create table t1 (n int not null primary key) engine=myisam;
|
2001-09-28 07:05:54 +02:00
|
|
|
begin work;
|
|
|
|
insert into t1 values (4);
|
|
|
|
insert into t1 values (5);
|
|
|
|
rollback;
|
2002-10-02 12:33:08 +02:00
|
|
|
Warnings:
|
|
|
|
Warning 1196 Some non-transactional changed tables couldn't be rolled back
|
|
|
|
select @@warning_count;
|
|
|
|
@@warning_count
|
|
|
|
1
|
|
|
|
select @@error_count;
|
|
|
|
@@error_count
|
|
|
|
0
|
|
|
|
show warnings;
|
|
|
|
Level Code Message
|
|
|
|
Warning 1196 Some non-transactional changed tables couldn't be rolled back
|
|
|
|
show errors;
|
|
|
|
Level Code Message
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t1;
|
2000-12-28 02:56:38 +01:00
|
|
|
n
|
|
|
|
4
|
|
|
|
5
|
2002-10-02 12:33:08 +02:00
|
|
|
select @@warning_count;
|
|
|
|
@@warning_count
|
|
|
|
0
|
|
|
|
show warnings;
|
|
|
|
Level Code Message
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table t1;
|