~ubuntu-branches/ubuntu/hardy/mysql-dfsg-5.0/hardy-updates

« back to all changes in this revision

Viewing changes to mysql-test/t/bdb_notembedded.test

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-02 16:10:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070402161053-zkil9hjq9k5p1uzv
Tags: 5.0.37-0ubuntu1
* New upstream bugfix release.
  - Fixes replication failure with auto-increment and on duplicate key
    update, a regression introduced into 5.0.24. (LP: #95821)
* debian/control: Set Ubuntu maintainer.
* debian/rules: Change comments from 'Debian etch' to 'Ubuntu 7.04'.

Show diffs side-by-side

added added

removed removed

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