]> git.mjollnir.org Git - moodle.git/commitdiff
One trick to allow pseudo-null Oracle insertions. Let's see what happen.
authorstronk7 <stronk7>
Tue, 22 Aug 2006 16:39:14 +0000 (16:39 +0000)
committerstronk7 <stronk7>
Tue, 22 Aug 2006 16:39:14 +0000 (16:39 +0000)
lib/xmldb/classes/generators/oci8po/oci8po.class.php

index 0aaef00ffc5afd4e63f46d5846822b2db50b2840..e4a0a1bb83bf4748ba0ce1b31dc7e4f400499b3f 100644 (file)
@@ -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