Re: [PDO] Question on Persistent PDO Connections
| From: | Ulf Wendel | Date: | Thu, 05 Nov 2009 15:29:45 +0000 |
| Subject: | Re: [PDO] Question on Persistent PDO Connections | ||
| References: | 1 2 3 4 | Groups: | php.pdo |
| Request: | Send a blank email to pdo+get-297@lists.php.net to get a copy of this message | ||
Lukas Kahwe Smith schrieb:
On 04.11.2009, at 16:43, Ulf Wendel wrote: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). UlfHackish - 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'