explicit postgres type numbers in anti-conversion table.
This commit is contained in:
parent
8f2b42309d
commit
1c0a4e252a
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ class Database(Compat):
|
|||
)
|
||||
psycopg2.extensions.register_type(
|
||||
psycopg2.extensions.new_type(
|
||||
psycopg2.extensions.DATE.values + psycopg2.extensions.TIME.values,
|
||||
(1082, 1083, 1266),
|
||||
"DATE2INT",
|
||||
lambda value, curs: time.mktime(value.timetuple())
|
||||
if value is not None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue