Re: [PDO] Question on Persistent PDO Connections

[email protected] (Ulf Wendel) Wed, 04 Nov 2009 16:22:06 +0100
Newsgroups php.pdo
Message-ID <[email protected]>
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