[freetds] ODBC SQLSetDescRec fix
James K. Lowden
jklowden at freetds.org
Tue Feb 24 22:05:48 EST 2009
Amir Shamsuddin wrote:
>
> Looking at the MSDN ODBC reference
> http://msdn.microsoft.com/en-us/library/ms714675(VS.85).aspx it looks
> to me that nRecordNumber should start indexing at 1, with an index of 0
> being reserved for the 'bookmark record', though I'm not sure what the
> bookmark record is....
>
> so I modified freeTDS to adjust the offset before accessing the
> desc->records array (very simple patch attached) and this fixed my
> problem.
_______________
< Thanks, Amir! >
---------------
\______ .-""-.
\_______ (___/\ \
, \ (|^ ^ ) )
/( _)_\=_/ (
,..__/ `\ ____(_/_ ` \ )
`\ _/ _/---._/(_)_ `\ (
jgs '--\ `-.__..-' /. (_), | )
`._ ___\_____.'_| |__/
`~----"` `-.........'
--jkl
More information about the FreeTDS
mailing list