if (result != null && (start > 0 && limit > 0)) {
if (result != null && (start > 0 || limit < Integer.MAX_VALUE)) {
    public String getPreparedSelectStatement(Query query, DescriptorRepository dr, int start,            int limit) {        // TODO - if SQL statements are to be cached this is where to do it        // implemetation is awaiting a proper equals() method for org.flymine.objectstore.ojb.Query        FlymineSqlSelectStatement sql = new FlymineSqlSelectStatement(query, dr);        String result = sql.getStatement();        if (result != null && (start > 0 && limit > 0)) {            result += (" LIMIT " + limit + " OFFSET " + start);        }        return result;    }