diff options
Diffstat (limited to 'ext/pdo_odbc')
-rwxr-xr-x | ext/pdo_odbc/odbc_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c index 2ccb653fb4..99e05e1322 100755 --- a/ext/pdo_odbc/odbc_driver.c +++ b/ext/pdo_odbc/odbc_driver.c @@ -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; |