kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kangkai...@apache.org
Subject [36/50] [abbrv] kylin git commit: KYLIN-2824 Parse Boolean type in JDBC driver
Date Mon, 04 Sep 2017 13:44:47 GMT
KYLIN-2824 Parse Boolean type in JDBC driver

Signed-off-by: Billy Liu <billyliu@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/7a47e947
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/7a47e947
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/7a47e947

Branch: refs/heads/2622-2764
Commit: 7a47e9479f7a8c53d284d3bd95cf11b145cf9c36
Parents: 363f858
Author: Tianhao Zhao <thzhao@outlook.com>
Authored: Thu Aug 31 16:10:28 2017 +0800
Committer: Billy Liu <billyliu@apache.org>
Committed: Fri Sep 1 17:37:31 2017 +0800

----------------------------------------------------------------------
 jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/7a47e947/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java
----------------------------------------------------------------------
diff --git a/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java b/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java
index d42dbb1..cd7b921 100644
--- a/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java
+++ b/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java
@@ -112,6 +112,7 @@ public class KylinClient implements IRemoteClient {
             result = BigDecimal.class;
             break;
         case Types.BIT:
+        case Types.BOOLEAN:
             result = Boolean.class;
             break;
         case Types.TINYINT:
@@ -167,6 +168,7 @@ public class KylinClient implements IRemoteClient {
         case Types.DECIMAL:
             return new BigDecimal(value);
         case Types.BIT:
+        case Types.BOOLEAN:
             return Boolean.parseBoolean(value);
         case Types.TINYINT:
             return Byte.valueOf(value);


Mime
View raw message