"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/ConnectionImpl.java" between
solr-8.4.0-src.tgz and solr-8.4.1-src.tgz

About: Solr is the search platform from the Apache Lucene project. Its major features include full-text search, hit highlighting, faceted search, caching, replication, and a web admin interface.

ConnectionImpl.java  (solr-8.4.0-src.tgz):ConnectionImpl.java  (solr-8.4.1-src.tgz)
skipping to change at line 184 skipping to change at line 184
} }
@Override @Override
public String getCatalog() throws SQLException { public String getCatalog() throws SQLException {
return this.client.getZkHost(); return this.client.getZkHost();
} }
@Override @Override
public void setTransactionIsolation(int level) throws SQLException { public void setTransactionIsolation(int level) throws SQLException {
throw new UnsupportedOperationException(); if(isClosed()) {
throw new SQLException("Connection is closed.");
}
if(Connection.TRANSACTION_NONE == level) {
throw new SQLException("Connection.TRANSACTION_NONE cannot be used.");
}
if(
Connection.TRANSACTION_READ_COMMITTED == level ||
Connection.TRANSACTION_READ_UNCOMMITTED == level ||
Connection.TRANSACTION_REPEATABLE_READ == level ||
Connection.TRANSACTION_SERIALIZABLE == level
) {
throw new SQLException(new UnsupportedOperationException());
} else {
throw new SQLException("Unsupported transaction type specified.");
}
} }
@Override @Override
public int getTransactionIsolation() throws SQLException { public int getTransactionIsolation() throws SQLException {
throw new UnsupportedOperationException(); if(isClosed()) {
throw new SQLException("Connection is closed.");
}
return Connection.TRANSACTION_NONE;
} }
@Override @Override
public SQLWarning getWarnings() throws SQLException { public SQLWarning getWarnings() throws SQLException {
if(isClosed()) { if(isClosed()) {
throw new SQLException("Connection is closed."); throw new SQLException("Connection is closed.");
} }
return this.currentWarning; return this.currentWarning;
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)