lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r823398 - /lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java
Date Fri, 09 Oct 2009 04:06:09 GMT
Author: noble
Date: Fri Oct  9 04:06:09 2009
New Revision: 823398

URL: http://svn.apache.org/viewvc?rev=823398&view=rev
Log:
SOLR-1500 Jdbc datasource fails with Oracle driver

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java?rev=823398&r1=823397&r2=823398&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/JdbcDataSource.java
Fri Oct  9 04:06:09 2009
@@ -187,7 +187,7 @@
           String holdability = initProps.getProperty("holdability");
           if ("CLOSE_CURSORS_AT_COMMIT".equals(holdability)) {
             c.setHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT);
-          } else {
+          } else if ("HOLD_CURSORS_OVER_COMMIT".equals(holdability)) {
             c.setHoldability(ResultSet.HOLD_CURSORS_OVER_COMMIT);
           }
         }



Mime
View raw message