mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Properly support the interval type. Fixes #1437
This commit is contained in:
committed by
Dave Page
parent
9ba6bafb2b
commit
5560d5b334
@@ -53,6 +53,11 @@ psycopg2.extensions.register_type(
|
|||||||
psycopg2.extensions.new_type((701,), 'NaN_TEXT', psycopg2.STRING)
|
psycopg2.extensions.new_type((701,), 'NaN_TEXT', psycopg2.STRING)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# This registers a type caster for datatype 'interval'.
|
||||||
|
psycopg2.extensions.register_type(
|
||||||
|
psycopg2.extensions.new_type((1186,), 'INTERVAL_TEXT', psycopg2.STRING)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def register_date_typecasters(connection):
|
def register_date_typecasters(connection):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user