While a transaction in one thread tries to update a non-existent InnoDB row with a given key value, an attempt to insert that value in another thread is locked out. Does anyone know where this behaviour is documented?
-- connection 1 drop table if exists t; create table t( lockid char(3), lockinfo char(8), primary key(lockid,lockinfo) ); insert into t values('abc','def'); begin work; update t set lockinfo='bar' where lockid='foo';
-- connection 2: insert into t values('aaa','bbb'); Query OK, 1 row affected (0.00 sec) insert into t values('foo','bar'); -- waits for connection 1 transaction
PB
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=listsearcharchive@lassosoft.com
Aug 31
Rik Wasmus Re: locked non-existent row
Aug 31, 2011; 11:50
Rik Wasmus
Re: locked non-existent row
Aug 31
Peter Brawley Re: locked non-existent row
Aug 31, 2011; 09:39
Peter Brawley
Re: locked non-existent row
Sep 01
Rik Wasmus | GRIB Re: locked non-existent row
Sep 01, 2011; 08:58
Rik Wasmus | GRIB
Re: locked non-existent row
Sep 01
Jerry Schwartz RE: locked non-existent row
Sep 01, 2011; 10:06
Jerry Schwartz
RE: locked non-existent row
Sep 01
Rik Wasmus Re: locked non-existent row
Sep 01, 2011; 16:46
Rik Wasmus
Re: locked non-existent row
Sep 01
Peter Brawley Re: locked non-existent row
Sep 01, 2011; 10:25
Peter Brawley
Re: locked non-existent row
Sep 01
Jerry Schwartz RE: locked non-existent row
Sep 01, 2011; 15:14
Jerry Schwartz
RE: locked non-existent row
Sep 02
Jochem van Dieten Re: locked non-existent row
Sep 02, 2011; 13:15
Jochem van Dieten
Re: locked non-existent row
Sep 02
Peter Brawley Re: locked non-existent row
Sep 02, 2011; 11:14
Peter Brawley
Re: locked non-existent row
Sep 02
Peter Brawley Re: locked non-existent row
Sep 02, 2011; 11:16
Peter Brawley
Re: locked non-existent row
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!