From 16a208f9e6082a9dc615be438ba495ccd062c2d6 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 4 Sep 2007 23:18:41 +0000 Subject: [PATCH] Now the Oracle XMLDB generator detects changes of precision in NUMBERs without decimals (virtually INTs) and is able to perform the change of precision properly Merged from MOODLE_18_STABLE --- lib/xmldb/classes/generators/oci8po/oci8po.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xmldb/classes/generators/oci8po/oci8po.class.php b/lib/xmldb/classes/generators/oci8po/oci8po.class.php index 40b00e51ce..4600422399 100644 --- a/lib/xmldb/classes/generators/oci8po/oci8po.class.php +++ b/lib/xmldb/classes/generators/oci8po/oci8po.class.php @@ -370,7 +370,7 @@ class XMLDBoci8po extends XMLDBgenerator { /// - fill the new column with the values from the old one /// - drop the old column /// - rename the temp column to the original name - if (($typechanged) || ($oldmetatype == 'N' && ($precisionchanged || $decimalchanged))) { + if (($typechanged) || (($oldmetatype == 'N' || $oldmetatype == 'I') && ($precisionchanged || $decimalchanged))) { $tempcolname = $xmldb_field->getName() . '_alter_column_tmp'; /// Prevent temp field to have both NULL/NOT NULL and DEFAULT constraints $this->alter_column_skip_notnull = true; -- 2.39.5