Subject | Re: Full BLOB support in auto-commit case |
---|---|
Author | rrokytskyy |
Post date | 2002-02-28T08:19:15Z |
> p1.setObject(1, binaryData);And similar with getting the BLOB data:
> p2.setObject(1, otherBinaryData);
> p1.execute();
> p2.execute();
ResultSet rs = p1.executeQuery();
while(rs.next()) {
// do something here
}
If we commit transaction after the first line and start another right
after commit, then result set traversal will be done in another
transaction which is not quite correct behavior. Therefore we cache
complete result set before we return from executeQuery() method.
Best regards,
Roman