diff options
author | Wez Furlong <wez@php.net> | 2004-05-22 14:51:26 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2004-05-22 14:51:26 +0000 |
commit | 35494bb569aa83c26550a8863f681d0fd641940c (patch) | |
tree | 0b5b11167670a355335969022e37f6bbd632da62 /ext/pdo_odbc/php_pdo_odbc_int.h | |
parent | ce5e317cc5f26aa01bc0d04a8c133fc5a3001262 (diff) | |
download | php-git-35494bb569aa83c26550a8863f681d0fd641940c.tar.gz |
Enable ODBC Connection Pooling.
Theoretically better than PHP persistent connections, since ODBC itself takes
care of resetting the connections back to a "ground" state.
Connection pooling defaults to ON, since this is generally useful.
You can turn it off by using:
pdo_odbc.connection_pooling=off
in your php.ini file.
You may configure how ODBC matches connection details to existing connections
by setting this value to "strict" (the default) or "relaxed". You are
encouraged to read the ODBC specs before changing this value.
Diffstat (limited to 'ext/pdo_odbc/php_pdo_odbc_int.h')
-rwxr-xr-x | ext/pdo_odbc/php_pdo_odbc_int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/pdo_odbc/php_pdo_odbc_int.h b/ext/pdo_odbc/php_pdo_odbc_int.h index ff7798c9aa..424b3dbdca 100755 --- a/ext/pdo_odbc/php_pdo_odbc_int.h +++ b/ext/pdo_odbc/php_pdo_odbc_int.h @@ -144,6 +144,11 @@ void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement, void pdo_odbc_init_error_table(void); void pdo_odbc_fini_error_table(void); +#ifdef SQL_ATTR_CONNECTION_POOLING +extern SQLUINTEGER pdo_odbc_pool_on; +extern SQLUINTEGER pdo_odbc_pool_mode; +#endif + /* * Local variables: * tab-width: 4 |