Re: row count with libpq driver

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Scot Loach" <sloach(at)sandvine(dot)com>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: row count with libpq driver
Date: 2005-09-15 08:12:01
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2C26@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

> -----Original Message-----
> From: Scot Loach [mailto:sloach(at)sandvine(dot)com]
> Sent: 15 September 2005 04:02
> To: Dave Page; pgsql-odbc(at)postgresql(dot)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

Browse pgsql-odbc by date

  From Date Subject
Next Message Andre THEVENIN 2005-09-15 09:53:56 ODBC : problem with bookmark /precision
Previous Message Dave Page 2005-09-15 07:46:02 Re: PATCH: SQLTables and case sensitivity