Skip to Content.
Sympa Menu

freetds - Re: [freetds] ODBC SQLSetDescRec fix

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] ODBC SQLSetDescRec fix
  • Date: Tue, 24 Feb 2009 22:05:48 -0500

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




Archive powered by MHonArc 2.6.24.

Top of Page