~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/tests/t/release_lock.test

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2010-10-20 20:41:00 UTC
  • mfrom: (1863 staging)
  • mto: This revision was merged to the branch mainline in revision 1871.
  • Revision ID: barry.leslie@primebase.com-20101020204100-oyj6p5cfssjw3p62
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# We explicitly whether or not a connection 
 
3
#
 
4
SET @lock_name="release_lock_test";
 
5
 
 
6
# We should now obtain the lock
 
7
SELECT get_lock(@lock_name);
 
8
SELECT if ((is_used_lock(@lock_name) = CONNECTION_ID()), "YES", "NO");
 
9
SELECT release_lock(@lock_name);
 
10
# Lock should now be un-owned
 
11
SELECT is_used_lock(@lock_name);
 
12
SELECT release_lock(@lock_name);