ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [48/50] [abbrv] ignite git commit: IGNITE-6671 Web Agent: Fixed data type conversion for Oracle NUMBER(N) data types.
Date Wed, 25 Oct 2017 09:41:22 GMT
IGNITE-6671 Web Agent: Fixed data type conversion for Oracle NUMBER(N) data types.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/93be8ea9
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/93be8ea9
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/93be8ea9

Branch: refs/heads/ignite-3478
Commit: 93be8ea901de4d4bf076127f1006e1caa0479652
Parents: 4f263fa
Author: vsisko <vsisko@gridgain.com>
Authored: Wed Oct 25 11:23:11 2017 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Wed Oct 25 11:23:11 2017 +0700

----------------------------------------------------------------------
 .../agent/db/dialect/OracleMetadataDialect.java        | 13 +++++--------
 .../apache/ignite/console/agent/rest/RestExecutor.java |  4 ++--
 2 files changed, 7 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/93be8ea9/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/db/dialect/OracleMetadataDialect.java
----------------------------------------------------------------------
diff --git a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/db/dialect/OracleMetadataDialect.java
b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/db/dialect/OracleMetadataDialect.java
index 6d12c81..b8b72d5 100644
--- a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/db/dialect/OracleMetadataDialect.java
+++ b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/db/dialect/OracleMetadataDialect.java
@@ -208,21 +208,18 @@ public class OracleMetadataDialect extends DatabaseMetadataDialect {
                     }
                     else {
                         if (precision < 1)
-                            return INTEGER;
-
-                        if (precision < 2)
-                            return BOOLEAN;
+                            return NUMERIC;
 
-                        if (precision < 4)
+                        if (precision < 3)
                             return TINYINT;
 
-                        if (precision < 6)
+                        if (precision < 5)
                             return SMALLINT;
 
-                        if (precision < 11)
+                        if (precision < 10)
                             return INTEGER;
 
-                        if (precision < 20)
+                        if (precision < 19)
                             return BIGINT;
 
                         return NUMERIC;

http://git-wip-us.apache.org/repos/asf/ignite/blob/93be8ea9/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/rest/RestExecutor.java
----------------------------------------------------------------------
diff --git a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/rest/RestExecutor.java
b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/rest/RestExecutor.java
index 13989b4..36f3885 100644
--- a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/rest/RestExecutor.java
+++ b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/rest/RestExecutor.java
@@ -329,11 +329,11 @@ public class RestExecutor {
                     break;
 
                 case VALUE_NUMBER_INT:
-                    gen.writeNumber(p.getLongValue());
+                    gen.writeNumber(p.getBigIntegerValue());
                     break;
 
                 case VALUE_NUMBER_FLOAT:
-                    gen.writeNumber(p.getDoubleValue());
+                    gen.writeNumber(p.getDecimalValue());
                     break;
 
                 case VALUE_TRUE:


Mime
View raw message