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 2121use Doctrine \DBAL \ParameterType ;
2222use Doctrine \DBAL \Schema \DefaultSchemaManagerFactory ;
2323use Doctrine \DBAL \Schema \Schema ;
24+ use Doctrine \DBAL \ServerVersionProvider ;
2425use Doctrine \DBAL \Tools \DsnParser ;
2526use Symfony \Component \Cache \Exception \InvalidArgumentException ;
2627use Symfony \Component \Cache \Marshaller \DefaultMarshaller ;
@@ -420,6 +421,10 @@ private function getServerVersion(): string
420421 return $ this ->serverVersion ;
421422 }
422423
424+ if ($ this ->conn instanceof ServerVersionProvider) {
425+ return $ this ->conn ->getServerVersion ();
426+ }
427+
423428 // The condition should be removed once support for DBAL <3.3 is dropped
424429 $ conn = method_exists ($ this ->conn , 'getNativeConnection ' ) ? $ this ->conn ->getNativeConnection () : $ this ->conn ->getWrappedConnection ();
425430 if ($ conn instanceof ServerInfoAwareConnection) {
You can’t perform that action at this time.
0 commit comments