rollback.test
Upload User: romrleung
Upload Date: 2022-05-23
Package Size: 18897k
Code Size: 0k
Category:

MySQL

Development Platform:

Visual C++

  1. #
  2. # This test should fail as MyISAM doesn't have rollback
  3. #
  4. --disable_warnings
  5. drop table if exists t1;
  6. --enable_warnings
  7. # PS doesn't work with BEGIN ... ROLLBACK
  8. --disable_ps_protocol
  9. create table t1 (n int not null primary key) engine=myisam;
  10. begin work;
  11. insert into t1 values (4);
  12. insert into t1 values (5);
  13. rollback;
  14. select @@warning_count;
  15. select @@error_count;
  16. show warnings;
  17. show errors;
  18. select * from t1;
  19. select @@warning_count;
  20. show warnings;
  21. drop table t1;
  22. # End of 4.1 tests