Skip to content

Commit

Permalink
Un fixture más para #26
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Nov 9, 2016
1 parent 75da143 commit 6ff4b22
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/insert-limit2.in-opts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
compactInsertLimit: 3
17 changes: 17 additions & 0 deletions test/fixtures/insert-limit2.result.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
columns:
- name: texto
type: character varying
inPrimaryKey: true
maxLength: 10
maxScale: null
hasNullValues: false
hasCientificNotation: null
- name: numero
type: integer
inPrimaryKey: false
maxLength: 2
maxScale: 0
hasNullValues: false
hasCientificNotation: null
opts:
compactInsertLimit: 3
39 changes: 39 additions & 0 deletions test/fixtures/insert-limit2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
create table "insert-limit2" (
"texto" character varying(10),
"numero" integer,
primary key ("texto")
);

insert into "insert-limit2" ("texto", "numero") values
('uno', 1),
('dos', 2),
('tres', 3);

insert into "insert-limit2" ("texto", "numero") values
('cuatro', 4),
('cinco', 5),
('seis', 6);

insert into "insert-limit2" ("texto", "numero") values
('siete', 7),
('ocho', 8),
('nueve', 9);

insert into "insert-limit2" ("texto", "numero") values
('diez', 10),
('once', 11),
('doce', 12);

insert into "insert-limit2" ("texto", "numero") values
('trece', 13),
('catorce', 14),
('quince', 15);

insert into "insert-limit2" ("texto", "numero") values
('dieciseis', 16),
('diecisiete', 17),
('dieciocho', 18);

insert into "insert-limit2" ("texto", "numero") values
('diecinueve', 19),
('veinte', 20);
21 changes: 21 additions & 0 deletions test/fixtures/insert-limit2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
texto;numero
uno;1
dos;2
tres;3
cuatro;4
cinco;5
seis;6
siete;7
ocho;8
nueve;9
diez;10
once;11
doce;12
trece;13
catorce;14
quince;15
dieciseis;16
diecisiete;17
dieciocho;18
diecinueve;19
veinte;20
1 change: 1 addition & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ describe("fixtures", function(){
{name:'csv-harder'},
{name:'insert-limit'},
{name:'mssql-insert-limit'}, // compactInsertLimit should be ignored (#24)
{name:'insert-limit2'},
].forEach(function(fixture){
if(fixture.skip) {
it.skip("fixture: "+fixture.name);
Expand Down

0 comments on commit 6ff4b22

Please sign in to comment.