ResultSet rs = stmt.executeQuery(query);
ResultSet result = pstmt.executeQuery();
    protected ResultSet executeQuery(Statement stmt, String query) throws SQLException {        if (query == null) throw new IllegalArgumentException("executeQuery: null query");        try {            long startTime = 0;            if (log != null)                startTime = System.currentTimeMillis();            ResultSet rs = stmt.executeQuery(query);            if (log != null) {                long endTime = System.currentTimeMillis();                log.println((endTime - startTime) + " " + query);            }            return rs;        } catch (SQLException sqle) {            System.err.println("SQLException query: " + query);            if (log != null) {                log.println("SQLException query: " + query);                log.flush();            }            throw sqle;        }    }