summaryrefslogtreecommitdiff
path: root/psycopg/python.h
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2013-03-19 03:06:00 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2013-03-19 12:15:49 +0000
commit394312939e8105cbfd4344a38752556875c578f9 (patch)
tree19b565c839e8be821baf13498f1131a18116b764 /psycopg/python.h
parent49c3569919db5ec0876be5e8b9865af2b54049e2 (diff)
downloadpsycopg2-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.h1
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