From: Scot Loach <sloach@sandvine.com>
To: Dave Page <dpage@vale-housing.co.uk>
To: pgsql-odbc@postgresql.org
Subject: Re: row count with libpq driver
Date: Fri, 16 Sep 2005 13:11:41 -0400
Message-ID: <71837C040963F748B9B94E123A289678664F8F@mailserver.sandvine.com> (raw)
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
> [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
>
>
>
> > -----Original Message-----
> > From: Scot Loach [mailto:sloach@sandvine.com]
> > Sent: 15 September 2005 04:02
> > To: Dave Page; pgsql-odbc@postgresql.org
> > Subject: RE: [ODBC] row count with libpq driver
> >
> > A patch for this is attached, please review.
>
> Thanks Scot - patch applied with a couple of minor fixes -
> specifically
>
> +#ifndef USE_LIBPQ
> + if (res->recent_processed_row_count = 0 &&
> res->ntuples > 0)
> + {
> + *pcrow = res->ntuples;
> + return SQL_SUCCESS;
> + }
> +#endif
>
> Was changed to
>
> +#ifdef USE_LIBPQ
> + if (res->recent_processed_row_count == 0 &&
> res->ntuples > 0)
> + {
> + *pcrow = res->ntuples;
> + return SQL_SUCCESS;
> + }
> +#endif
>
> Note the '#ifdef', and '== 0'
>
> Regards, Dave
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: sloach@sandvine.com, dpage@vale-housing.co.uk
Subject: Re: row count with libpq driver
In-Reply-To: <71837C040963F748B9B94E123A289678664F8F@mailserver.sandvine.com>
References: <71837C040963F748B9B94E123A289678664F8F@mailserver.sandvine.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox