Question on Persistent PDO Connections
[email protected] ("Kevin Stewart") Wed, 4 Nov 2009 08:58:47 -0600
| Newsgroups | php.pdo |
|---|---|
| Organization | Vaonet |
| Message-ID | <[email protected]> |
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