summaryrefslogtreecommitdiff
path: root/ext/pgsql/php_pgsql.h
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-10-13 09:37:27 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-10-13 09:37:27 +0000
commit2c23e56c7f2a03f1fa81e11c1cbaeb6956c06d1c (patch)
tree45c6d8bf8ae793d5f2d333e62d9743af8d2b1f69 /ext/pgsql/php_pgsql.h
parent96b9c0a52321ea8974f051a83cf58bb7ec6144d9 (diff)
downloadphp-git-2c23e56c7f2a03f1fa81e11c1cbaeb6956c06d1c.tar.gz
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.
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r--ext/pgsql/php_pgsql.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h
index 9d41441e5c..d035798fe5 100644
--- a/ext/pgsql/php_pgsql.h
+++ b/ext/pgsql/php_pgsql.h
@@ -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 */