Skip to content

Commit 528200f

Browse files
authored
Merge pull request #7989 from ping-yee/230928_fix_db_test
test: fix the testcase error on MariaDB.
2 parents 0cd3993 + 72825b2 commit 528200f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/system/Database/Live/ForgeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ public function testAddFields(): void
941941
],
942942
];
943943

944-
if (version_compare($this->db->getVersion(), '8.0.17', '>=')) {
944+
if (version_compare($this->db->getVersion(), '8.0.17', '>=') && strpos($this->db->getVersion(), 'MariaDB') === false) {
945945
// As of MySQL 8.0.17, the display width attribute for integer data types
946946
// is deprecated and is not reported back anymore.
947947
// @see https://dev.mysql.com/doc/refman/8.0/en/numeric-type-attributes.html

0 commit comments

Comments
 (0)