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