Commit d3b46329 authored by Sam Rushing's avatar Sam Rushing

issue #64 - missing entry from datatype maps.

parent 4007ddb1
......@@ -1121,6 +1121,9 @@ def decode_bytea(x):
decode_type_map = {}
decode_type_names = {}
# NOTE: there is a table built into postgres with these values.
# Try "select typname, typelem from pg_catalog.pg_type"
for oid, cast, name in (
(16, decode_bool, 'bool'),
(17, decode_bytea, 'bytea'),
......@@ -1140,6 +1143,7 @@ for oid, cast, name in (
(701, float, 'float8'),
(1007, decode_int_array, 'int4[]'),
(1009, decode_str_array, 'text[]'),
(1700, int, 'numeric')
):
decode_type_map[oid] = cast
decode_type_names[oid] = name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment