Fix the handling of double precision[] type. Fixes #1928

This commit is contained in:
Murtuza Zabuawala 2017-06-08 14:50:51 +01:00 committed by Dave Page
parent c9b717ed68
commit 3bcbc50525

View File

@ -62,10 +62,16 @@ psycopg2.extensions.register_type(
(
# To cast bytea and interval type
17, 1186,
# to cast int4range, int8range, numrange tsrange, tstzrange, daterange
# to cast int4range, int8range, numrange tsrange, tstzrange,
# daterange
3904, 3926, 3906, 3908, 3910, 3912, 3913,
# date, timestamp, timestamptz, bigint, double precision, bigint[]
1700, 1082, 1114, 1184, 20, 701, 1016
1700, 1082, 1114, 1184, 20, 701, 1016,
# double precision[]
1022
),
'TYPECAST_TO_STRING', psycopg2.STRING)
)