Skip to content

Commit

Permalink
Merge pull request #7989 from ping-yee/230928_fix_db_test
Browse files Browse the repository at this point in the history
test: fix the testcase error on MariaDB.
  • Loading branch information
kenjis authored Oct 1, 2023
2 parents 0cd3993 + 72825b2 commit 528200f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/system/Database/Live/ForgeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ public function testAddFields(): void
],
];

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

0 comments on commit 528200f

Please sign in to comment.