<?php {
$mySqlVersion = DB::select('select version()')[0]->{'version()'} ?? '';
if (strpos($mySqlVersion, 'Maria') !== false) {
$this->markTestSkipped('Lateral joins are not supported on MariaDB'.__CLASS__);
} elseif ((float) $mySqlVersion < '8.0.14') {
$this->markTestSkipped('Lateral joins are not supported on MySQL < 8.0.14'.__CLASS__);