Re: [PDO] Question on Persistent PDO Connections
| From: | Ulf Wendel | Date: | Wed, 04 Nov 2009 15:22:06 +0000 |
| Subject: | Re: [PDO] Question on Persistent PDO Connections | ||
| References: | 1 | Groups: | php.pdo |
| Request: | Send a blank email to pdo+get-291@lists.php.net to get a copy of this message | ||
Kevin Stewart schrieb:
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.Is this an example of the incompleteness of the PDO specification? Ulf -- Ulf Wendel, MySQL Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering Muenchen: HRB161028