Skip to content

Commit 2302765

Browse files
authored
fix to allow Zend_Db_Expr as default for column
1 parent c7ad941 commit 2302765

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+1
-1
lines changed

Diff for: lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2422,7 +2422,7 @@ protected function _getColumnDefinition($options, $ddlType = null)
24222422
* where default value can be quoted already.
24232423
* We need to avoid "double-quoting" here
24242424
*/
2425-
if ($cDefault !== null && strlen($cDefault)) {
2425+
if ($cDefault !== null && is_string($cDefault) && strlen($cDefault)) {
24262426
$cDefault = str_replace("'", '', $cDefault);
24272427
}
24282428

0 commit comments

Comments
 (0)