You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
820 B

  1. -- source include/not_embedded.inc
  2. -- source include/have_bdb.inc
  3. #
  4. # Bug #16206: Superfluous COMMIT event in binlog when updating BDB in autocommit mode
  5. #
  6. set autocommit=1;
  7. let $VERSION=`select version()`;
  8. reset master;
  9. create table bug16206 (a int);
  10. insert into bug16206 values(1);
  11. start transaction;
  12. insert into bug16206 values(2);
  13. commit;
  14. --replace_result $VERSION VERSION
  15. --replace_column 1 f 2 n 5 n
  16. show binlog events;
  17. drop table bug16206;
  18. reset master;
  19. create table bug16206 (a int) engine= bdb;
  20. insert into bug16206 values(0);
  21. insert into bug16206 values(1);
  22. start transaction;
  23. insert into bug16206 values(2);
  24. commit;
  25. insert into bug16206 values(3);
  26. --replace_result $VERSION VERSION
  27. --replace_column 1 f 2 n 5 n
  28. show binlog events;
  29. drop table bug16206;
  30. set autocommit=0;
  31. --echo End of 5.0 tests