From bff93c5016b528d7ec2f64a3e954116ef13ec903 Mon Sep 17 00:00:00 2001 From: "Diego F.(EW7)" Date: Mon, 12 Dec 2016 12:02:22 -0300 Subject: [PATCH] binary_double para Oracle --- lib/txt-to-sql.js | 2 +- test/fixtures/oracle-example-one.result.yaml | 2 +- test/fixtures/oracle-example-one.sql | 2 +- test/fixtures/oracle-with-drop-table.sql | 2 +- web/txt-to-sql.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/txt-to-sql.js b/lib/txt-to-sql.js index 78bed00..f8b87c6 100644 --- a/lib/txt-to-sql.js +++ b/lib/txt-to-sql.js @@ -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 diff --git a/test/fixtures/oracle-example-one.result.yaml b/test/fixtures/oracle-example-one.result.yaml index 31d7fd5..c5d6b01 100644 --- a/test/fixtures/oracle-example-one.result.yaml +++ b/test/fixtures/oracle-example-one.result.yaml @@ -30,7 +30,7 @@ columns: hasNullValues: false hasCientificNotation: null - name: 'double col' - type: number + type: binary_double inPrimaryKey: false maxLength: 1 maxScale: 7 diff --git a/test/fixtures/oracle-example-one.sql b/test/fixtures/oracle-example-one.sql index cb89552..043f5c1 100644 --- a/test/fixtures/oracle-example-one.sql +++ b/test/fixtures/oracle-example-one.sql @@ -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); diff --git a/test/fixtures/oracle-with-drop-table.sql b/test/fixtures/oracle-with-drop-table.sql index 9ab8faa..774f31c 100644 --- a/test/fixtures/oracle-with-drop-table.sql +++ b/test/fixtures/oracle-with-drop-table.sql @@ -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); diff --git a/web/txt-to-sql.js b/web/txt-to-sql.js index 78bed00..f8b87c6 100644 --- a/web/txt-to-sql.js +++ b/web/txt-to-sql.js @@ -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