summaryrefslogtreecommitdiff
path: root/psycopg/psycopg.h
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2007-10-21 03:22:55 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2007-10-21 03:22:55 +0000
commite1dd9ca8431e5a36c070fcfbdd94c8c0db0a3dc2 (patch)
tree70d0ec254a17dc990f82a3e1b2ab01ace83fc463 /psycopg/psycopg.h
parent63773ad1e0e60addb540475560e10dfaeda8796b (diff)
downloadpsycopg2-e1dd9ca8431e5a36c070fcfbdd94c8c0db0a3dc2.tar.gz
Fixed bug #192 (Decimal support not safe for use with multiple sub
interpreters) as proposed by Graham Dumpleton. If running in the main interpreter, use a cached version of the Decimal object. Else repeat the object lookup.
Diffstat (limited to 'psycopg/psycopg.h')
-rw-r--r--psycopg/psycopg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/psycopg.h b/psycopg/psycopg.h
index aeb174c..945ce92 100644
--- a/psycopg/psycopg.h
+++ b/psycopg/psycopg.h
@@ -130,7 +130,7 @@ typedef struct {
} encodingPair;
/* the Decimal type, used by the DECIMAL typecaster */
-extern PyObject *decimalType;
+extern PyObject *psyco_GetDecimalType(void);
/* some utility functions */
extern void psyco_set_error(PyObject *exc, PyObject *curs, char *msg,