diff --git a/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php b/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php index b066bb4db2912..25249b39703be 100644 --- a/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php +++ b/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php @@ -2422,7 +2422,7 @@ protected function _getColumnDefinition($options, $ddlType = null) * where default value can be quoted already. * We need to avoid "double-quoting" here */ - if ($cDefault !== null && strlen($cDefault)) { + if ($cDefault !== null && is_string($cDefault) && strlen($cDefault)) { $cDefault = str_replace("'", '', $cDefault); }