We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c703e87 commit be6310bCopy full SHA for be6310b
src/sqlutilpy/sqlutil.py
@@ -356,14 +356,15 @@ def get(query,
356
if nrec == 0:
357
typeCodes = [_tmp.type_code for _tmp in desc]
358
colNames = [_tmp.name for _tmp in cur.description]
359
- if no_results:
360
- dtype = __getDType([None] * len(typeCodes),
361
- typeCodes, strLength)
362
363
# No more data
364
if no_results:
+ dtype = __getDType([None] * len(typeCodes), typeCodes,
+ strLength)
365
break
366
+ dtype = __getDType(tups[0], typeCodes, strLength)
367
+
368
# Send the new batch for conversion
369
qIn.put(tups)
370
0 commit comments