From: stronk7 Date: Tue, 22 Aug 2006 16:39:14 +0000 (+0000) Subject: One trick to allow pseudo-null Oracle insertions. Let's see what happen. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2efaf3f8ab97d8986be3dce4467a2aab687d836c;p=moodle.git One trick to allow pseudo-null Oracle insertions. Let's see what happen. --- diff --git a/lib/xmldb/classes/generators/oci8po/oci8po.class.php b/lib/xmldb/classes/generators/oci8po/oci8po.class.php index 0aaef00ffc..e4a0a1bb83 100644 --- a/lib/xmldb/classes/generators/oci8po/oci8po.class.php +++ b/lib/xmldb/classes/generators/oci8po/oci8po.class.php @@ -38,7 +38,8 @@ class XMLDBoci8po extends XMLDBgenerator { var $number_type = 'NUMBER'; // Proper type for NUMBER(x) in this DB var $unsigned_allowed = false; // To define in the generator must handle unsigned information - var $default_for_char = ''; // To define the default to set for NOT NULLs CHARs without default (null=do nothing) + var $default_for_char = ' '; // To define the default to set for NOT NULLs CHARs without default (null=do nothing) + // Using this whitespace here because Oracle doesn't distinguish empty and null! :-( var $default_after_null = false; //To decide if the default clause of each field must go after the null clause