~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

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

auto-merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
311
311
drop view v1;
312
312
 
313
313
--echo #
 
314
--echo # WL#4284: Transactional DDL locking
 
315
--echo #
 
316
 
 
317
--disable_warnings
 
318
drop table if exists t1;
 
319
--enable_warnings
 
320
create table t1 (a int);
 
321
connect(con1,localhost,root,,);
 
322
set autocommit= 0;
 
323
insert into t1 values (1);
 
324
lock table t1 write;
 
325
--echo # Disconnect
 
326
--echo # Ensure that metadata locks will be released if there is an open
 
327
--echo # transaction (autocommit=off) in conjunction with lock tables.
 
328
disconnect con1;
 
329
connection default;
 
330
drop table t1;
 
331
 
 
332
--echo # Same problem but now for BEGIN
 
333
 
 
334
--disable_warnings
 
335
drop table if exists t1;
 
336
--enable_warnings
 
337
create table t1 (a int);
 
338
connect(con1,localhost,root,,);
 
339
begin;
 
340
insert into t1 values (1);
 
341
--echo # Disconnect
 
342
--echo # Ensure that metadata locks held by the transaction are released.
 
343
disconnect con1;
 
344
connection default;
 
345
drop table t1;
 
346
 
 
347
--echo #
314
348
--echo # End of 6.0 tests.
315
349
--echo #