mirror of https://github.com/apache/lucene.git
SOLR-1500 Jdbc datasource fails with Oracle driver
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@823398 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d87d335af8
commit
dc7f2df712
|
@ -187,7 +187,7 @@ public class JdbcDataSource extends
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue