Skip to content
This repository was archived by the owner on Dec 30, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ public CassandraConnection(SessionHolder sessionHolder) throws SQLException
logger.info("Connected to cluster: %s\n",
metadata.getClusterName());
for (Host aHost : metadata.getAllHosts()) {
logger.info("Datacenter: %s; Host: %s; Rack: %s\n",
aHost.getDatacenter(), aHost.getAddress(), aHost.getRack());
logger.info(String.format("Datacenter: %s; Host: %s; Rack: %s\n",
aHost.getDatacenter(), aHost.getAddress(), aHost.getRack()));
}

Iterator<Host> hosts = metadata.getAllHosts().iterator();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public boolean execute(String query) throws SQLException
{
checkNotClosed();
doExecute(query);
return !(currentResultSet == null);
return currentResultSet != null && this.currentResultSet.next();
}

public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
Expand Down