summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc/odbc_driver.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-12-22 16:41:46 +0100
committerAnatol Belski <ab@php.net>2017-12-22 16:41:46 +0100
commit77b0e2fd3f5e76f12bdd4a66f64e553bc35cb37d (patch)
treec5d4cc171f2cf527a1222259f68c8639bb42ad59 /ext/pdo_odbc/odbc_driver.c
parentd7cc1ce58fa639bda65d7ee6261f0e9e3f716e8d (diff)
downloadphp-git-77b0e2fd3f5e76f12bdd4a66f64e553bc35cb37d.tar.gz
Fix wrong return value for fail case in set attribute handler in pdo_odbc
Diffstat (limited to 'ext/pdo_odbc/odbc_driver.c')
-rw-r--r--ext/pdo_odbc/odbc_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c
index f347acba31..4dfceb5bef 100644
--- a/ext/pdo_odbc/odbc_driver.c
+++ b/ext/pdo_odbc/odbc_driver.c
@@ -347,7 +347,7 @@ static int odbc_handle_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val)
strcpy(H->einfo.last_err_msg, "Unknown Attribute");
H->einfo.what = "setAttribute";
strcpy(H->einfo.last_state, "IM001");
- return -1;
+ return 0;
}
}