Skip to Content.
Sympa Menu

freetds - [freetds] OK to call SQLGetData more than once?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: TDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] OK to call SQLGetData more than once?
  • Date: Wed, 6 Feb 2008 00:30:56 -0500

odbc.c:3337:odbc_process_tokens: returning result_type 4040
odbc.c:4565:SQLGetData(0x806b000, 1, -16, 0x8066340, 11, 0xbfbff148)
convert_tds2sql.c:62:convert_tds2sql: src is 56 dest = -16
odbc.c:4097:SQLNumResultCols(0x806b000, 0xbfbff302)
odbc.c:4097:SQLNumResultCols(0x806b000, 0xbfbff312)
odbc.c:4565:SQLGetData(0x806b000, 1, -16, 0x8066340, 11, 0xbfbff168)
error.c:630:SQLGetDiagField(3, 0x806b000, 0, 2, 0xbfbff128, 4, 0xbfbfecfe)
odbc.c:4565:SQLGetData(0x806b000, 1, -16, 0x8066340, 11, 0xbfbff148)
error.c:630:SQLGetDiagField(3, 0x806b000, 0, 2, 0xbfbff108, 4, 0xbfbfecde)
odbc.c:4565:SQLGetData(0x806b000, 1, -16, 0x8066340, 11, 0xbfbff128)
error.c:630:SQLGetDiagField(3, 0x806b000, 0, 2, 0xbfbff0e8, 4, 0xbfbfecbe)
odbc.c:4565:SQLGetData(0x806b000, 1, -16, 0x8066340, 11, 0xbfbff108)
error.c:630:SQLGetDiagField(3, 0x806b000, 0, 2, 0xbfbff0c8, 4, 0xbfbfec9e)

Successive calls to SQLGetData for the same column return SQL_NO_DATA.
They should succeed. :-(

http://msdn2.microsoft.com/en-us/library/ms715441(VS.85).aspx

"... within a row of data, the value of the ColumnNumber argument in
each
call to SQLGetData must be greater than or equal to the value of
ColumnNumber in the previous call".

Humbly submitted.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page