diff options
author | unknown <tim@cane.mysql.fi> | 2000-12-26 17:16:49 +0200 |
---|---|---|
committer | unknown <tim@cane.mysql.fi> | 2000-12-26 17:16:49 +0200 |
commit | 3417bf64020c91fba71149dcb979069768898be9 (patch) | |
tree | 7ab382658250a3f6a3ec3b9e6f0a33b5aeddde54 /mysql-test/t/bdb.test | |
parent | 9b3ebee23cf66bbff5843cd051c5eaa492446bdf (diff) | |
download | mariadb-git-3417bf64020c91fba71149dcb979069768898be9.tar.gz |
ha_berkeley.cc - Don't use subtransactions in update_row by default
ha_berkeley.cc - Use the DB_RMW (read, modify, write) flag when removing a key
ha_berkeley.h - Don't use subtransactions in update_row by default
sql_table.cc - Don't use subtransactions in update_row by default
bdb.result BitKeeper file /usr/home/tim/my/work/mysql-test/r/bdb.result
bdb.test BitKeeper file /usr/home/tim/my/work/mysql-test/t/bdb.test
sql/ha_berkeley.cc:
- Don't use subtransactions in update_row by default
- Use the DB_RMW (read, modify, write) flag when removing a key
sql/ha_berkeley.h:
- Don't use subtransactions in update_row by default
sql/sql_table.cc:
- Don't use subtransactions in update_row by default
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r-- | mysql-test/t/bdb.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test new file mode 100644 index 00000000000..c60e3b0b72e --- /dev/null +++ b/mysql-test/t/bdb.test @@ -0,0 +1,12 @@ +drop table if exists t1; +create table t1 (id int unsigned not null auto_increment, code tinyint unsigned not null, name char(20) not null, primary key (id), key (code), unique (name)) type=bdb; + +insert into t1 (code, name) values (1, 'Tim'), (1, 'Monty'), (2, 'David'), (2, 'Erik'), (3, 'Sasha'), (3, 'Jeremy'), (4, 'Matt'); +select id, code, name from t1 order by id; + +update ignore t1 set id = 8, name = 'Sinisa' where id < 3; +select id, code, name from t1 order by id; +update ignore t1 set id = id + 10, name = 'Ralph' where id < 4; +select id, code, name from t1 order by id; + +drop table t1; |