Discussion:
[Firebird-odbc-devel] Driver returns -1 rows for every query?
Maury Markowitz
2012-07-19 17:09:12 UTC
Permalink
Hey guys...

I'm using the Mac 64 bit driver and trying to retrieve the results row count for basic fetch. The code I'm using works with other ODBC drivers, including MySQL and SQLite (yes, there's an ODBC driver for that...) However, in Firebird it always returns -1.

Here's the code, for what it's worth.

if (!SQL_SUCCEEDED(SQLRowCount(odbcStmt, (SQLLEN *)&rowCount))) { rowCount = 0; }

Note that the driver is returning -1, not an error.

Any ideas on why this might happen?

Loading...