Description:
The CSV storage engine is not honoring the time_zone system variable when doing INSERTs.
How to repeat:
create table t1 (ts timestamp) engine=csv;
set time_zone='+00:00';
insert into t1 (ts) values ('2003-03-30 02:30:00');
set time_zone='+10:30';
insert into t1 (ts) values ('2003-03-30 02:30:00');
set time_zone='-10:00';
insert into t1 (ts) values ('2003-03-30 02:30:00');
select * from t1;
Expected:
+---------------------+
| ts |
+---------------------+
| 2003-03-29 16:30:00 |
| 2003-03-29 06:00:00 |
| 2003-03-30 02:30:00 |
+---------------------+
3 rows in set (0.01 sec)
Actual:
+---------------------+
| ts |
+---------------------+
| 2003-03-30 02:30:00 |
| 2003-03-30 02:30:00 |
| 2003-03-30 02:30:00 |
+---------------------+
3 rows in set (0.01 sec)
How to repeat:
How to repeat:
create table t1 (ts timestamp) engine=csv;
set time_zone='+00:00';
insert into t1 (ts) values ('2003-03-30 02:30:00');
set time_zone='+10:30';
insert into t1 (ts) values ('2003-03-30 02:30:00');
set time_zone='-10:00';
insert into t1 (ts) values ('2003-03-30 02:30:00');
select * from t1;