Re: row count with libpq driver - Mailing list pgsql-odbc

From Dave Page
Subject Re: row count with libpq driver
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2C26@ratbert.vale-housing.co.uk
Whole thread Raw
In response to row count with libpq driver  ("Scot Loach" <sloach@sandvine.com>)
List pgsql-odbc

> -----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

pgsql-odbc by date:

Previous
From: "Dave Page"
Date:
Subject: Re: PATCH: SQLTables and case sensitivity
Next
From: Andre THEVENIN
Date:
Subject: ODBC : problem with bookmark /precision