diff options
author | Oliver Gasser <oliver@flowriver.net> | 2013-12-17 22:46:45 +0100 |
---|---|---|
committer | Oliver Gasser <oliver@flowriver.net> | 2013-12-17 22:46:45 +0100 |
commit | 3b0d0e2b1f3fec67e18402b0b0ecaf03dcb6fed8 (patch) | |
tree | 0b4bbbce01c8abe9be0f1abdff7c349f96db9299 /lib/private/db | |
parent | 22a6bf9e5a20a6fb3c7c24e4e1e5275c9d7346ad (diff) | |
download | nextcloud-server-3b0d0e2b1f3fec67e18402b0b0ecaf03dcb6fed8.tar.gz nextcloud-server-3b0d0e2b1f3fec67e18402b0b0ecaf03dcb6fed8.zip |
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
Diffstat (limited to 'lib/private/db')
-rw-r--r-- | lib/private/db/mdb2schemareader.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/db/mdb2schemareader.php b/lib/private/db/mdb2schemareader.php index 511bd1c90bd..b1fd2454cb0 100644 --- a/lib/private/db/mdb2schemareader.php +++ b/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()); |