Fixed register_tstz_w_secs() error

This commit is contained in:
Federico Di Gregorio 2010-02-10 18:16:00 +01:00
parent bcc836c661
commit e5bed4993b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-02-10 Federico Di Gregorio <fog@initd.org>
* lib/extras.py: fixed register_tstz_w_secs() error as reported by
Karsten Hilbert.
2009-11-25 Federico Di Gregorio <fog@initd.org> 2009-11-25 Federico Di Gregorio <fog@initd.org>
* psycopg/microprotocols.c: "can't adapt" message now includes full * psycopg/microprotocols.c: "can't adapt" message now includes full

View File

@ -458,7 +458,7 @@ def register_tstz_w_secs(oids=None, conn_or_curs=None):
oids = (1184,) # hardcoded from PostgreSQL headers oids = (1184,) # hardcoded from PostgreSQL headers
_ext.TSTZ_W_SECS = _ext.new_type(oids, 'TSTZ_W_SECS', _convert_tstz_w_secs) _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 return _ext.TSTZ_W_SECS