mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Added new PDO::PGSQL_ATTR_DISABLE_PREPARES that uses PQexecParams
Faster than prepared statements when queries are run once. Slightly slower than PDO::ATTR_EMULATE_PREPARES but without the potential security implications of embedding parameters in the query itself.
This commit is contained in:
parent
d72621ab9e
commit
e378348a31
5 changed files with 81 additions and 3 deletions
|
@ -47,6 +47,7 @@ typedef struct {
|
|||
to keep track of two different attributes having the same effect. */
|
||||
int emulate_prepares;
|
||||
int disable_native_prepares; /* deprecated since 5.6 */
|
||||
int disable_prepares;
|
||||
unsigned int stmt_counter;
|
||||
} pdo_pgsql_db_handle;
|
||||
|
||||
|
@ -90,6 +91,7 @@ extern struct pdo_stmt_methods pgsql_stmt_methods;
|
|||
|
||||
enum {
|
||||
PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT = PDO_ATTR_DRIVER_SPECIFIC,
|
||||
PDO_PGSQL_ATTR_DISABLE_PREPARES,
|
||||
};
|
||||
|
||||
struct pdo_pgsql_lob_self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue