com php-src: Fix wrong return value for fail case in set attribute handler in pdo_odbc: ext/pdo_odbc/odbc_driver.c
| From: | Anatol Belski | Date: | Fri, 22 Dec 2017 15:41:46 +0000 |
| Subject: | com php-src: Fix wrong return value for fail case in set attribute handler in pdo_odbc: ext/pdo_odbc/odbc_driver.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100663@lists.php.net to get a copy of this message | ||
Commit: 77b0e2fd3f5e76f12bdd4a66f64e553bc35cb37d
Author: Anatol Belski <ab@php.net> Fri, 22 Dec 2017 16:41:46 +0100
Parents: d7cc1ce58fa639bda65d7ee6261f0e9e3f716e8d
Branches: PHP-7.1 PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=77b0e2fd3f5e76f12bdd4a66f64e553bc35cb37d
Log:
Fix wrong return value for fail case in set attribute handler in pdo_odbc
Changed paths:
M ext/pdo_odbc/odbc_driver.c
Diff:
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c
index f347acb..4dfceb5 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;
}
}