summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-12-09 16:03:52 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-12-09 16:16:17 +0100
commita073b0218cd9a894299600f82cfc3bfe8297a31d (patch)
treee2c43f0f36e91d117781111143841b04799e5cb6
parentb9ea8d6b96f0404058a83e7388c3ba276fd55bd5 (diff)
downloadphp-git-a073b0218cd9a894299600f82cfc3bfe8297a31d.tar.gz
Add ifdef for mysqlnd only function
-rw-r--r--ext/pdo_mysql/mysql_statement.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c
index 85aabc40d0..68bfcd4eb4 100644
--- a/ext/pdo_mysql/mysql_statement.c
+++ b/ext/pdo_mysql/mysql_statement.c
@@ -154,6 +154,7 @@ static int pdo_mysql_fill_stmt_from_result(pdo_stmt_t *stmt) /* {{{ */
}
/* }}} */
+#ifdef PDO_USE_MYSQLND
static bool pdo_mysql_stmt_after_execute_prepared(pdo_stmt_t *stmt) {
pdo_mysql_stmt *S = stmt->driver_data;
pdo_mysql_db_handle *H = S->H;
@@ -179,6 +180,7 @@ static bool pdo_mysql_stmt_after_execute_prepared(pdo_stmt_t *stmt) {
pdo_mysql_stmt_set_row_count(stmt);
return true;
}
+#endif
#ifndef PDO_USE_MYSQLND
static int pdo_mysql_stmt_execute_prepared_libmysql(pdo_stmt_t *stmt) /* {{{ */