Made the vcol suite independent on time zone.
This commit is contained in:
parent
014ec6db2e
commit
ba4f663e11
@ -912,6 +912,7 @@ let $rows = 1;
|
||||
let $cols = a long, b datetime as (from_unixtime(a));
|
||||
let $values1 = 1196440219,default;
|
||||
let $rows = 1;
|
||||
set time_zone='UTC';
|
||||
--source suite/vcol/inc/vcol_supported_sql_funcs.inc
|
||||
|
||||
--echo # GET_FORMAT()
|
||||
|
@ -2194,6 +2194,7 @@ a b
|
||||
drop table t1;
|
||||
set sql_warnings = 0;
|
||||
# FROM_UNIXTIME()
|
||||
set time_zone='UTC';
|
||||
set sql_warnings = 1;
|
||||
create table t1 (a long, b datetime as (from_unixtime(a)));
|
||||
show create table t1;
|
||||
@ -2205,7 +2206,7 @@ t1 CREATE TABLE `t1` (
|
||||
insert into t1 values (1196440219,default);
|
||||
select * from t1;
|
||||
a b
|
||||
1196440219 2007-11-30 08:30:19
|
||||
1196440219 2007-11-30 16:30:19
|
||||
drop table t1;
|
||||
set sql_warnings = 0;
|
||||
# GET_FORMAT()
|
||||
|
@ -2194,6 +2194,7 @@ a b
|
||||
drop table t1;
|
||||
set sql_warnings = 0;
|
||||
# FROM_UNIXTIME()
|
||||
set time_zone='UTC';
|
||||
set sql_warnings = 1;
|
||||
create table t1 (a long, b datetime as (from_unixtime(a)));
|
||||
show create table t1;
|
||||
@ -2205,7 +2206,7 @@ t1 CREATE TABLE `t1` (
|
||||
insert into t1 values (1196440219,default);
|
||||
select * from t1;
|
||||
a b
|
||||
1196440219 2007-11-30 08:30:19
|
||||
1196440219 2007-11-30 16:30:19
|
||||
drop table t1;
|
||||
set sql_warnings = 0;
|
||||
# GET_FORMAT()
|
||||
|
Loading…
x
Reference in New Issue
Block a user