Hi,
The only time when I saw that class failing was for MariaDB because the
Connection was final and we could not proxy it.
That's when I switched to Mockito 2.
However, the goal of that class is to allow it to run as a regular PS, but
to proxy it so that any PS call invocation is recorded.
Vlad
On Sun, Sep 10, 2017 at 5:28 PM, Mark Rotteveel <mark(a)lawinegevaar.nl>
wrote:
I have run into a peculiar problem with
PreparedStatementSpyConnectionProvider, the tests that use it fail for
Firebird (and Jaybird 3) for reasons I don't understand.
As far as I can tell from debugging, in tests that use this class, the
statement misbehaves and instead of executing parts of its
implementation, the bytecode modifications applied to the statement by
PreparedStatementSpyConnectionProvider suddenly return a value from a
previous execution, which then causes an exception or other invalid
behavior because it is an incorrect value for the current execution path.
Has anyone seen this before, and what can I do to address this?
Mark
--
Mark Rotteveel
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev