From 488ce7ce30a8eeabbd34a446a97cf60d17eb3fb6 Mon Sep 17 00:00:00 2001 From: "Diego F.(EW7)" Date: Mon, 12 Dec 2016 13:58:47 -0300 Subject: [PATCH] =?UTF-8?q?M=C3=A1s=20timestamps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/fixtures/timestamps.in-opts.yaml | 1 + test/fixtures/timestamps.result.yaml | 9 +-------- test/fixtures/timestamps.sql | 10 +++++----- test/fixtures/timestamps.txt | 9 +++++---- test/test.js | 2 +- 5 files changed, 13 insertions(+), 18 deletions(-) create mode 100644 test/fixtures/timestamps.in-opts.yaml diff --git a/test/fixtures/timestamps.in-opts.yaml b/test/fixtures/timestamps.in-opts.yaml new file mode 100644 index 0000000..af51840 --- /dev/null +++ b/test/fixtures/timestamps.in-opts.yaml @@ -0,0 +1 @@ +separator: ; \ No newline at end of file diff --git a/test/fixtures/timestamps.result.yaml b/test/fixtures/timestamps.result.yaml index 19062d9..1f7cb07 100644 --- a/test/fixtures/timestamps.result.yaml +++ b/test/fixtures/timestamps.result.yaml @@ -2,14 +2,7 @@ columns: - name: ts1 type: timestamp inPrimaryKey: true - maxLength: 25 + maxLength: 29 maxScale: null hasNullValues: false hasCientificNotation: null - - name: fecha - type: date - inPrimaryKey: false - maxLength: 9 - maxScale: null - hasNullValues: true - hasCientificNotation: null \ No newline at end of file diff --git a/test/fixtures/timestamps.sql b/test/fixtures/timestamps.sql index b3d1e57..88f9925 100644 --- a/test/fixtures/timestamps.sql +++ b/test/fixtures/timestamps.sql @@ -1,10 +1,10 @@ create table "timestamps" ( "ts1" timestamp, - "fecha" date, primary key ("ts1") ); -insert into "timestamps" ("ts1", "fecha") values - ('2016-11-21 10:00:01', '2/2/1969'), - ('2010-01-21 00:10:00.009', '20/3/1969'), - ('1969-05-06 00:10:00 -3:00', null); \ No newline at end of file +insert into "timestamps" ("ts1") values + ('2016-11-21 10:00:01'), + ('2010-01-21 00:10:00.009'), + ('1969-05-06 00:10:00 -3:00'), + ('2009-05-06 00:10:00.100 +4:00'); \ No newline at end of file diff --git a/test/fixtures/timestamps.txt b/test/fixtures/timestamps.txt index ce609be..61d1824 100644 --- a/test/fixtures/timestamps.txt +++ b/test/fixtures/timestamps.txt @@ -1,4 +1,5 @@ -ts1;fecha -2016-11-21 10:00:01;2/2/1969 -2010-01-21 00:10:00.009;20/3/1969 -1969-05-06 00:10:00 -3:00; +ts1 +2016-11-21 10:00:01 +2010-01-21 00:10:00.009 +1969-05-06 00:10:00 -3:00 +2009-05-06 00:10:00.100 +4:00 diff --git a/test/test.js b/test/test.js index 9faa161..29950c4 100644 --- a/test/test.js +++ b/test/test.js @@ -70,7 +70,7 @@ describe("fixtures", function(){ {name:'mssql-insert-limit'}, // compactInsertLimit should be ignored (#24) {name:'insert-limit2'}, {name:'dates'}, - {/*skip:true, */name:'timestamps'}, + {name:'timestamps'}, {skip:true, name:'booleans'}, ].forEach(function(fixture){ if(fixture.skip) {