Changeset 8014


Ignore:
Timestamp:
Aug 13, 2021, 10:36:38 AM (4 months ago)
Author:
Nicklas Nordborg
Message:

Fixes #2267: Update fails with / by zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.19-stable/src/core/net/sf/basedb/core/Update.java

    r7947 r8014  
    23602360      org.hibernate.query.Query<Long> countQuery = HibernateUtil.createQuery(session, countSql, Long.class);
    23612361      long numItems = HibernateUtil.loadData(countQuery);
    2362       int delta = (int)numItems / 50;
     2362      int delta = Math.max(50, (int)numItems / 50);
    23632363
    23642364      // Load all ChangeHistory entries
Note: See TracChangeset for help on using the changeset viewer.