Commit ba4f663e authored by Igor Babaev's avatar Igor Babaev

Made the vcol suite independent on time zone.

parent 014ec6db
...@@ -912,6 +912,7 @@ let $rows = 1; ...@@ -912,6 +912,7 @@ let $rows = 1;
let $cols = a long, b datetime as (from_unixtime(a)); let $cols = a long, b datetime as (from_unixtime(a));
let $values1 = 1196440219,default; let $values1 = 1196440219,default;
let $rows = 1; let $rows = 1;
set time_zone='UTC';
--source suite/vcol/inc/vcol_supported_sql_funcs.inc --source suite/vcol/inc/vcol_supported_sql_funcs.inc
--echo # GET_FORMAT() --echo # GET_FORMAT()
......
...@@ -2194,6 +2194,7 @@ a b ...@@ -2194,6 +2194,7 @@ a b
drop table t1; drop table t1;
set sql_warnings = 0; set sql_warnings = 0;
# FROM_UNIXTIME() # FROM_UNIXTIME()
set time_zone='UTC';
set sql_warnings = 1; set sql_warnings = 1;
create table t1 (a long, b datetime as (from_unixtime(a))); create table t1 (a long, b datetime as (from_unixtime(a)));
show create table t1; show create table t1;
...@@ -2205,7 +2206,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2205,7 +2206,7 @@ t1 CREATE TABLE `t1` (
insert into t1 values (1196440219,default); insert into t1 values (1196440219,default);
select * from t1; select * from t1;
a b a b
1196440219 2007-11-30 08:30:19 1196440219 2007-11-30 16:30:19
drop table t1; drop table t1;
set sql_warnings = 0; set sql_warnings = 0;
# GET_FORMAT() # GET_FORMAT()
......
...@@ -2194,6 +2194,7 @@ a b ...@@ -2194,6 +2194,7 @@ a b
drop table t1; drop table t1;
set sql_warnings = 0; set sql_warnings = 0;
# FROM_UNIXTIME() # FROM_UNIXTIME()
set time_zone='UTC';
set sql_warnings = 1; set sql_warnings = 1;
create table t1 (a long, b datetime as (from_unixtime(a))); create table t1 (a long, b datetime as (from_unixtime(a)));
show create table t1; show create table t1;
...@@ -2205,7 +2206,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2205,7 +2206,7 @@ t1 CREATE TABLE `t1` (
insert into t1 values (1196440219,default); insert into t1 values (1196440219,default);
select * from t1; select * from t1;
a b a b
1196440219 2007-11-30 08:30:19 1196440219 2007-11-30 16:30:19
drop table t1; drop table t1;
set sql_warnings = 0; set sql_warnings = 0;
# GET_FORMAT() # GET_FORMAT()
......
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