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
This commit is contained in:
stronk7
2007-09-04 23:16:14 +00:00
parent 77b7083885
commit 93d8244508
@@ -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;