freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Battmer, René" <Rene.Battmer AT otto-office.com>
- To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
- Subject: [freetds] help
- Date: Thu, 6 Nov 2003 09:44:24 +0100
-----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 :
https://lists.ibiblio.org/sympa/arc/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
**************************************
- [freetds] help, Battmer, René, 11/06/2003
Archive powered by MHonArc 2.6.24.