Uploaded image for project: 'NHibernate [Moved to GitHub]'
  1. NH-3010

Fix for batching/command behaviour in OneToManyPersister

    Details

    • Type: Patch
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.0.GA
    • Fix Version/s: 3.3.0.CR1
    • Component/s: Core
    • Labels:
      None
    • Sprint:

      Description

      This patch fixes the wrong batching/command behaviour in the OneToManyPersister. It used to close commands that were used in batches which resulted in the bug that the next batching call (with the same command text and parameter types) reused an already disposed IDbCommand.

      Most of the changes were ported from Hibernate from this changeset:
      https://github.com/hibernate/hibernate-orm/commit/08d9fe2117a1afc60ad15cb1b6124b057b6eae32#hibernate-core/src/main/java/org/hibernate/persister/collection/OneToManyPersister.java
      The only additional change was the fix in line 280 (added the !useBatch condition) because that was already in Hibernate before the mentioned changeset.

      This fixes the bugs NH-2527 Closed and NH-1477 Closed .

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cremor cremor
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Who's Looking?