Description
In JCR-3318 logic was added to allow resetting of binary streams used as arguments for sql statements. Now when an exception is thrown during sql statement execution an attempt is made to reset these streams. When this does not succeed a RuntimeException is thrown and the original SQLException gets lost. Before throwing the RuntimeException the SQLException should be logged so that it does not get lost.