1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

BDB 4.1.24

This commit is contained in:
ram@mysql.r18.ru
2002-10-30 15:57:05 +04:00
parent 1c0f1712ca
commit 5e09392faa
1191 changed files with 171164 additions and 58171 deletions

View File

@@ -9,23 +9,23 @@ set autocommit=0;
update t2 set x = 1 where id = 0;
select x from t1 where id = 0;
select x from t2 where id = 0;
commit;
Deadlock found when trying to get lock; Try restarting transaction
commit;
x
1
commit;
select * from t1;
id x
0 1
select * from t2;
id x
0 1
commit;
select * from t1;
id x
0 1
select * from t1;
select * from t2;
id x
0 1
commit;
id x
0 1
drop table t1,t2;

View File

@@ -30,13 +30,17 @@ select x from t1 where id = 0;
connection con1;
# This should generate a deadlock as we are trying to access a locked row
--error 1213
--send
select x from t2 where id = 0;
connection con2;
--error 1213
commit;
connection con1;
commit;
connection con2;
reap;
commit;
select * from t1;
select * from t2;
commit;
@@ -45,4 +49,5 @@ connection con1;
select * from t1;
select * from t2;
commit;
drop table t1,t2;