Skip to content

Commit

Permalink
Fix buglet in dbh closing.
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed May 22, 2004
1 parent 35494bb commit d39117c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/pdo_odbc/odbc_driver.c
Expand Up @@ -146,9 +146,9 @@ static int odbc_handle_closer(pdo_dbh_t *dbh TSRMLS_DC)

if (H->dbc != SQL_NULL_HANDLE) {
SQLEndTran(SQL_HANDLE_DBC, H->dbc, SQL_ROLLBACK);
SQLDisconnect(H->dbc);
SQLFreeHandle(SQL_HANDLE_DBC, H->dbc);
}

SQLFreeHandle(SQL_HANDLE_DBC, H->dbc);
SQLFreeHandle(SQL_HANDLE_ENV, H->env);
pefree(H, dbh->is_persistent);

Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_odbc/pdo_odbc.c
Expand Up @@ -132,6 +132,8 @@ PHP_MINFO_FUNCTION(pdo_odbc)
#ifdef SQL_ATTR_CONNECTION_POOLING
php_info_print_table_row(2, "ODBC Connection Pooling", pdo_odbc_pool_on == SQL_CP_OFF ?
"Disabled" : (pdo_odbc_pool_mode == SQL_CP_STRICT_MATCH ? "Enabled, strict matching" : "Enabled, relaxed matching"));
#else
php_info_print_table_row(2, "ODBC Connection Pooling", "Not supported in this build");
#endif
php_info_print_table_end();

Expand Down

0 comments on commit d39117c

Please sign in to comment.