Skip to content

Commit 67bda81

Browse files
committed
tests: compatibility with MySQL 8
1 parent 1b974d3 commit 67bda81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Database/Reflection.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ $expectedColumns = [
9191

9292
switch ($driverName) {
9393
case 'mysql':
94+
$version = $connection->getPdo()->getAttribute(\PDO::ATTR_SERVER_VERSION);
95+
if (version_compare($version, '8.0', '>=')) {
96+
$expectedColumns[0]['size'] = null;
97+
}
9498
break;
9599
case 'pgsql':
96100
$expectedColumns[0]['nativetype'] = 'INT4';

0 commit comments

Comments
 (0)