symfony/symfony — pull request #4244 by vicb (2012-05-10 07:48:05+00:00)
Title: [RFC][Session] Make the PDO handler looks less hacky

Related discussion: https://github.com/symfony/symfony/commit/ebc2f01e5b4e567c49ae99cb6bd01b4d07039748#commitcomment-1304221

The current code works but looks hacky (`$dbTimeCol = CASE WHEN $dbTimeCol = :time THEN (VALUES($dbTimeCol) + 1) ELSE VALUES($dbTimeCol) END`).

Todo: wrap the mysql specific code in a `try...catch` if we choose this PR way (to be consistent with all other PDO invocations).