odbc wrapper
- Posted by George Walters <gwalters at sc.rr.com> May 10, 2005
- 443 views
Matt, I think there is a bug in function getData. I was losing a character in a data field(a very long data field) about every 256 chars. The data field was an invoice text field that was a page or 2 of characters. I changed this line below (removed the "-1" and the character loss went away. Could you check what I did(a shot in the dark) and make sure it was a correct change. I am not at all sure of what I did.
-- have to call repeatedly, since data was too big for the -- buffer while len > mylen do data[row][i] &= peek( { ptr1, mylen } )--<<<<<<<<<<<<<<<<<<< removed the -1 which was mylen-1 ok = c_func( SQLGetData, { hs, i, SQL_C_DEFAULT, ptr1, mylen, ptr2 } ) len = peek4s( ptr2 ) end while