db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Solon <sso...@usa.net>
Subject Bug in PlatformUtils.java
Date Thu, 08 Sep 2005 15:57:34 GMT
It appears that determineDatabaseType method in PlatformUtils.java incorrectly
adds a leading ":" to the subProtocol variable causing matches (for Sybase in
particular) to fail.

Index: D:/workspace/ddlutils/src/java/org/apache/ddlutils/PlatformUtils.java
===================================================================
--- D:/workspace/ddlutils/src/java/org/apache/ddlutils/PlatformUtils.java
(revision 279001)
+++ D:/workspace/ddlutils/src/java/org/apache/ddlutils/PlatformUtils.java
(working copy)
@@ -241,7 +241,7 @@
                  "sybase".equals(subProtocol))
         {
             pos         = jdbcConnectionUrl.indexOf(':', pos + 1);
-            subProtocol = ":" + jdbcConnectionUrl.substring(lastPos + 1,
pos);
+            subProtocol = jdbcConnectionUrl.substring(lastPos + 1, pos);
         }
 
         return (String)jdbcSubProtocolToPlatform.get(subProtocol);



Mime
View raw message