Skip to content

Commit

Permalink
Fixed Mysql PDO Adapter for PHP 8.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbess committed Dec 15, 2021
1 parent cff8851 commit 2135729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@ public function getColumnCreateByDescribe($columnData)
$options['unsigned'] = true;
}
if ($columnData['NULLABLE'] === false
&& !($type == Table::TYPE_TEXT && strlen($columnData['DEFAULT']) != 0)
&& !($type == Table::TYPE_TEXT && isset($columnData['DEFAULT']) && strlen($columnData['DEFAULT']) != 0)
) {
$options['nullable'] = false;
}
Expand Down

0 comments on commit 2135729

Please sign in to comment.