summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-07-18 21:45:41 +0200
committerNikita Popov <nikita.ppv@gmail.com>2017-07-18 21:45:41 +0200
commitf9d6cff67e1de61a1a4ef22492ada0a6a2e54f10 (patch)
treeefe3abfa902e46c9489ce452c15850bf4b5090f8 /ext/pdo_mysql
parent9cd82df0bbb1f9a1407ffb749292576be1b91c07 (diff)
parent4e9158da764cbfe580cc6defc99da2c12ff54b7e (diff)
downloadphp-git-f9d6cff67e1de61a1a4ef22492ada0a6a2e54f10.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
Diffstat (limited to 'ext/pdo_mysql')
-rw-r--r--ext/pdo_mysql/mysql_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c
index 08b546ce10..de6b1b6d32 100644
--- a/ext/pdo_mysql/mysql_driver.c
+++ b/ext/pdo_mysql/mysql_driver.c
@@ -350,7 +350,7 @@ static int mysql_handle_commit(pdo_dbh_t *dbh)
PDO_DBG_ENTER("mysql_handle_commit");
PDO_DBG_INF_FMT("dbh=%p", dbh);
#if MYSQL_VERSION_ID >= 40100 || defined(PDO_USE_MYSQLND)
- PDO_DBG_RETURN(0 <= mysql_commit(((pdo_mysql_db_handle *)dbh->driver_data)->server));
+ PDO_DBG_RETURN(0 == mysql_commit(((pdo_mysql_db_handle *)dbh->driver_data)->server));
#else
PDO_DBG_RETURN(0 <= mysql_handle_doer(dbh, ZEND_STRL("COMMIT")));
#endif