mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-08 07:16:58 +02:00
The timezone is different in between my own machine and the test system, just get rid of that discrepancy so that the test stop failing.
25 lines
648 B
Fish
25 lines
648 B
Fish
LOAD CSV
|
|
FROM inline (rownum, ts [date format 'YYYY-MM-DD HH24-MI-SS.US'])
|
|
INTO postgresql:///pgloader?dateformat (rownum, ts)
|
|
|
|
WITH truncate,
|
|
fields optionally enclosed by '"',
|
|
fields escaped by double-quote,
|
|
fields terminated by ','
|
|
|
|
SET client_encoding to 'latin1',
|
|
work_mem to '12MB',
|
|
standard_conforming_strings to 'on'
|
|
|
|
BEFORE LOAD DO
|
|
$$ drop table if exists dateformat; $$,
|
|
$$ create table dateformat (
|
|
rownum smallint,
|
|
ts timestamp
|
|
);
|
|
$$;
|
|
|
|
1,2014-10-02 00-33-12.123456
|
|
2,2014-10-02 00-33-13.123456
|
|
3,2014-10-02 00-33-14.123456
|