]> granicus.if.org Git - php/commitdiff
if we didn't detect an error, don't return -1 rows, as that means that we found an...
authorWez Furlong <wez@php.net>
Tue, 19 Jul 2005 16:54:51 +0000 (16:54 +0000)
committerWez Furlong <wez@php.net>
Tue, 19 Jul 2005 16:54:51 +0000 (16:54 +0000)
ext/pdo_odbc/odbc_driver.c

index 2ccb653fb4c002a1e23467c16c216650019ef38a..99e05e1322a6d53256dc0dbced19e0ac214f750b 100755 (executable)
@@ -207,6 +207,9 @@ static long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRML
                pdo_odbc_doer_error("SQLRowCount");
                goto out;
        }
+       if (row_count == -1) {
+               row_count = 0;
+       }
 out:
        SQLFreeHandle(SQL_HANDLE_STMT, stmt);
        return row_count;