Skip to content

Fix the DBAL session handler version check for Postgresql #19369

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
Jul 18, 2016

Conversation

stof
Copy link
Member

@stof stof commented Jul 15, 2016

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets n/a
License MIT
Doc PR n/a

#19048 broken the DBAL session handler when using Postgresql by using method which does not exist on the main DBAL Connection class.

@nicolas-grekas
Copy link
Member

👍

@stof
Copy link
Member Author

stof commented Jul 18, 2016

@symfony/deciders anyone for the second review ?

$params = $this->con->getParams();

if (isset($params['serverVersion'])) {
return $params['serverVersion']; // Explicit platform version requested (supersedes auto-detection), so we respect it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicking: these long comments on the side of the code are a bit "strange" and, if I recall it correctly, not frequently used in Symfony. We usually put them just above the commented code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see 1376e14

@xabbuh
Copy link
Member

xabbuh commented Jul 18, 2016

👍

@fabpot
Copy link
Member

fabpot commented Jul 18, 2016

Thank you @stof.

@fabpot fabpot merged commit e98c584 into symfony:2.7 Jul 18, 2016
fabpot added a commit that referenced this pull request Jul 18, 2016
…(stof)

This PR was merged into the 2.7 branch.

Discussion
----------

Fix the DBAL session handler version check for Postgresql

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

#19048 broken the DBAL session handler when using Postgresql by using method which does not exist on the main DBAL Connection class.

Commits
-------

e98c584 Fix the DBAL session handler version check for Postgresql
@stof stof deleted the fix_dbal_session_handler branch July 18, 2016 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants