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:
Noble Paul 2009-10-09 04:06:09 +00:00
parent d87d335af8
commit dc7f2df712
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}