summaryrefslogtreecommitdiff
path: root/lib/extras.py
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2010-02-10 18:16:00 +0100
committerFederico Di Gregorio <fog@initd.org>2010-02-10 18:16:00 +0100
commite5bed4993bb69ef2ad7edcef1e2736f5c2e0c1b6 (patch)
tree6945c95e26b50f55994698b2e647721cc978e2c5 /lib/extras.py
parentbcc836c6610638f53a73c393b63bc49476786ec1 (diff)
downloadpsycopg2-e5bed4993bb69ef2ad7edcef1e2736f5c2e0c1b6.tar.gz
Fixed register_tstz_w_secs() error
Diffstat (limited to 'lib/extras.py')
-rw-r--r--lib/extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extras.py b/lib/extras.py
index d0b25f2..af526c9 100644
--- a/lib/extras.py
+++ b/lib/extras.py
@@ -458,7 +458,7 @@ def register_tstz_w_secs(oids=None, conn_or_curs=None):
oids = (1184,) # hardcoded from PostgreSQL headers
_ext.TSTZ_W_SECS = _ext.new_type(oids, 'TSTZ_W_SECS', _convert_tstz_w_secs)
- _ext.register_type(TSTZ_W_SECS, conn_or_curs)
+ _ext.register_type(_ext.TSTZ_W_SECS, conn_or_curs)
return _ext.TSTZ_W_SECS