Skip to content

Commit

Permalink
Más timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Dec 12, 2016
1 parent 786236b commit 488ce7c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
1 change: 1 addition & 0 deletions test/fixtures/timestamps.in-opts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
separator: ;
9 changes: 1 addition & 8 deletions test/fixtures/timestamps.result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions test/fixtures/timestamps.sql
Original file line number Diff line number Diff line change
@@ -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);
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');
9 changes: 5 additions & 4 deletions test/fixtures/timestamps.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 488ce7c

Please sign in to comment.