From 77b0e2fd3f5e76f12bdd4a66f64e553bc35cb37d Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 22 Dec 2017 16:41:46 +0100 Subject: [PATCH] Fix wrong return value for fail case in set attribute handler in pdo_odbc --- ext/pdo_odbc/odbc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c index f347acba311..4dfceb5bef7 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; } }