diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2013-03-19 03:06:00 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2013-03-19 12:15:49 +0000 |
| commit | 394312939e8105cbfd4344a38752556875c578f9 (patch) | |
| tree | 19b565c839e8be821baf13498f1131a18116b764 /psycopg/python.h | |
| parent | 49c3569919db5ec0876be5e8b9865af2b54049e2 (diff) | |
| download | psycopg2-394312939e8105cbfd4344a38752556875c578f9.tar.gz | |
Added a C structure to psycopg.Error
This will allow to store a PGresult in it.
Diffstat (limited to 'psycopg/python.h')
| -rw-r--r-- | psycopg/python.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/psycopg/python.h b/psycopg/python.h index f6d6be0..9fce6e1 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -114,6 +114,7 @@ typedef unsigned long Py_uhash_t; #define PyInt_AsLong PyLong_AsLong #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSsize_t PyLong_FromSsize_t +#define PyExc_StandardError PyExc_Exception #define PyString_FromFormat PyUnicode_FromFormat #define Py_TPFLAGS_HAVE_ITER 0L #define Py_TPFLAGS_HAVE_RICHCOMPARE 0L |
