Skip to content

Commit

Permalink
skip type fixing for select with no from
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Nov 4, 2022
1 parent c819b1c commit 2622fee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sqlalchemy_iris/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,10 @@ def fetchone(self):
row = []
self._columns: list[_Column]
for c in self._columns:
value = retval[c.name]
value = self._fix_type(value, c.type)
value = retval[c.name]
if c.tableName != 'None' and c.schema != 'None':
# print('_fix_type', [c.name, value, c.type, type(value), c.isAliased, c.isExpression, c.isKeyColumn, c.isIdentity, c.tableName is None, c.schema])
value = self._fix_type(value, c.type)
row.append(value)
return row

Expand Down

0 comments on commit 2622fee

Please sign in to comment.