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 CC114D8591 for ; Fri, 16 Sep 2005 16:31:38 -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 51326-01 for ; Fri, 16 Sep 2005 19:31:35 +0000 (GMT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id C59DAD6E22 for ; Fri, 16 Sep 2005 16:31:35 -0300 (ADT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-33.mail.demon.net with esmtp (Exim 4.42) id 1EGLvr-0002jp-AY for pgsql-odbc@postgresql.org; Fri, 16 Sep 2005 19:31:35 +0000 Received: from 192.168.1.106 ([192.168.1.106]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Fri, 16 Sep 2005 19:31:35 +0000 From: "Dave Page" To: , , Subject: Re: row count with libpq driver Message-ID: <00d601c5baf5$402e4c10$6a01a8c0@valehousing.co.uk> Date: Fri, 16 Sep 2005 20:31:29 +0100 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 thread-topic: [ODBC] row count with libpq driver thread-index: AcW1NNX+zndnB/VMQXOYAtkWu5v5OgAAIvygARsWBTAACs5ygABCwzRQAAJhLuAABO63cQ== X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.589 required=5 tests=[AWL=-1.487, MSGID_DOLLARS=3.076] X-Spam-Level: * X-Archive-Number: 200509/147 X-Sequence-Number: 6045 -----Original Message----- From: "Scot Loach" Sent: 16/09/05 18:11:51 To: "Dave Page", = "pgsql-odbc@postgresql.org" Subject: RE: [ODBC] row count with libpq driver > I'm not sure how I'd investigate such an issue. No, nor I. Perhaps something else needs to be done before returning from = pgapi_rowcount? > And I'm also swamped :) :-(. I believe Anoop is as well, so if anyone else wants to try a mini = project... > I don't even know what ADO is so I doubt if I'd be much help. Microsoft's ActiveX Data Objects - their most popular and recommended = non-dotNET data access libraries. If they break, we will certainly get = lots of bug reports :-(. My app is pretty basic as well, so it's = unlikely to be an edge case. Oh, and fwiw, it's worked with psqlODBC = back to v6.something, so it's not simply that it gets confused now it = sees a rowcount from a select 'cos it always used to :-) /D -----Unmodified Original Message----- 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