summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/sqlite_driver.c
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2020-08-31 11:08:26 +0200
committerMatteo Beccati <mbeccati@php.net>2020-08-31 11:08:26 +0200
commit42b6b8a3ae327b86d4316dcb88999d123a20a7e3 (patch)
tree76868c838a078b017e37d674df1c7f1491289703 /ext/pdo_sqlite/sqlite_driver.c
parentb396fb348bdc082770b73c90a68a06abbfb85811 (diff)
parent44ade0e87547f3f9ab8fdffb7bb0c8d530a90543 (diff)
downloadphp-git-42b6b8a3ae327b86d4316dcb88999d123a20a7e3.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #80027 Terrible performance using $query->fetch on queries with many bind parameters
Diffstat (limited to 'ext/pdo_sqlite/sqlite_driver.c')
-rw-r--r--ext/pdo_sqlite/sqlite_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c
index 83ea2d6083..0595bd09fe 100644
--- a/ext/pdo_sqlite/sqlite_driver.c
+++ b/ext/pdo_sqlite/sqlite_driver.c
@@ -806,6 +806,9 @@ static int pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{
H->einfo.errmsg = NULL;
dbh->driver_data = H;
+ /* skip all but this one param event */
+ dbh->skip_param_evt = 0x7F ^ (1 << PDO_PARAM_EVT_EXEC_PRE);
+
filename = make_filename_safe(dbh->data_source);
if (!filename) {