summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/php_pdo_pgsql_int.h
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2014-03-09 11:43:13 +0100
committerMatteo Beccati <mbeccati@php.net>2014-03-11 23:10:47 +0100
commitb1ffea3ccce0e1f1a63022f446c1549dfad92e9e (patch)
tree51469590f6a27d8976e636f2781e8e6bb17add9d /ext/pdo_pgsql/php_pdo_pgsql_int.h
parent1a14eb53c4c7bff343e0df9463c6b109c0d9f469 (diff)
downloadphp-git-b1ffea3ccce0e1f1a63022f446c1549dfad92e9e.tar.gz
Drop PDO support for extremely old libpq versions
configure will now fail if any of the following function is missing: * PQprepare * PQexecParams * PQescapeStringConn * PQescapeByteaConn
Diffstat (limited to 'ext/pdo_pgsql/php_pdo_pgsql_int.h')
-rw-r--r--ext/pdo_pgsql/php_pdo_pgsql_int.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/pdo_pgsql/php_pdo_pgsql_int.h b/ext/pdo_pgsql/php_pdo_pgsql_int.h
index 908f47d57c..037344ab94 100644
--- a/ext/pdo_pgsql/php_pdo_pgsql_int.h
+++ b/ext/pdo_pgsql/php_pdo_pgsql_int.h
@@ -43,14 +43,12 @@ 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
- unsigned int stmt_counter;
+ unsigned int stmt_counter;
} pdo_pgsql_db_handle;
typedef struct {
@@ -66,14 +64,12 @@ typedef struct {
int current_row;
pdo_pgsql_column *cols;
char *cursor_name;
-#if HAVE_PQPREPARE
char *stmt_name;
char *query;
char **param_values;
int *param_lengths;
int *param_formats;
Oid *param_types;
-#endif
zend_bool is_prepared;
} pdo_pgsql_stmt;