pypyodbc icon indicating copy to clipboard operation
pypyodbc copied to clipboard

Empty value for int()

Open beer4duke opened this issue 10 years ago • 0 comments

Hi, I came over this issue with version 1.3.1 seems like it comes from an empty integer in a row, and pypyodbc does not like to do the convertion int(null). Here is the log: Traceback (most recent call last): File "./pypyodbc_tsmprop_test.py", line 11, in for row in cur: File "/root/pyodbc_install/pypyodbc.py", line 1910, in next row = self.fetchone() File "/root/pyodbc_install/pypyodbc.py", line 1861, in fetchone value_list.append(buf_cvt_func(alloc_buffer.value)) ValueError: invalid literal for int() with base 10: ''

Cheers, Beer4duke

beer4duke avatar Mar 20 '14 14:03 beer4duke