mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Drop PDO support for extremely old libpq versions
configure will now fail if any of the following function is missing: * PQprepare * PQexecParams * PQescapeStringConn * PQescapeByteaConn
This commit is contained in:
parent
1a14eb53c4
commit
b1ffea3ccc
5 changed files with 53 additions and 97 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue