Skip to Content.
Sympa Menu

freetds - Re: [freetds] TDS Version problem

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] TDS Version problem
  • Date: Thu, 28 Feb 2008 17:16:49 -0500

Frediano Ziglio wrote:
> I think that replacing
>
> /* is not the same of using APD sql_desc_bind_type */
> stmt->sql_rowset_size = SQL_BIND_BY_COLUMN;
>
> with
>
> stmt->sql_rowset_size = 1;
>
> should fix the problem (I know, comment remove is not necessary... but
> it's wrong :) )
>
> Here is too late to test this issue... good night!

Here's a diff based on Frediano's description.

Index: src/odbc/odbc.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/odbc/odbc.c,v
retrieving revision 1.472
diff -u -r1.472 odbc.c
--- src/odbc/odbc.c 15 Feb 2008 11:06:39 -0000 1.472
+++ src/odbc/odbc.c 28 Feb 2008 22:14:11 -0000
@@ -1472,8 +1472,7 @@
stmt->attr.simulate_cursor = SQL_SC_NON_UNIQUE;
stmt->attr.use_bookmarks = SQL_UB_OFF;

- /* is not the same of using APD sql_desc_bind_type */
- stmt->sql_rowset_size = SQL_BIND_BY_COLUMN;
+ stmt->sql_rowset_size = 1;

stmt->row_count = TDS_NO_COUNT;
stmt->row_status = NOT_IN_ROW;




Archive powered by MHonArc 2.6.24.

Top of Page