incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1184841 - in /incubator/lcf/trunk: ./ connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/
Date Sun, 16 Oct 2011 15:01:31 GMT
Author: kwright
Date: Sun Oct 16 15:01:31 2011
New Revision: 1184841

URL: http://svn.apache.org/viewvc?rev=1184841&view=rev
Log:
Fix for CONNECTORS-259.  Enable support for MySQL in JDBC connector.

Modified:
    incubator/lcf/trunk/CHANGES.txt
    incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnectionFactory.java
    incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java

Modified: incubator/lcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/CHANGES.txt?rev=1184841&r1=1184840&r2=1184841&view=diff
==============================================================================
--- incubator/lcf/trunk/CHANGES.txt (original)
+++ incubator/lcf/trunk/CHANGES.txt Sun Oct 16 15:01:31 2011
@@ -3,6 +3,9 @@ $Id$
 
 ======================= 0.4-dev =====================
 
+CONNECTORS-259: Enable support for MySQL in JDBC connector.
+(Karl Wright)
+
 CONNECTORS-187: Fix how the worker threads handle document deletion
 service interruptions.
 (Karl Wright

Modified: incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnectionFactory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnectionFactory.java?rev=1184841&r1=1184840&r2=1184841&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnectionFactory.java
(original)
+++ incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnectionFactory.java
Sun Oct 16 15:01:31 2011
@@ -46,9 +46,9 @@ public class JDBCConnectionFactory
     driverMap = new HashMap();
     driverMap.put("oracle:thin:@","oracle.jdbc.OracleDriver");
     driverMap.put("postgresql:","org.postgresql.Driver");
-    driverMap.put("mysql:","org.gjt.mm.mysql.Driver");
     driverMap.put("jtds:sqlserver:","net.sourceforge.jtds.jdbc.Driver");
     driverMap.put("jtds:sybase:","net.sourceforge.jtds.jdbc.Driver");
+    driverMap.put("mysql:","com.mysql.jdbc.Driver");
     try
     {
       _pool = new ConnectionPoolManager(120);

Modified: incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java?rev=1184841&r1=1184840&r2=1184841&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
(original)
+++ incubator/lcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
Sun Oct 16 15:01:31 2011
@@ -734,6 +734,7 @@ public class JDBCConnector extends org.a
 "        <option value=\"postgresql:\" "+(jdbcProvider.equals("postgresql:")?"selected=\"selected\"":"")+">Postgres
SQL</option>\n"+
 "        <option value=\"jtds:sqlserver:\" "+(jdbcProvider.equals("jtds:sqlserver:")?"selected=\"selected\"":"")+">MS
SQL Server (&gt; V6.5)</option>\n"+
 "        <option value=\"jtds:sybase:\" "+(jdbcProvider.equals("jtds:sybase:")?"selected=\"selected\"":"")+">Sybase
(&gt;= V10)</option>\n"+
+"        <option value=\"mysql:\" "+(jdbcProvider.equals("mysql:")?"selected=\"selected\"":"")+">MySQL
(&gt;= V5)</option>\n"+
 "      </select>\n"+
 "    </td>\n"+
 "  </tr>\n"+



Mime
View raw message