Important additional patch for #1170 (for PgSQL >= 9.0)

This commit is contained in:
Miroslav Stampar 2015-07-24 15:15:41 +02:00
parent b6ea2fdb07
commit ff6b62adf3

View File

@ -53,6 +53,8 @@ class Filesystem(GenericFilesystem):
# http://www.postgresql.org/docs/8.3/interactive/lo-funcs.html
inject.goStacked("SELECT lo_unlink(%d)" % self.oid)
inject.goStacked("SELECT lo_create(%d)" % self.oid)
inject.goStacked("DELETE FROM pg_largeobject WHERE loid=%d" % self.oid)
for offset in xrange(0, wFileSize, LOBLKSIZE):
fcEncodedList = self.fileContentEncode(content[offset:offset + LOBLKSIZE], "base64", False)