File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
dev/tests/integration/framework/Magento/TestFramework/Db Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ class Mysql extends \Magento\TestFramework\Db\AbstractDb
18
18
*/
19
19
const DEFAULT_PORT = 3306 ;
20
20
21
+ /**
22
+ * MariaDB minimum version.
23
+ */
24
+ const MARIADB_MIN_VERSION = '11.4. ' ;
25
+
21
26
/**
22
27
* Name of configuration file.
23
28
*/
@@ -279,6 +284,15 @@ private function isMariaDB(): bool
279
284
);
280
285
281
286
$ this ->isMariaDB = (bool ) preg_match ('/-MariaDB/i ' , $ version );
287
+
288
+ if ($ this ->isMariaDB ){
289
+ $ pattern = "/\s*((?:[0-9]+\.?)+)/i " ;
290
+ preg_match ($ pattern , $ version ,$ matches );
291
+ $ currentVersion = $ matches [1 ];
292
+ if (!version_compare ($ currentVersion , self ::MARIADB_MIN_VERSION , '>= ' )) {
293
+ $ this ->isMariaDB = false ;
294
+ }
295
+ }
282
296
}
283
297
} catch (LocalizedException $ e ) {
284
298
$ this ->isMariaDB = false ;
You can’t perform that action at this time.
0 commit comments