use of herddb.client.ClientSideMetadataProviderException in project herddb by diennea.
the class HerdDBStatement method executeQuery.
@Override
public ResultSet executeQuery(String sql) throws SQLException {
try {
parent.discoverTableSpace(sql);
ScanResultSet scanResult = this.parent.getConnection().executeScan(parent.getTableSpace(), sql, false, Collections.emptyList(), parent.ensureTransaction(), maxRows, fetchSize, parent.isKeepReadLocks());
parent.bindToTransaction(scanResult.transactionId);
return lastResultSet = new HerdDBResultSet(scanResult, this);
} catch (ClientSideMetadataProviderException | HDBException | InterruptedException ex) {
throw SQLExceptionUtils.wrapException(ex);
}
}
Aggregations