Announcement Announcement Module
Collapse
No announcement yet.
HAHA,I FIND A BUG ON 1.1.3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HAHA,I FIND A BUG ON 1.1.3

    HibernateTemplate:

    Line 790:

    public Iterator iterate(String queryString, Object[] values) throws DataAccessException {

    return iterate(queryString, values, (Type[]) null);

    }



    public Iterator iterate(final String queryString, final Object[] values, final Type[] types)

    throws DataAccessException {

    if (values.length != types.length) {

    throw new IllegalArgumentException("Length of values array must match length of types array");

    }

    return (Iterator) execute(new HibernateCallback() {

    public Object doInHibernate(Session session) throws HibernateException {

    Query queryObject = createQuery(session, queryString);

    for (int i = 0; i < values.length; i++) {

    if (types != null) {

    queryObject.setParameter(i, values[i], types[i]);

    }

    else {

    queryObject.setParameter(i, values[i]);

    }

    }

    return queryObject.iterate();

    }

    });

    }


    If I Call iterate function ,will always error.beacuse types=null;

  • #2
    Added to JIRA.

    Rob

    Comment

    Working...
    X