Skip to content

Commit e27e081

Browse files
authored
Minor Update Mysql.php
Add support for MySQL UNSIGNED TYPE_NUMERIC and TYPE_DECIMAL as according to their documentation http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html
1 parent 4bc9fcc commit e27e081

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,6 +2369,9 @@ protected function _getColumnDefinition($options, $ddlType = null)
23692369
}
23702370
}
23712371
$cType .= sprintf('(%d,%d)', $precision, $scale);
2372+
if (!empty($options['UNSIGNED'])) {
2373+
$cUnsigned = true;
2374+
}
23722375
break;
23732376
case Table::TYPE_TEXT:
23742377
case Table::TYPE_BLOB:

0 commit comments

Comments
 (0)