File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed 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()
252252 {
253253 $ params = $ this ->con ->getParams ();
254254
255+ // Explicit platform version requested (supersedes auto-detection), so we respect it.
255256 if (isset ($ params ['serverVersion ' ])) {
256- return $ params ['serverVersion ' ]; // Explicit platform version requested (supersedes auto-detection), so we respect it.
257+ return $ params ['serverVersion ' ];
257258 }
258259
259260 $ wrappedConnection = $ this ->con ->getWrappedConnection ();
@@ -262,10 +263,12 @@ private function getServerVersion()
262263 return $ wrappedConnection ->getServerVersion ();
263264 }
264265
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 ) {
266268 return $ wrappedConnection ->getAttribute (\PDO ::ATTR_SERVER_VERSION );
267269 }
268270
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 '' ;
270273 }
271274}
You can’t perform that action at this time.
0 commit comments