mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
* psycopg/lobject.h (lobjectObject): remove "mode" struct member,
since it was unused.
This commit is contained in:
parent
9d20f5c09c
commit
ee235478bd
|
@ -1,5 +1,8 @@
|
||||||
2008-05-06 James Henstridge <james@jamesh.id.au>
|
2008-05-06 James Henstridge <james@jamesh.id.au>
|
||||||
|
|
||||||
|
* psycopg/lobject.h (lobjectObject): remove "mode" struct member,
|
||||||
|
since it was unused.
|
||||||
|
|
||||||
* psycopg/lobject_*.c: replace uses of the closed struct member,
|
* psycopg/lobject_*.c: replace uses of the closed struct member,
|
||||||
and change the Python level attribute to a getset.
|
and change the Python level attribute to a getset.
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,6 @@ typedef struct {
|
||||||
long int mark; /* copied from conn->mark */
|
long int mark; /* copied from conn->mark */
|
||||||
|
|
||||||
const char *smode; /* string mode if lobject was opened */
|
const char *smode; /* string mode if lobject was opened */
|
||||||
int mode; /* numeric mode, tells if lobject was opened */
|
|
||||||
|
|
||||||
|
|
||||||
int fd; /* the file descriptor for file-like ops */
|
int fd; /* the file descriptor for file-like ops */
|
||||||
Oid oid; /* the oid for this lobject */
|
Oid oid; /* the oid for this lobject */
|
||||||
|
|
|
@ -97,7 +97,6 @@ lobject_open(lobjectObject *self, connectionObject *conn,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* set the mode for future reference */
|
/* set the mode for future reference */
|
||||||
self->mode = mode;
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case -1:
|
case -1:
|
||||||
self->smode = "n"; break;
|
self->smode = "n"; break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user