Skip to content

Commit

Permalink
Remove disable_native_prepares
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-tekiela committed Nov 25, 2024
1 parent 00e88b0 commit 3e1138e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion ext/pdo_pgsql/pgsql_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ static bool pgsql_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *
execute_only = 1;
}
} else {
emulate = H->disable_native_prepares || H->emulate_prepares;
emulate = H->emulate_prepares;
execute_only = H->disable_prepares;
}

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_pgsql/php_pdo_pgsql_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ typedef struct {
pdo_pgsql_error_info einfo;
Oid pgoid;
unsigned int stmt_counter;
/* The following two variables have the same purpose. Unfortunately we need
to keep track of two different attributes having the same effect. */
bool emulate_prepares;
bool disable_native_prepares; /* deprecated since 5.6 */
bool disable_prepares;
HashTable *lob_streams;
zend_fcall_info_cache *notice_callback;
Expand Down

0 comments on commit 3e1138e

Please sign in to comment.