PiRSquared17 / pyodbc

Automatically exported from code.google.com/p/pyodbc
Other
0 stars 0 forks source link

Segmentation Fault when adding more than 6 output converter functions to a connection #345

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cnx = connect(....)
2. cnx.add_output_converter(n, lambda x:x) # for n in range(101,113)
3. csr = cnx.cursor()
4. csr.execute('select * from any_table')
5. csr.fetchall()

What is the expected output? What do you see instead?
The program should complete without any errors. Instead, program terminates 
abnormally with a segmentation fault

What version of the product are you using? On what operating system?
3.0.6 on Linux (Chakra)

Please provide any additional information below.
This bug is related to Issue #168. There are 13 standard INTERVAL types defined 
by ODBC. Since pyodbc doesn't support INTERVAL data types yet; I am having to 
register 13 output converter functions. There seems to be an internal limit of 
6, after which program segfaults.

Original issue reported on code.google.com by pad...@gmail.com on 1 Nov 2013 at 9:18