[AMOS commit] MDL-32113 xmldb: Support numeric fields with precision up to 38 digits Committed into Git: 2017-12-21 15:16 UTC

[AMOS commit] MDL-32113 xmldb: Support numeric fields with precision up to 38 digits Committed into Git: 2017-12-21 15:16 UTC

by AMOS bot -
Number of replies: 0
Author: David Mudrák
MDL-32113 xmldb: Support numeric fields with precision up to 38 digits
The patch increases the maximum supported precision (total number of
digits) for numeric (decimal) fields to 38 digits (current limit on
Oracle and MSSQL).

Additionally, we add our own limit for the whole number part of numeric
fields so they are no longer than integer fields (20 digits). This is to
make it easier to eventually convert from one field type to another.
Note that PHP floats commonly support precision of roughly 15 digits
anyway.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=521252d6420ecc86650e529d63959ca3a8e2f244
http://github.com/moodle/moodle/commit/521252d6420ecc86650e529d63959ca3a8e2f244

+ 3.5 en [numberincorrectwholepart,tool_xmldb]