File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/Symfony/Bridge/Doctrine/HttpFoundation Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -252,8 +252,9 @@ private function getServerVersion()
252
252
{
253
253
$ params = $ this ->con ->getParams ();
254
254
255
+ // Explicit platform version requested (supersedes auto-detection), so we respect it.
255
256
if (isset ($ params ['serverVersion ' ])) {
256
- return $ params ['serverVersion ' ]; // Explicit platform version requested (supersedes auto-detection), so we respect it.
257
+ return $ params ['serverVersion ' ];
257
258
}
258
259
259
260
$ wrappedConnection = $ this ->con ->getWrappedConnection ();
@@ -262,10 +263,12 @@ private function getServerVersion()
262
263
return $ wrappedConnection ->getServerVersion ();
263
264
}
264
265
265
- if ($ wrappedConnection instanceof \PDO ) { // Support DBAL 2.4 by accessing it directly when using PDO PgSQL
266
+ // Support DBAL 2.4 by accessing it directly when using PDO PgSQL
267
+ if ($ wrappedConnection instanceof \PDO ) {
266
268
return $ wrappedConnection ->getAttribute (\PDO ::ATTR_SERVER_VERSION );
267
269
}
268
270
269
- return '' ; // If we cannot guess the version, the empty string will mean we won't use the code for newer versions when doing version checks.
271
+ // If we cannot guess the version, the empty string will mean we won't use the code for newer versions when doing version checks.
272
+ return '' ;
270
273
}
271
274
}
You can’t perform that action at this time.
0 commit comments