Skip to content
Snippets Groups Projects
Commit f170e61d authored by Barry Lind's avatar Barry Lind
Browse files

fixed bug reported by Michael, Dietrich (mdt@emdete.de) where a large object...

fixed bug reported by Michael, Dietrich (mdt@emdete.de) where a large object handle was being used after the end of the transaction and thus resulting in an error.
parent fe92e018
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,12 @@ public class LargeObject ...@@ -92,7 +92,12 @@ public class LargeObject
/* Release large object resources during garbage cleanup */ /* Release large object resources during garbage cleanup */
protected void finalize() throws SQLException protected void finalize() throws SQLException
{ {
close(); //This code used to call close() however that was problematic
//because the scope of the fd is a transaction, thus if commit
//or rollback was called before garbage collection ran then
//the call to close would error out with an invalid large object
//handle. So this method now does nothing and lets the server
//handle cleanup when it ends the transaction.
} }
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment