From 599caff8c569fff5fe57d4a06471d65e989fc982 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 28 Sep 2006 23:06:04 +0000 Subject: [PATCH] prevent nulls to become nulls (oracle error) and defaults null to become defaults null when temporary columns are used --- lib/xmldb/classes/generators/oci8po/oci8po.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/xmldb/classes/generators/oci8po/oci8po.class.php b/lib/xmldb/classes/generators/oci8po/oci8po.class.php index 0c33fd3383..5571f9b69b 100644 --- a/lib/xmldb/classes/generators/oci8po/oci8po.class.php +++ b/lib/xmldb/classes/generators/oci8po/oci8po.class.php @@ -303,6 +303,14 @@ class XMLDBoci8po extends XMLDBgenerator { $this->alter_column_skip_default = false; /// Dissable the type section because we have done it with the temp field $this->alter_column_skip_type = true; + /// If new field is nullable, nullability hasn't changed + if (!$xmldb_field->getNotnull()) { + $notnullchanged = false; + } + /// If new field hasn't default, default hasn't changed + if ($xmldb_field->getDefault() === null) { + $defaultchanged = false; + } } /// If type and precision and decimals hasn't changed, prevent the type clause -- 2.39.5