private final void executeImpl(String sql) throws SQLException { checkStatement(); generatedKeys = null; try { con.log.println(sql); SQLParser parser = new SQLParser(); cmd = parser.parse(con, sql); if (maxRows != 0 && (cmd.getMaxRows() == -1 || cmd.getMaxRows() > maxRows)) cmd.setMaxRows(maxRows); cmd.execute(con, this); } catch (Exception e) { throw SmallSQLException.createFromException(e); } needGeneratedKeys = false; generatedKeyIndexes = null; generatedKeyNames = null; }