mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Fixed register_tstz_w_secs() error
This commit is contained in:
parent
bcc836c661
commit
e5bed4993b
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user