pg module, lo problem
Cliff Crawford
cjc26 at nospam.cornell.edu
Mon Jan 22 12:53:19 EST 2001
* Alexei Zalivine <zalivin at krona.obninsk.ru> menulis:
| Hi,
|
| I have a problem with large object in pg module. Anybody work with LO?
|
| After locreate function, object not opened. If I try to open, pg.error sad,
| that it can't be opened. All functions work only with opened objects, exept
| export.
| I use Mandrake 7.0 Linux, pg version 3.1 and python version 1.5.2. Please
| help me, because I alredy started project, and can't choose other DB.
In PostgreSQL you have to use large objects within a transaction. So,
you should do a pg.query("BEGIN;") before locreate, and a
pg.query("COMMIT;") after you close the large object.
--
Cliff Crawford http://www.people.cornell.edu/pages/cjc26/
print "Just another Python hacker"
More information about the Python-list
mailing list