Re: [PDO] Question on Persistent PDO Connections
[email protected] (Ulf Wendel) Thu, 05 Nov 2009 16:29:45 +0100
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
Lukas Kahwe Smith schrieb: > > 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' With greetings from Haeikki Hackinnen? PDO specs: define how PDO drivers may/shall behave PDO API: implement bool PDO::resetsPersistentConnection() PDO API: options setPersistentConnectionReset() Choose whatever function name you like as long you end up having: - a clear statement in the PDO specs what whall happen - a documented and portable way to check the status of the implementation of a PDO specific feature (here: persistent connections). Ulf