mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 12:23:42 +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
|
- Fixed fetchmany() with no argument in cursor subclasses
|
||||||
(ticket #84).
|
(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
|
What's new in psycopg 2.4.4
|
||||||
|
|
|
@ -175,6 +175,8 @@ lobject_open(lobjectObject *self, connectionObject *conn,
|
||||||
if (new_file)
|
if (new_file)
|
||||||
self->oid = lo_import(self->conn->pgconn, new_file);
|
self->oid = lo_import(self->conn->pgconn, new_file);
|
||||||
else
|
else
|
||||||
|
/* Use lo_creat when possible to be more middleware-friendly.
|
||||||
|
* See ticket #88 */
|
||||||
if (new_oid != InvalidOid)
|
if (new_oid != InvalidOid)
|
||||||
self->oid = lo_create(self->conn->pgconn, new_oid);
|
self->oid = lo_create(self->conn->pgconn, new_oid);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user