Skip to content

Commit 69995d7

Browse files
author
junaid farooq
committed
fix: Fix unrecognized functional index defined in MySQL
+ The issue leads to crashing dbal. + The issue is fixed by skipping adding the columns, returned as null, to the index at the time of the creation of the index
1 parent 369ab24 commit 69995d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Schema/Index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use function array_search;
1313
use function array_shift;
1414
use function count;
15+
use function is_string;
1516
use function strtolower;
1617

1718
class Index extends AbstractAsset
@@ -57,6 +58,10 @@ public function __construct(
5758
$this->_isPrimary = $isPrimary;
5859

5960
foreach ($columns as $column) {
61+
if (! is_string($column)) {
62+
continue;
63+
}
64+
6065
$this->_addColumn($column);
6166
}
6267

0 commit comments

Comments
 (0)