Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
shrapnel
Commits
d3b46329
Commit
d3b46329
authored
Sep 10, 2014
by
Sam Rushing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue #64 - missing entry from datatype maps.
parent
4007ddb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
coro/db/postgres/postgres.py
coro/db/postgres/postgres.py
+4
-0
No files found.
coro/db/postgres/postgres.py
View file @
d3b46329
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment