mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-4.0
into eagle.mysql.r18.ru:/home/vva/work/BUG_1194/mysql-4.0
This commit is contained in:
@ -42,3 +42,35 @@ select @a:=10, @b:=2, @a > @b, @a < @b;
|
||||
select @a:="10", @b:="2", @a > @b, @a < @b;
|
||||
@a:="10" @b:="2" @a > @b @a < @b
|
||||
10 2 0 1
|
||||
select @a:=1;
|
||||
@a:=1
|
||||
1
|
||||
select @a, @a:=1;
|
||||
@a @a:=1
|
||||
1 1
|
||||
create table t1 (id int);
|
||||
insert into t1 values (1);
|
||||
select @c:=0;
|
||||
@c:=0
|
||||
0
|
||||
update t1 SET id=(@c:=@c+1);
|
||||
select @c;
|
||||
@c
|
||||
1
|
||||
select @c:=0;
|
||||
@c:=0
|
||||
0
|
||||
update t1 set id=(@c:=@c+1);
|
||||
select @c;
|
||||
@c
|
||||
1
|
||||
select @c:=0;
|
||||
@c:=0
|
||||
0
|
||||
select @c:=@c+1;
|
||||
@c:=@c+1
|
||||
1
|
||||
drop table t1;
|
||||
select @a:=10, @b:=2, @a>@b, @a:="10", @b:="2", @a>@b, @a:=10, @b:=2, @a>@b, @a:="10", @b:="2", @a>@b;
|
||||
@a:=10 @b:=2 @a>@b @a:="10" @b:="2" @a>@b @a:=10 @b:=2 @a>@b @a:="10" @b:="2" @a>@b
|
||||
10 2 1 10 2 0 10 2 1 10 2 0
|
||||
|
@ -23,3 +23,22 @@ select @a:=10, @b:=1, @a > @b, @a < @b;
|
||||
select @a:="10", @b:="1", @a > @b, @a < @b;
|
||||
select @a:=10, @b:=2, @a > @b, @a < @b;
|
||||
select @a:="10", @b:="2", @a > @b, @a < @b;
|
||||
|
||||
# Fixed bug #1194
|
||||
select @a:=1;
|
||||
select @a, @a:=1;
|
||||
|
||||
create table t1 (id int);
|
||||
insert into t1 values (1);
|
||||
select @c:=0;
|
||||
update t1 SET id=(@c:=@c+1);
|
||||
select @c;
|
||||
select @c:=0;
|
||||
update t1 set id=(@c:=@c+1);
|
||||
select @c;
|
||||
select @c:=0;
|
||||
select @c:=@c+1;
|
||||
drop table t1;
|
||||
|
||||
# just fof fun :)
|
||||
select @a:=10, @b:=2, @a>@b, @a:="10", @b:="2", @a>@b, @a:=10, @b:=2, @a>@b, @a:="10", @b:="2", @a>@b;
|
Reference in New Issue
Block a user