Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff6b62a

Browse files
committed
Important additional patch for #1170 (for PgSQL >= 9.0)
1 parent b6ea2fd commit ff6b62a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/dbms/postgresql/filesystem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def stackedWriteFile(self, wFile, dFile, fileType, forceCheck=False):
5353
# http://www.postgresql.org/docs/8.3/interactive/lo-funcs.html
5454

5555
inject.goStacked("SELECT lo_unlink(%d)" % self.oid)
56+
inject.goStacked("SELECT lo_create(%d)" % self.oid)
57+
inject.goStacked("DELETE FROM pg_largeobject WHERE loid=%d" % self.oid)
5658

5759
for offset in xrange(0, wFileSize, LOBLKSIZE):
5860
fcEncodedList = self.fileContentEncode(content[offset:offset + LOBLKSIZE], "base64", False)

0 commit comments

Comments
 (0)