]> granicus.if.org Git - php/commit
Fix #80027 Terrible performance using $query->fetch on queries with many bind parameters
authorMatteo Beccati <mbeccati@php.net>
Mon, 31 Aug 2020 08:45:36 +0000 (10:45 +0200)
committerMatteo Beccati <mbeccati@php.net>
Mon, 31 Aug 2020 09:03:03 +0000 (11:03 +0200)
commit44ade0e87547f3f9ab8fdffb7bb0c8d530a90543
treee9b76e3f28c0103e1c0d4137a1b31c29bf1220ae
parentad750c3bb6e7b48384c6265eb9d3bcf5b4000652
Fix #80027 Terrible performance using $query->fetch on queries with many bind parameters

Added new flags that allow skipping param_evt(s) that are not used by drivers,
in a backwards and forward compatible manner. Updated the pgsql, mysql, sqlite
and oci drivers to properly use the new flags. I've left out pdo_dblib, which
doesn't have a param_hook, and pdo_firebird, which seems to be using
PARAM_EVT_NORMALIZE in a wrong context (param type vs event type).
NEWS
ext/pdo/pdo_stmt.c
ext/pdo/php_pdo_driver.h
ext/pdo_mysql/mysql_driver.c
ext/pdo_oci/oci_driver.c
ext/pdo_pgsql/pgsql_driver.c
ext/pdo_pgsql/pgsql_statement.c
ext/pdo_sqlite/sqlite_driver.c