MDL-32113 xmldb: Remove hard-coded exceptions for long number fields
We are going to unify the maximum supported precision of all numeric fields to 38 digits (which are the current Oracle and MSSQL limits). Get rid of hard-coded exceptions for longer fields.
This commit is contained in:
@@ -181,10 +181,6 @@ class oracle_sql_generator extends sql_generator {
|
||||
case XMLDB_TYPE_FLOAT:
|
||||
case XMLDB_TYPE_NUMBER:
|
||||
$dbtype = $this->number_type;
|
||||
// 38 is the max allowed
|
||||
if ($xmldb_length > 38) {
|
||||
$xmldb_length = 38;
|
||||
}
|
||||
if (!empty($xmldb_length)) {
|
||||
$dbtype .= '(' . $xmldb_length;
|
||||
if (!empty($xmldb_decimals)) {
|
||||
|
||||
Reference in New Issue
Block a user