Jump to content

mdb2 oracle connection leak


lui10e6

Recommended Posts

Hi,

I am using MDB2 class for connecting to database. The server is windows 2003.

it is fine with mysql, but when using it with oracle 10g it wouldn't close the connection in this case:

$test = new object;

//create the condition

$test->condition($value);

//first sql

$first=$test->function1();

//second sql

$second=$test->function2();

 

if i have only one sql to execute it is fine, but with more then 1 the connection is not closed.

 

why?

 

this is how i connect to db:

$this->mdb2 =& MDB2::factory($dsn);

where dsn is defined as an array.

 

many thanks if anyone.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.