summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc/odbc_driver.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-22 15:04:26 +0000
committerWez Furlong <wez@php.net>2004-05-22 15:04:26 +0000
commitd39117c2347c2d0f559289c8926d4c27835e093b (patch)
tree2ff9b7e0a1376cf513ce8cbd379c4250c2e80d82 /ext/pdo_odbc/odbc_driver.c
parent35494bb569aa83c26550a8863f681d0fd641940c (diff)
downloadphp-git-d39117c2347c2d0f559289c8926d4c27835e093b.tar.gz
Fix buglet in dbh closing.
Diffstat (limited to 'ext/pdo_odbc/odbc_driver.c')
-rwxr-xr-xext/pdo_odbc/odbc_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c
index d12459229d..23660bc793 100755
--- a/ext/pdo_odbc/odbc_driver.c
+++ b/ext/pdo_odbc/odbc_driver.c
@@ -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);