Re: ODBC SQLSetDescRec fix

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.