~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/concurrent.inc

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
connection thread1;
165
165
begin;
166
166
select release_lock("hello");
167
 
--error 1205
 
167
--error ER_LOCK_WAIT_TIMEOUT
168
168
update t1 set tipo=1+get_lock("hello",10)*0 where tipo=2;
169
169
select * from t1;
170
170
connection thread2;
207
207
connection thread1;
208
208
begin;
209
209
select release_lock("hello");
210
 
--error 1205
 
210
--error ER_LOCK_WAIT_TIMEOUT
211
211
update t1 set tipo=11+get_lock("hello",10)*0 where tipo=22;
212
212
select * from t1;
213
213
connection thread2;
250
250
connection thread1;
251
251
begin;
252
252
select release_lock("hello");
253
 
--error 1205
 
253
--error ER_LOCK_WAIT_TIMEOUT
254
254
select * from t1 where tipo=1 FOR UPDATE;
255
255
connection thread2;
256
256
reap;
293
293
connection thread1;
294
294
begin;
295
295
select release_lock("hello");
296
 
--error 1205
 
296
--error ER_LOCK_WAIT_TIMEOUT
297
297
update t1 set tipo=1+get_lock("hello",10)*0 where tipo=2;
298
298
select * from t1;
299
299
connection thread2;