Changeset 4591


Ignore:
Timestamp:
Oct 20, 2008, 9:08:11 AM (13 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1147: Incorrect result from isUsed() method prevents deletion of some items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8-stable/src/core/net/sf/basedb/core/BasicItem.java

    r4479 r4591  
    223223  {
    224224    org.hibernate.Session session = getDbControl().getHibernateSession();
    225     org.hibernate.Query query = HibernateUtil.getPredefinedQuery(session, "COUNT_ANYTOANY_TO");
     225    org.hibernate.Query query = HibernateUtil.getPredefinedQuery(session,
     226      "COUNT_USED_ANYTOANY_TO");
    226227    /*
    227228      SELECT count(*)
Note: See TracChangeset for help on using the changeset viewer.