Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Jul 20, 2022
1 parent d307e2f commit bc04fe4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py/sqlutilpy/sqlutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ def __getDType(row, typeCodes, strLength):
21: 'i2',
23: 'i4',
1007: 'i4',
25: '|U%d',
700: 'f4',
701: 'f8',
1000: bool,
Expand All @@ -222,19 +221,20 @@ def __getDType(row, typeCodes, strLength):
1016: 'i8',
1021: 'f4',
1022: 'f8',
1042: '|U%d', # character()
1043: '|U%d', # varchar
1700: 'f8', # numeric
1114: '<M8[us]', # timestamp
1082: '<M8[us]' # date
1082: '<M8[us]', # date
25: '|U%d',
1042: '|U%d', # character()
1043: '|U%d' # varchar
}
strTypes = [25, 1042, 1043]

pgTypes = []

for i, (curv, curt) in enumerate(zip(row, typeCodes)):
if curt not in pgTypeHash:
raise SqlUtilException('Unknown PG type %d' % curt)
raise SqlUtilException('Unknown PG type %d' % curt)
pgType = pgTypeHash[curt]
if curt in strTypes:
if curv is not None:
Expand Down

0 comments on commit bc04fe4

Please sign in to comment.