tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jihoon...@apache.org
Subject git commit: TAJO-945: Connecting to Tajo by JDBC driver failed with SQL Exception "Invalid JDBC URI". (Mai Hai Thanh via jihoon)
Date Tue, 15 Jul 2014 15:04:49 GMT
Repository: tajo
Updated Branches:
  refs/heads/master 499d1081b -> 1867c53e4


TAJO-945: Connecting to Tajo by JDBC driver failed with SQL Exception "Invalid JDBC URI".
(Mai Hai Thanh via jihoon)


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/1867c53e
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/1867c53e
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/1867c53e

Branch: refs/heads/master
Commit: 1867c53e4de46bf5c6f2a69fe9d1fd27facac35b
Parents: 499d108
Author: Jihoon Son <jihoonson@apache.org>
Authored: Wed Jul 16 00:04:03 2014 +0900
Committer: Jihoon Son <jihoonson@apache.org>
Committed: Wed Jul 16 00:04:03 2014 +0900

----------------------------------------------------------------------
 CHANGES                                                          | 3 +++
 tajo-jdbc/src/main/java/org/apache/tajo/jdbc/TajoConnection.java | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/1867c53e/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 4146fee..86f40c9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -89,6 +89,9 @@ Release 0.9.0 - unreleased
 
   BUG FIXES
 
+    TAJO-945: Connecting to Tajo by JDBC driver failed with SQL Exception 
+    "Invalid JDBC URI". (Mai Hai Thanh via jihoon)
+
     TAJO-904: ORDER BY Null first support. (Hyoungjun Kim via hyunsik)
 
     TAJO-936: TestStorages::testSplitable is failed occasionally. (jinho)

http://git-wip-us.apache.org/repos/asf/tajo/blob/1867c53e/tajo-jdbc/src/main/java/org/apache/tajo/jdbc/TajoConnection.java
----------------------------------------------------------------------
diff --git a/tajo-jdbc/src/main/java/org/apache/tajo/jdbc/TajoConnection.java b/tajo-jdbc/src/main/java/org/apache/tajo/jdbc/TajoConnection.java
index 9439f0f..f5b5b68 100644
--- a/tajo-jdbc/src/main/java/org/apache/tajo/jdbc/TajoConnection.java
+++ b/tajo-jdbc/src/main/java/org/apache/tajo/jdbc/TajoConnection.java
@@ -83,7 +83,7 @@ public class TajoConnection implements Connection {
         port = this.uri.getPort();
       }
 
-      if (this.uri.getPath() == null) { // if no database is given, set default.
+      if (this.uri.getPath() == null || this.uri.getPath().equalsIgnoreCase("")) { // if
no database is given, set default.
         databaseName = TajoConstants.DEFAULT_DATABASE_NAME;
       } else {
         // getPath() will return '/database'.


Mime
View raw message