zozlak / RODBCext

14 stars 10 forks source link

Fix segmentation fault issue #17 #18

Closed gedrox closed 7 years ago

gedrox commented 7 years ago

Not allowing datalen lower than 256

zozlak commented 7 years ago

The COLMAX constant is an internal RODBC constant set to 256 just because the RODC package maintainer thought that 256 ought to be enough for anybody while the size of the fetched value buffer should be set based on the information provided by the database driver (with special handling for columns reporting strange/improper lengths). This information is obtained in RODBC.c:237 and the right solution is to check what is exactly reported there in your case and why it doesn't do the job.

I will check it over the weekend.