Re: [PDO] Question on Persistent PDO Connections

[email protected] (Lukas Kahwe Smith) Thu, 5 Nov 2009 16:03:32 +0100
Newsgroups php.pdo
Message-ID <[email protected]>
On 04.11.2009, at 16:43, Ulf Wendel wrote:

> Hackish - if it is undefined wheter pooled PDO connections are  
> cleaned up before reuse or not, I consider it undefined how drivers  
> behave and furthermore, I consider it not as a bug if extensions  
> change their behaviour at any time.


a slightly more "reasonable" scenario would be having to set session  
variables like on oracle:
ALTER SESSION SET NLS_NUMERIC_CHARACTERS='. '
ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'

would be nice to have to set this only once for connections being  
reused, since often times its hopeless to get the DBA to make such  
adjustments permanent.

regards,
Lukas Kahwe Smith
[email protected]