summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-07-19 16:54:51 +0000
committerWez Furlong <wez@php.net>2005-07-19 16:54:51 +0000
commit6e7a8f10d17b569f0c559ed8e75874a166f70887 (patch)
treefe60e2a24f15d946036770937826b5116e18e3f7 /ext/pdo_odbc
parent43c1a1b73cdbceb33f2f7862baf88593d0d76d40 (diff)
downloadphp-git-6e7a8f10d17b569f0c559ed8e75874a166f70887.tar.gz
if we didn't detect an error, don't return -1 rows, as that means that we found an error
Diffstat (limited to 'ext/pdo_odbc')
-rwxr-xr-xext/pdo_odbc/odbc_driver.c3
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;