[freetds] help

"Battmer, René" Rene.Battmer at otto-office.com
Thu Nov 6 09:44:24 EST 2003




-----Ursprüngliche Nachricht-----
Von: freetds-request at lists.ibiblio.org
[mailto:freetds-request at lists.ibiblio.org] 
Gesendet: Mittwoch, 5. November 2003 18:03
An: freetds at lists.ibiblio.org
Betreff: FreeTDS Digest, Vol 10, Issue 8

Send FreeTDS mailing list submissions to
	freetds at lists.ibiblio.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.ibiblio.org/mailman/listinfo/freetds
or, via email, send a message with subject or body 'help' to
	freetds-request at lists.ibiblio.org

You can reach the person managing the list at
	freetds-owner at lists.ibiblio.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeTDS digest..."


Today's Topics:

   1. PATCH: fix row counts with ODBC prepared statements. (Alex Hornby)
   2. Daily patch (ZIGLIO Frediano)
   3. Re: Daily patch (Alex Hornby)
   4. RE: Daily patch (ZIGLIO Frediano)
   5. Re: Daily patch (Alex Hornby)


----------------------------------------------------------------------

Message: 1
Date: Wed, 05 Nov 2003 14:39:00 +0000
From: Alex Hornby <alex at anvil.com>
Subject: [freetds] PATCH: fix row counts with ODBC prepared
	statements.
To: FreeTDS Development Group <freetds at lists.ibiblio.org>
Cc: freeodbc++ at orcane.net
Message-ID: <3FA90B84.3060808 at anvil.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

Here's a patch that fixes the row count behaviour of FreeTDS ODBC 
prepared statements. This fix has got the ODBC driver working with the 
libodbc++  isql++ command line tool.

Cheers,
Alex.

Index: odbc.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/odbc/odbc.c,v
retrieving revision 1.261
diff -u -r1.261 odbc.c
--- odbc.c	4 Nov 2003 19:01:46 -0000	1.261
+++ odbc.c	5 Nov 2003 14:35:25 -0000
@@ -2551,7 +2551,7 @@
 			*drec->sql_desc_octet_length_ptr = len;
 	}
 	if (stmt->ird->header.sql_desc_rows_processed_ptr) {
-		++(*(stmt->ird->header.sql_desc_rows_processed_ptr));
+            *(stmt->ird->header.sql_desc_rows_processed_ptr) = 1;
 		tdsdump_log(TDS_DBG_INFO1, "Got row (%d)\n", (int)
*(stmt->ird->header.sql_desc_rows_processed_ptr));
 	}
 	if (stmt->ird->header.sql_desc_array_status_ptr)




------------------------------

Message: 2
Date: Wed, 5 Nov 2003 16:20:33 +0100
From: "ZIGLIO Frediano" <Frediano.Ziglio at vodafone.com>
Subject: [freetds] Daily patch
To: <freetds at lists.ibiblio.org>
Message-ID:
	<8336127823F7D2118D4A0008C70D63850A706416 at opdmexo02.omnitel.it>
Content-Type: text/plain; charset="us-ascii"

This patch contain 
	- fixed SQL_DESC_ROWS_PROCESSED_PTR handling (thanks to Alex
Hornly)
	- comment style updates
	- return correct result converting to string
	- more internal checks
	- removed some TODO
	- fixed wrong error setting concise type
	- fixed problem with ODBC3 types in prepared code (thanks to
Steven Reynolds)

freddy77
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vedi.diff.gz
Type: application/x-gzip
Size: 11916 bytes
Desc: vedi.diff.gz
Url :
http://lists.ibiblio.org/pipermail/freetds/attachments/20031105/6a6f40a5/ved
i.diff-0001.bin

------------------------------

Message: 3
Date: Wed, 05 Nov 2003 15:27:36 +0000
From: Alex Hornby <alex at anvil.com>
Subject: Re: [freetds] Daily patch
To: FreeTDS Development Group <freetds at lists.ibiblio.org>
Message-ID: <3FA916E8.2070006 at anvil.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

ZIGLIO Frediano wrote:

>This patch contain 
>	- fixed SQL_DESC_ROWS_PROCESSED_PTR handling (thanks to Alex
>Hornly)
>	- comment style updates
>	- return correct result converting to string
>	- more internal checks
>	- removed some TODO
>	- fixed wrong error setting concise type
>	- fixed problem with ODBC3 types in prepared code (thanks to
>Steven Reynolds)
>
>freddy77
>  
>

Hornly? :)

Alex.


------------------------------

Message: 4
Date: Wed, 5 Nov 2003 16:50:31 +0100
From: "ZIGLIO Frediano" <Frediano.Ziglio at vodafone.com>
Subject: RE: [freetds] Daily patch
To: "FreeTDS Development Group" <freetds at lists.ibiblio.org>
Message-ID:
	<8336127823F7D2118D4A0008C70D63850A706417 at opdmexo02.omnitel.it>
Content-Type: text/plain;	charset="iso-8859-1"

Ops... Hornby... Have you tested the patch ?

freddy77

> -----Original Message-----
> From: Alex Hornby [mailto:alex at anvil.com] 
> Sent: mercoledì 5 novembre 2003 16.28
> To: FreeTDS Development Group
> Subject: Re: [freetds] Daily patch
> 
> 
> ZIGLIO Frediano wrote:
> 
> >This patch contain 
> >	- fixed SQL_DESC_ROWS_PROCESSED_PTR handling (thanks to Alex
> >Hornly)
> >	- comment style updates
> >	- return correct result converting to string
> >	- more internal checks
> >	- removed some TODO
> >	- fixed wrong error setting concise type
> >	- fixed problem with ODBC3 types in prepared code 
> (thanks to Steven 
> >Reynolds)
> >
> >freddy77
> >  
> >
> 
> Hornly? :)
> 
> Alex.
> 
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org 
> http://lists.ibiblio.org/mailman/listinfo/free> tds
> 

------------------------------

Message: 5
Date: Wed, 05 Nov 2003 17:00:13 +0000
From: Alex Hornby <alex at anvil.com>
Subject: Re: [freetds] Daily patch
To: FreeTDS Development Group <freetds at lists.ibiblio.org>
Message-ID: <3FA92C9D.3060108 at anvil.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Yes, seems to work.

ZIGLIO Frediano wrote:

>Ops... Hornby... Have you tested the patch ?
>
>freddy77
>
>  
>
>>-----Original Message-----
>>From: Alex Hornby [mailto:alex at anvil.com] 
>>Sent: mercoledì 5 novembre 2003 16.28
>>To: FreeTDS Development Group
>>Subject: Re: [freetds] Daily patch
>>
>>
>>ZIGLIO Frediano wrote:
>>
>>    
>>
>>>This patch contain 
>>>	- fixed SQL_DESC_ROWS_PROCESSED_PTR handling (thanks to Alex
>>>Hornly)
>>>	- comment style updates
>>>	- return correct result converting to string
>>>	- more internal checks
>>>	- removed some TODO
>>>	- fixed wrong error setting concise type
>>>	- fixed problem with ODBC3 types in prepared code 
>>>      
>>>
>>(thanks to Steven 
>>    
>>
>>>Reynolds)
>>>
>>>freddy77
>>> 
>>>
>>>      
>>>
>>Hornly? :)
>>
>>Alex.
>>
>>_______________________________________________
>>FreeTDS mailing list
>>FreeTDS at lists.ibiblio.org 
>>http://lists.ibiblio.org/mailman/listinfo/free> tds
>>
>>    
>>
>_______________________________________________
>FreeTDS mailing list
>FreeTDS at lists.ibiblio.org
>http://lists.ibiblio.org/mailman/listinfo/freetds
>  
>



------------------------------

_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds


End of FreeTDS Digest, Vol 10, Issue 8
**************************************


More information about the FreeTDS mailing list