feat(pdo): add `clearParams` method

From: Date: Tue, 04 May 2021 10:03:03 +0000
Subject: feat(pdo): add `clearParams` method
Groups: php.internals 
Request: Send a blank email to internals+get-114262@lists.php.net to get a copy of this message
Hi everybody.

Currently it is not possible to clear the PDOStatement params, so it would
be useful to add a method for it.

Why? PDOStatement::execute admits the $input_parameters argument, but
all values are passed as PDO::PARAM_STR and that hit a performance
problem at MariaDB.

The fix it is to be able to call the clearParams first and bindValue
later for each param.

I don't have permissions to create RFC :(


Thread (3 messages)

« previous php.internals (#114262) next »