2001-09-28 07:05:54 +02:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (kill_id int);
|
|
|
|
insert into t1 values(connection_id());
|
|
|
|
select ((@id := kill_id) - kill_id) from t1;
|
2001-03-14 07:07:12 +01:00
|
|
|
((@id := kill_id) - kill_id)
|
|
|
|
0
|
2001-09-28 07:05:54 +02:00
|
|
|
kill @id;
|
2005-03-19 01:17:10 +01:00
|
|
|
select ((@id := kill_id) - kill_id) from t1;
|
|
|
|
((@id := kill_id) - kill_id)
|
|
|
|
0
|
|
|
|
select @id != connection_id();
|
|
|
|
@id != connection_id()
|
|
|
|
1
|
2001-09-28 07:05:54 +02:00
|
|
|
select 4;
|
2001-03-14 07:07:12 +01:00
|
|
|
4
|
|
|
|
4
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table t1;
|
2005-01-20 09:41:37 +01:00
|
|
|
select get_lock("a", 10);
|
|
|
|
get_lock("a", 10)
|
|
|
|
1
|
|
|
|
select get_lock("a", 10);
|
|
|
|
get_lock("a", 10)
|
|
|
|
NULL
|
|
|
|
select 1;
|
|
|
|
1
|
|
|
|
1
|
|
|
|
select RELEASE_LOCK("a");
|
|
|
|
RELEASE_LOCK("a")
|
|
|
|
1
|