else if (rawResult instanceof Collection)
return ((Collection) rawResult).size();
return 0;
}
protected <RET> RET executeCommand(OCommandRequest query) throws SQLException {
<BUG>try {
return database.command(query).execute();</BUG>
} catch (OQueryParsingException e) {
throw new SQLSyntaxErrorException("Error while parsing command", e);
} catch (OException e) {

else if (rawResult instanceof Collection)
return ((Collection) rawResult).size();
return 0;
}
protected <RET> RET executeCommand(OCommandRequest query) throws SQLException {
try {
database.activateOnCurrentThread();
return database.command(query).execute();
} catch (OQueryParsingException e) {
throw new SQLSyntaxErrorException("Error while parsing command", e);
} catch (OException e) {
