From 9ee8dd90a37bde92c387e473fa756c896f8d941e Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Wed, 7 Oct 2009 17:40:16 +0000 Subject: - Fixed bug #48764 (PDO_pgsql::query always uses implicit prepared statements if v3 proto available) # original patch by Mark Kirkwood --- ext/pdo_pgsql/php_pdo_pgsql_int.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/pdo_pgsql/php_pdo_pgsql_int.h') diff --git a/ext/pdo_pgsql/php_pdo_pgsql_int.h b/ext/pdo_pgsql/php_pdo_pgsql_int.h index e73320661c..50b478f340 100644 --- a/ext/pdo_pgsql/php_pdo_pgsql_int.h +++ b/ext/pdo_pgsql/php_pdo_pgsql_int.h @@ -43,6 +43,13 @@ typedef struct { unsigned _reserved:31; pdo_pgsql_error_info einfo; Oid pgoid; +#if HAVE_PQPREPARE + /* The following two variables have the same purpose. Unfortunately we need + to keep track of two different attributes having the same effect. + It might be worth to deprecate the driver specific one soon. */ + int emulate_prepares; + int disable_native_prepares; +#endif } pdo_pgsql_db_handle; typedef struct { -- cgit v1.2.1