Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL dataype not supported? KeyError -360 #95

Open
PepperJo opened this issue Apr 18, 2019 · 0 comments
Open

SQL dataype not supported? KeyError -360 #95

PepperJo opened this issue Apr 18, 2019 · 0 comments

Comments

@PepperJo
Copy link

I'm trying to run a query on DB2 and get the following error:

...
/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/pypyodbc.py in execute(self, query_string, params, many_mode, call_mode)
   1624 
   1625         else:
-> 1626             self.execdirect(query_string)
   1627         return self
   1628 

/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/pypyodbc.py in execdirect(self, query_string)
   1652         check_success(self, ret)
   1653         self._NumOfRows()
-> 1654         self._UpdateDesc()
   1655         #self._BindCols()
   1656         return self

/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/pypyodbc.py in _UpdateDesc(self)
   1804         else:
   1805             self.description = None
-> 1806         self._CreateColBuf()
   1807 
   1808 

/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/pypyodbc.py in _CreateColBuf(self)
   1710             col_sql_data_type = self._ColTypeCodeList[col_num]
   1711 
-> 1712             target_type = SQL_data_type_dict[col_sql_data_type][2]
   1713             dynamic_length = SQL_data_type_dict[col_sql_data_type][5]
   1714             # set default size base on the column's sql data type

KeyError: -360

It seems like the datatype is not known by pypyodbc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant