Subject Re: [Firebird-Java] Problem with ResultSet.HOLD_CURSORS_OVER_COMMIT and jaybird 2.1.1
Author Aljoscha Rittner
Ok, I found *my* bug ;-)

> PreparedStatement prp =
> conAC.prepareStatement (dbo.getStatement (),
> ResultSet.FETCH_FORWARD,
> ResultSet.TYPE_SCROLL_INSENSITIVE,
> ResultSet.HOLD_CURSORS_OVER_COMMIT);

This is absolute wrong.

The right way:

PreparedStatement prp = con.prepareStatement (dbo.getStatement (),
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY,
ResultSet.HOLD_CURSORS_OVER_COMMIT);

Thank you for your audience.

best regards,
josh.