mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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.
This commit is contained in:
parent
ce5e317cc5
commit
35494bb569
3 changed files with 61 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue