mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-25 18:33:44 +03:00
Docs/cleanup for the lo_creat patch
This commit is contained in:
parent
e1700fe28b
commit
6f21111a92
2
NEWS
2
NEWS
|
@ -3,6 +3,8 @@ What's new in psycopg 2.4.5
|
|||
|
||||
- Fixed fetchmany() with no argument in cursor subclasses
|
||||
(ticket #84).
|
||||
- Use lo_creat() instead of lo_create() when possible for better
|
||||
interaction with pgpool-II (ticket #88).
|
||||
|
||||
|
||||
What's new in psycopg 2.4.4
|
||||
|
|
|
@ -175,10 +175,12 @@ lobject_open(lobjectObject *self, connectionObject *conn,
|
|||
if (new_file)
|
||||
self->oid = lo_import(self->conn->pgconn, new_file);
|
||||
else
|
||||
if (new_oid != InvalidOid)
|
||||
/* Use lo_creat when possible to be more middleware-friendly.
|
||||
* See ticket #88 */
|
||||
if (new_oid != InvalidOid)
|
||||
self->oid = lo_create(self->conn->pgconn, new_oid);
|
||||
else
|
||||
self->oid = lo_creat(self->conn->pgconn, INV_READ | INV_WRITE);
|
||||
else
|
||||
self->oid = lo_creat(self->conn->pgconn, INV_READ | INV_WRITE);
|
||||
|
||||
Dprintf("lobject_open: large object created with oid = %d",
|
||||
self->oid);
|
||||
|
|
Loading…
Reference in New Issue
Block a user