A post-fix for:

MDEV-7254 Assigned expression is evaluated twice when updating column TIMESTAMP NOT NULL
The test type_timestamp failed depending on the build machine time zone.
Setting a fixed time zone for the test.
This commit is contained in:
Alexander Barkov 2015-01-17 16:10:45 +04:00
parent 6164157b3f
commit 252be4c9e7
2 changed files with 4 additions and 0 deletions

View file

@ -648,6 +648,7 @@ End of 5.5 tests
#
# MDEV-7254: Assigned expression is evaluated twice when updating column TIMESTAMP NOT NULL
#
SET time_zone='+02:00';
create table t1(value timestamp not null);
set @a:=0;
create function f1 () returns timestamp
@ -688,4 +689,5 @@ select @a, value from t1;
drop table t1;
drop function f1;
set timestamp=0;
SET time_zone=DEFAULT;
End of 10.0 tests

View file

@ -451,6 +451,7 @@ DROP TABLE t1;
--echo # MDEV-7254: Assigned expression is evaluated twice when updating column TIMESTAMP NOT NULL
--echo #
SET time_zone='+02:00';
create table t1(value timestamp not null);
set @a:=0;
delimiter //;
@ -489,5 +490,6 @@ select @a, value from t1;
drop table t1;
drop function f1;
set timestamp=0;
SET time_zone=DEFAULT;
--echo End of 10.0 tests