Skip to content

Commit

Permalink
binary_double para Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Dec 12, 2016
1 parent 83ae0a0 commit bff93c5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/txt-to-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var engines = {
dropTable:dropTableIfExists
},
'oracle': {
types:mapTypes(['integer','long','number','number','date','varchar2'/*,'char'*/]),
types:mapTypes(['integer','long','number','binary_double','date','varchar2'/*,'char'*/]),
quote:quoteDouble,
noCompactInsert:true,
dropTable:dropTable
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/oracle-example-one.result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ columns:
hasNullValues: false
hasCientificNotation: null
- name: 'double col'
type: number
type: binary_double
inPrimaryKey: false
maxLength: 1
maxScale: 7
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/oracle-example-one.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ create table "oracle-example-one" (
"int col" integer,
"num col" number(8,6),
"big col" long,
"double col" number
"double col" binary_double
);

insert into "oracle-example-one" ("text col", "int col", "num col", "big col", "double col") values ('hello', 1, 3.141592, 1234567890, 1.12e-101);
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/oracle-with-drop-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ create table "oracle-with-drop-table" (
"int col" integer,
"num col" number(8,6),
"big col" long,
"double col" number
"double col" binary_double
);

insert into "oracle-with-drop-table" ("text col", "int col", "num col", "big col", "double col") values ('hello', 1, 3.141592, 1234567890, 1.12e-101);
Expand Down
2 changes: 1 addition & 1 deletion web/txt-to-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var engines = {
dropTable:dropTableIfExists
},
'oracle': {
types:mapTypes(['integer','long','number','number','date','varchar2'/*,'char'*/]),
types:mapTypes(['integer','long','number','binary_double','date','varchar2'/*,'char'*/]),
quote:quoteDouble,
noCompactInsert:true,
dropTable:dropTable
Expand Down

0 comments on commit bff93c5

Please sign in to comment.