Commit 8eea5899 authored by Dries's avatar Dries
Browse files

- Patch #218054 by Arancaytar: _db_create_field_sql has precision and scale...

- Patch #218054 by Arancaytar: _db_create_field_sql has precision and scale arguments in wrong order.
parent aea7c252
......@@ -160,7 +160,7 @@ function _db_create_field_sql($name, $spec) {
$sql .= '('. $spec['length'] .')';
}
elseif (isset($spec['precision']) && isset($spec['scale'])) {
$sql .= '('. $spec['scale'] .', '. $spec['precision'] .')';
$sql .= '('. $spec['precision'] .', '. $spec['scale'] .')';
}
if (!empty($spec['unsigned'])) {
......
......@@ -610,7 +610,7 @@ function _db_create_field_sql($name, $spec) {
$sql .= '('. $spec['length'] .')';
}
elseif (isset($spec['precision']) && isset($spec['scale'])) {
$sql .= '('. $spec['scale'] .', '. $spec['precision'] .')';
$sql .= '('. $spec['precision'] .', '. $spec['scale'] .')';
}
if (isset($spec['not null']) && $spec['not null']) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment