diff options
| author | Federico Di Gregorio <fog@initd.org> | 2010-04-05 16:52:25 +0200 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2010-04-05 16:52:25 +0200 |
| commit | c1a24f4ca279f8057f9f7a3fe06e9c8a5b1dc818 (patch) | |
| tree | 013197ad587c453eb5cf1dbf519e1958f099e9c6 /psycopg/cursor.h | |
| parent | e15bc9da05721a22e986feb0363da8c5e4eb2641 (diff) | |
| download | psycopg2-c1a24f4ca279f8057f9f7a3fe06e9c8a5b1dc818.tar.gz | |
NOTIFYs fix and poll status changes
POLL_OK has been changed from 3 to 0 to let the user specify a short loop
just as "if not curs.poll()" instead of having to check for write and read
separately. For an example of this, see examples/notify.py.
Diffstat (limited to 'psycopg/cursor.h')
| -rw-r--r-- | psycopg/cursor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psycopg/cursor.h b/psycopg/cursor.h index bbe80ea..a0a3a82 100644 --- a/psycopg/cursor.h +++ b/psycopg/cursor.h @@ -62,10 +62,10 @@ typedef struct { PyObject *pgstatus; /* last message from the server after an execute */ Oid lastoid; /* last oid from an insert or InvalidOid */ - PyObject *casts; /* an array (tuple) of typecast functions */ - PyObject *caster; /* the current typecaster object */ + PyObject *casts; /* an array (tuple) of typecast functions */ + PyObject *caster; /* the current typecaster object */ - PyObject *copyfile; /* file-like used during COPY TO/FROM ops */ + PyObject *copyfile; /* file-like used during COPY TO/FROM ops */ Py_ssize_t copysize; /* size of the copy buffer during COPY TO/FROM ops */ #define DEFAULT_COPYSIZE 16384 #define DEFAULT_COPYBUFF 8132 |
