Skip to content

[RFC][Session] Make the PDO handler looks less hacky #4244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2012

Conversation

vicb
Copy link
Contributor

@vicb vicb commented May 10, 2012

Related discussion: ebc2f01#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).

@travisbot
Copy link

This pull request passes (merged b865b09 into 48099a8).

fabpot added a commit that referenced this pull request May 10, 2012
Commits
-------

b865b09 [Session] Fix the PDO handler for mysql concurrent write

Discussion
----------

[RFC][Session] Make the PDO handler looks less hacky

Related discussion: ebc2f01#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).

---------------------------------------------------------------------------

by travisbot at 2012-05-10T07:50:39Z

This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1293131) (merged b865b09 into 48099a8).
@fabpot fabpot merged commit b865b09 into symfony:master May 10, 2012
@vicb
Copy link
Contributor Author

vicb commented May 10, 2012

@Kertz @lsmith77 I'd like to hear your feedback although the PR has been merged. Thanks.

fabpot added a commit that referenced this pull request May 10, 2012
Commits
-------

51b753a [Session] cleanup of the PDO storage

Discussion
----------

[Session] cleanup of the PDO storage

and adding what was missing from #4244

---------------------------------------------------------------------------

by travisbot at 2012-05-10T10:40:33Z

This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1293901) (merged 51b753a into 6259429).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants