X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EF9BED9090 for ; Fri, 16 Sep 2005 14:12:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19135-02 for ; Fri, 16 Sep 2005 17:12:01 +0000 (GMT) Received: from mailserver.sandvine.com (sandvine.com [199.243.201.138]) by svr1.postgresql.org (Postfix) with ESMTP id 887AAD6E22 for ; Fri, 16 Sep 2005 14:11:46 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: row count with libpq driver Date: Fri, 16 Sep 2005 13:11:41 -0400 Message-ID: <71837C040963F748B9B94E123A289678664F8F@mailserver.sandvine.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] row count with libpq driver Thread-Index: AcW1NNX+zndnB/VMQXOYAtkWu5v5OgAAIvygARsWBTAACs5ygABCwzRQAAJhLuA= From: "Scot Loach" To: "Dave Page" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/146 X-Sequence-Number: 6044 I'm not sure how I'd investigate such an issue. And I'm also swamped :) I don't even know what ADO is so I doubt if I'd be much help. scot. -----Original Message----- From: Dave Page [mailto:dpage@vale-housing.co.uk] Sent: Friday, September 16, 2005 12:06 PM To: Scot Loach; pgsql-odbc@postgresql.org Subject: RE: [ODBC] row count with libpq driver Hi Scot, Unfortunately I've been seeing some unexplained errors with some Microsoft ADO based apps since applying this patch, so I've backed it out for now. Unfortunately, ADO doesn't give any useful error messages. I'm not entirely sure what's wrong - can you look at it please? I'm still swamped at the moment :-( Regards, Dave > -----Original Message----- > From: pgsql-odbc-owner@postgresql.org=20 > [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dave Page > Sent: 15 September 2005 09:12 > To: Scot Loach; pgsql-odbc@postgresql.org > Subject: Re: [ODBC] row count with libpq driver >=20 > =20 >=20 > > -----Original Message----- > > From: Scot Loach [mailto:sloach@sandvine.com]=20 > > Sent: 15 September 2005 04:02 > > To: Dave Page; pgsql-odbc@postgresql.org > > Subject: RE: [ODBC] row count with libpq driver > >=20 > > A patch for this is attached, please review. >=20 > Thanks Scot - patch applied with a couple of minor fixes -=20 > specifically >=20 > +#ifndef USE_LIBPQ > + if (res->recent_processed_row_count =3D 0 && > res->ntuples > 0) > + { > + *pcrow =3D res->ntuples; > + return SQL_SUCCESS; > + } > +#endif >=20 > Was changed to >=20 > +#ifdef USE_LIBPQ > + if (res->recent_processed_row_count =3D=3D 0 = && > res->ntuples > 0) > + { > + *pcrow =3D res->ntuples; > + return SQL_SUCCESS; > + } > +#endif >=20 > Note the '#ifdef', and '=3D=3D 0' >=20 > Regards, Dave >=20 > ---------------------------(end of=20 > broadcast)--------------------------- > TIP 6: explain analyze is your friend >=20