mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Merge mysql.com:/home/tomash/src/mysql_ab/tmp_merge
into mysql.com:/home/tomash/src/mysql_ab/mysql-5.0-merge mysql-test/r/func_misc.result: Manual merge of the fix for bug#16501. mysql-test/t/func_misc.test: Manual merge of the fix for bug#16501. sql/item_func.cc: Manual merge of the fix for bug#16501. sql/sql_acl.cc: For the fix of bug#16372, use local version, since the fix for 5.0 is different, and will go in separate ChangeSet.
This commit is contained in:
commit
77b7a71dd4
5 changed files with 76 additions and 36 deletions
|
|
@ -38,6 +38,44 @@ select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) );
|
|||
|
||||
drop table t1;
|
||||
|
||||
|
||||
#
|
||||
# Bug#16501: IS_USED_LOCK does not appear to work
|
||||
#
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (conn CHAR(7), connection_id INT);
|
||||
INSERT INTO t1 VALUES ('default', CONNECTION_ID());
|
||||
|
||||
SELECT GET_LOCK('bug16501',600);
|
||||
|
||||
connect (con1,localhost,root,,);
|
||||
INSERT INTO t1 VALUES ('con1', CONNECTION_ID());
|
||||
SELECT IS_USED_LOCK('bug16501') = connection_id
|
||||
FROM t1
|
||||
WHERE conn = 'default';
|
||||
send SELECT GET_LOCK('bug16501',600);
|
||||
|
||||
connection default;
|
||||
SELECT IS_USED_LOCK('bug16501') = CONNECTION_ID();
|
||||
SELECT RELEASE_LOCK('bug16501');
|
||||
SELECT IS_USED_LOCK('bug16501') = connection_id
|
||||
FROM t1
|
||||
WHERE conn = 'con1';
|
||||
|
||||
connection con1;
|
||||
reap;
|
||||
SELECT IS_USED_LOCK('bug16501') = CONNECTION_ID();
|
||||
SELECT RELEASE_LOCK('bug16501');
|
||||
SELECT IS_USED_LOCK('bug16501');
|
||||
|
||||
disconnect con1;
|
||||
connection default;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue