From 33a493cf82f478adee584300f5f6b986b39d78d4 Mon Sep 17 00:00:00 2001 From: "Thies C. Arntzen" Date: Sat, 13 Apr 2002 12:10:03 +0000 Subject: [PATCH] @- Mixing OCIPlogon and OCINLogon no longer leak Oracle-Sessions. (thies) --- ext/oci8/oci8.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index baccacd562..45d15fecb4 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2578,7 +2578,13 @@ static void oci_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent,int exclu goto CLEANUP; } - persistent = server->persistent; /* if our server-context is not persistent we can't */ + if (exclusive) { + /* exlusive session can never be persistent!*/ + persistent = 0; + } else { + /* if our server-context is not persistent we can't */ + persistent = server->persistent; + } session = _oci_open_session(server,username,password,persistent,exclusive); -- 2.50.1