New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception removing multiple elements from ordered embeddable collection #602
Comments
Might be worth getting the test working on Hibernate ORM core, just to be able to step through and see what happens there. |
In ORM's In Reactive, we're passing the offset into the The |
Yup, it looks like the logic is just wrongly-ported-over. |
I think just changing the |
Great! |
Good catch! @blafond: I've assigned this to you as it seems you have already a fix |
…element collection
Thanks, @blafond |
…element collection (hibernate#604)
running additional tests to check latest Reactive collection persister logic from the @OrderColumn #581 changes. Ran into an issue removing more than 1 element during a flush().
See: OrderedEmbeddableCollectionTest
Exception: [Exception 0] io.vertx.core.impl.NoStackTraceThrowable: The number of parameters to execute should be consistent with the expected number of parameters = [2] but the actual number is [3].
[Exception 1] io.vertx.core.VertxException: Transaction already completed
Appears that the Object[] array of param values is returning an Object[3] instead of Object[2] for the second deleted element in the new abstract persister:
hibernate-reactive/hibernate-reactive-core/src/main/java/org/hibernate/reactive/persister/collection/impl/ReactiveAbstractCollectionPersister.java
Line 237 in fe9dfba
The text was updated successfully, but these errors were encountered: