File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/Symfony/Component/Cache/Adapter Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 21
21
use Doctrine \DBAL \ParameterType ;
22
22
use Doctrine \DBAL \Schema \DefaultSchemaManagerFactory ;
23
23
use Doctrine \DBAL \Schema \Schema ;
24
+ use Doctrine \DBAL \ServerVersionProvider ;
24
25
use Doctrine \DBAL \Tools \DsnParser ;
25
26
use Symfony \Component \Cache \Exception \InvalidArgumentException ;
26
27
use Symfony \Component \Cache \Marshaller \DefaultMarshaller ;
@@ -420,6 +421,10 @@ private function getServerVersion(): string
420
421
return $ this ->serverVersion ;
421
422
}
422
423
424
+ if ($ this ->conn instanceof ServerVersionProvider) {
425
+ return $ this ->conn ->getServerVersion ();
426
+ }
427
+
423
428
// The condition should be removed once support for DBAL <3.3 is dropped
424
429
$ conn = method_exists ($ this ->conn , 'getNativeConnection ' ) ? $ this ->conn ->getNativeConnection () : $ this ->conn ->getWrappedConnection ();
425
430
if ($ conn instanceof ServerInfoAwareConnection) {
You can’t perform that action at this time.
0 commit comments