Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf9e01d

Browse files
committed
Add large object finalization cleanup to the proper java file.
1 parent4dca29d commitbf9e01d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/interfaces/jdbc/org/postgresql/largeobject/LargeObject.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ protected LargeObject(Fastpath fp,int oid,int mode) throws SQLException
8989
this.fd =fp.getInteger("lo_open",args);
9090
}
9191

92+
/* Release large object resources during garbage cleanup */
93+
protectedvoidfinalize()throwsSQLException
94+
{
95+
close();
96+
}
97+
9298
/**
9399
* @return the OID of this LargeObject
94100
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp