mirror of
https://github.com/MariaDB/server.git
synced 2025-07-07 06:01:31 +03:00
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into moonbone.local:/mnt/gentoo64/work/29310-bug-5.1-opt-mysql
This commit is contained in:
@ -959,4 +959,32 @@ NULL
|
||||
1
|
||||
Two
|
||||
drop tables t1;
|
||||
create table t1(f1 varchar(5) unique, f2 timestamp NOT NULL DEFAULT
|
||||
CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
|
||||
insert into t1(f1) values(1);
|
||||
select @a:=f2 from t1;
|
||||
@a:=f2
|
||||
#
|
||||
update t1 set f1=1;
|
||||
select @b:=f2 from t1;
|
||||
@b:=f2
|
||||
#
|
||||
select if(@a=@b,"ok","wrong");
|
||||
if(@a=@b,"ok","wrong")
|
||||
ok
|
||||
insert into t1(f1) values (1) on duplicate key update f1="1";
|
||||
select @b:=f2 from t1;
|
||||
@b:=f2
|
||||
#
|
||||
select if(@a=@b,"ok","wrong");
|
||||
if(@a=@b,"ok","wrong")
|
||||
ok
|
||||
insert into t1(f1) select f1 from t1 on duplicate key update f1="1";
|
||||
select @b:=f2 from t1;
|
||||
@b:=f2
|
||||
#
|
||||
select if(@a=@b,"ok","wrong");
|
||||
if(@a=@b,"ok","wrong")
|
||||
ok
|
||||
drop table t1;
|
||||
End of 5.1 tests
|
||||
|
Reference in New Issue
Block a user