@@ -666,7 +666,9 @@ public function testJsonOverlapsConditionBuilder(): void
666
666
$ db = $ this ->getConnection ();
667
667
668
668
if (str_contains ($ db ->getServerVersion (), 'MariaDB ' ) && version_compare ($ db ->getServerVersion (), '10.9 ' , '< ' )) {
669
- self ::markTestSkipped ('MariaDB < 10.9 does not support JSON_OVERLAPS function. ' );
669
+ self ::markTestSkipped ('MariaDB < 10.9 does not support JSON_OVERLAPS() function. ' );
670
+ } elseif (version_compare ($ db ->getServerVersion (), '8 ' , '< ' )) {
671
+ self ::markTestSkipped ('MySQL < 8 does not support JSON_OVERLAPS() function. ' );
670
672
}
671
673
672
674
$ qb = $ db ->getQueryBuilder ();
@@ -686,7 +688,9 @@ public function testOverlapsCondition(iterable|ExpressionInterface $values, int
686
688
$ db = $ this ->getConnection ();
687
689
688
690
if (str_contains ($ db ->getServerVersion (), 'MariaDB ' ) && version_compare ($ db ->getServerVersion (), '10.9 ' , '< ' )) {
689
- self ::markTestSkipped ('MariaDB < 10.9 does not support JSON_OVERLAPS function. ' );
691
+ self ::markTestSkipped ('MariaDB < 10.9 does not support JSON_OVERLAPS() function. ' );
692
+ } elseif (version_compare ($ db ->getServerVersion (), '8 ' , '< ' )) {
693
+ self ::markTestSkipped ('MySQL < 8 does not support JSON_OVERLAPS() function. ' );
690
694
}
691
695
692
696
$ count = (new Query ($ db ))
@@ -705,7 +709,9 @@ public function testOverlapsConditionOperator(iterable|ExpressionInterface $valu
705
709
$ db = $ this ->getConnection ();
706
710
707
711
if (str_contains ($ db ->getServerVersion (), 'MariaDB ' ) && version_compare ($ db ->getServerVersion (), '10.9 ' , '< ' )) {
708
- self ::markTestSkipped ('MariaDB < 10.9 does not support JSON_OVERLAPS function. ' );
712
+ self ::markTestSkipped ('MariaDB < 10.9 does not support JSON_OVERLAPS() function. ' );
713
+ } elseif (version_compare ($ db ->getServerVersion (), '8 ' , '< ' )) {
714
+ self ::markTestSkipped ('MySQL < 8 does not support JSON_OVERLAPS() function. ' );
709
715
}
710
716
711
717
$ count = (new Query ($ db ))
0 commit comments