|
|
@@ -112,6 +112,7 @@ class Mysql extends DboSource {
|
|
|
'biginteger' => array('name' => 'bigint', 'limit' => '20'),
|
|
|
'integer' => array('name' => 'int', 'limit' => '11', 'formatter' => 'intval'),
|
|
|
'float' => array('name' => 'float', 'formatter' => 'floatval'),
|
|
|
+ 'numeric' => array('name' => 'decimal', 'formatter' => 'floatval'),
|
|
|
'decimal' => array('name' => 'decimal', 'formatter' => 'floatval'),
|
|
|
'datetime' => array('name' => 'datetime', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'),
|
|
|
'timestamp' => array('name' => 'timestamp', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'),
|
|
|
@@ -767,7 +768,7 @@ class Mysql extends DboSource {
|
|
|
if (strpos($col, 'float') !== false || strpos($col, 'double') !== false) {
|
|
|
return 'float';
|
|
|
}
|
|
|
- if (strpos($col, 'decimal') !== false) {
|
|
|
+ if (strpos($col, 'decimal') !== false || strpos($col, 'numeric') !== false) {
|
|
|
return 'decimal';
|
|
|
}
|
|
|
if (strpos($col, 'enum') !== false) {
|