diff options
author | Wez Furlong <wez@php.net> | 2005-07-19 16:54:51 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-07-19 16:54:51 +0000 |
commit | 6e7a8f10d17b569f0c559ed8e75874a166f70887 (patch) | |
tree | fe60e2a24f15d946036770937826b5116e18e3f7 /ext/pdo_odbc | |
parent | 43c1a1b73cdbceb33f2f7862baf88593d0d76d40 (diff) | |
download | php-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-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; |