DB: Support DECIMAL(precision,scale) syntax in XML

Add support for specifying the precision and scale of a decimal data
type to the XML description language.

See owncloud/core#6475
remotes/origin/ldap_group_count
Oliver Gasser 11 years ago
parent 22a6bf9e5a
commit 3b0d0e2b1f
  1. 8
      lib/private/db/mdb2schemareader.php

@ -183,6 +183,14 @@ class MDB2SchemaReader {
$primary = $this->asBool($child);
$options['primary'] = $primary;
break;
case 'precision':
$precision = (string)$child;
$options['precision'] = $precision;
break;
case 'scale':
$scale = (string)$child;
$options['scale'] = $scale;
break;
default:
throw new \DomainException('Unknown element: ' . $child->getName());

Loading…
Cancel
Save