Question on Persistent PDO Connections
| From: | Kevin Stewart | Date: | Wed, 04 Nov 2009 14:58:47 +0000 |
| Subject: | Question on Persistent PDO Connections | ||
| Groups: | php.pdo | ||
| Request: | Send a blank email to pdo+get-290@lists.php.net to get a copy of this message | ||
Is there a way of knowing if the call to new PDO(yada) either reused a
connection or created a new one? I want to create a couple of temp tables
and temp triggers but don't want to have to do this everytime, only when a
NEW connection is made. I suppose I could just use "IF NOT EXISTS" in the
SQL, but I would rather not have to issue anything on a reuse situation. Any
thoughts/help is appreciated.
Kevin