Skip to content

Commit

Permalink
Prepara fixtures para timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Dec 12, 2016
1 parent 1473641 commit a080b58
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
15 changes: 15 additions & 0 deletions test/fixtures/timestamps.result.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
columns:
- name: ts1
type: timestamp
inPrimaryKey: true
maxLength: 10
maxScale: 0
hasNullValues: false
hasCientificNotation: null
- name: fecha
type: date
inPrimaryKey: false
maxLength: 9
maxScale: 0
hasNullValues: true
hasCientificNotation: null
10 changes: 10 additions & 0 deletions test/fixtures/timestamps.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
create table "timestamps" (
"ts1" date,
"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', '20/3/1969'),
('1969-05-06 00:10:00 -3:00', null);
4 changes: 4 additions & 0 deletions test/fixtures/timestamps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ts1;fecha
2016-11-21 10:00:01;2/2/1969
2010-01-21 00:10:00;20/3/1969
1969-05-06 00:10:00 -3:00;
3 changes: 2 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ describe("fixtures", function(){
{name:'insert-limit'},
{name:'mssql-insert-limit'}, // compactInsertLimit should be ignored (#24)
{name:'insert-limit2'},
{name:'dates'},
{skip:true, name:'booleans'},
{/*skip:true, */name:'dates'},
{skip:true, name:'timestamps'},
].forEach(function(fixture){
if(fixture.skip) {
it.skip("fixture: "+fixture.name);
Expand Down

0 comments on commit a080b58

Please sign in to comment.