mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Introduce connect_type option to pg_connect().
pg_connect(conn_str, conn_type) is allowed. @Added PGSQL_CONNECT_FORCE_NEW option to pg_connect() (Yasuo) # If you have better idea about constant name(s), let me know.
This commit is contained in:
parent
96b9c0a523
commit
2c23e56c7f
2 changed files with 14 additions and 6 deletions
|
@ -140,6 +140,8 @@ PHP_FUNCTION(pg_update);
|
|||
PHP_FUNCTION(pg_delete);
|
||||
PHP_FUNCTION(pg_select);
|
||||
|
||||
/* connection options - ToDo: Add async connection option */
|
||||
#define PGSQL_CONNECT_FORCE_NEW (1<<1)
|
||||
/* php_pgsql_convert options */
|
||||
#define PGSQL_CONV_IGNORE_DEFAULT (1<<1) /* Do not use DEAFULT value by removing field from returned array */
|
||||
#define PGSQL_CONV_FORCE_NULL (1<<2) /* Convert to NULL if string is null string */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue