Commit 83fa0335 authored by Sergei Golubchik's avatar Sergei Golubchik

after merge: update the test for 10.10

because explicit_defaults_for_timestamp is now true
parent 4a6fbe27
...@@ -416,7 +416,8 @@ drop table t1; ...@@ -416,7 +416,8 @@ drop table t1;
# MDEV-31164 default current_timestamp() not working when used INSERT ON DUPLICATE KEY in some cases # MDEV-31164 default current_timestamp() not working when used INSERT ON DUPLICATE KEY in some cases
# #
set timestamp=unix_timestamp('2000-10-20 0:0:0'); set timestamp=unix_timestamp('2000-10-20 0:0:0');
create table t1 (pk integer primary key, val varchar(20) not null, ts timestamp); create table t1 (pk integer primary key, val varchar(20) not null, ts timestamp
default current_timestamp on update current_timestamp);
insert t1 (pk, val) values(1, 'val1'); insert t1 (pk, val) values(1, 'val1');
select * from t1; select * from t1;
pk val ts pk val ts
......
...@@ -316,7 +316,8 @@ drop table t1; ...@@ -316,7 +316,8 @@ drop table t1;
--echo # MDEV-31164 default current_timestamp() not working when used INSERT ON DUPLICATE KEY in some cases --echo # MDEV-31164 default current_timestamp() not working when used INSERT ON DUPLICATE KEY in some cases
--echo # --echo #
set timestamp=unix_timestamp('2000-10-20 0:0:0'); set timestamp=unix_timestamp('2000-10-20 0:0:0');
create table t1 (pk integer primary key, val varchar(20) not null, ts timestamp); create table t1 (pk integer primary key, val varchar(20) not null, ts timestamp
default current_timestamp on update current_timestamp);
insert t1 (pk, val) values(1, 'val1'); insert t1 (pk, val) values(1, 'val1');
select * from t1; select * from t1;
set timestamp=unix_timestamp('2000-10-20 1:0:0'); set timestamp=unix_timestamp('2000-10-20 1:0:0');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment