~thomir-deactivatedaccount/drizzle/drizzle-fix-bug653747

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2010-10-10 02:07:52 UTC
  • mfrom: (1827.2.3 staging)
  • Revision ID: brian@tangent.org-20101010020752-ktv73isay5dxtvp3
Merge in switch on table_share_instance inheritance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Test for simple lock issues
2
 
SELECT get_locks("foo", "foo2", "foo3");
3
 
SELECT if ((is_used_lock("foo") = CONNECTION_ID()), "YES", "NO");
4
 
SELECT if ((is_used_lock("foo2") = CONNECTION_ID()), "YES", "NO");
5
 
SELECT if ((is_used_lock("foo3") = CONNECTION_ID()), "YES", "NO");
6
 
 
7
 
SELECT release_lock("foo2");
8
 
SELECT if ((is_used_lock("foo") = CONNECTION_ID()), "YES", "NO");
9
 
SELECT if ((is_used_lock("foo2") = CONNECTION_ID()), "YES", "NO");
10
 
SELECT if ((is_used_lock("foo3") = CONNECTION_ID()), "YES", "NO");
11
 
 
12
 
SELECT release_locks();
13
 
SELECT if ((is_used_lock("foo") = CONNECTION_ID()), "YES", "NO");
14
 
SELECT if ((is_used_lock("foo2") = CONNECTION_ID()), "YES", "NO");
15
 
SELECT if ((is_used_lock("foo3") = CONNECTION_ID()), "YES", "NO");