From 2efaf3f8ab97d8986be3dce4467a2aab687d836c Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 22 Aug 2006 16:39:14 +0000 Subject: [PATCH] One trick to allow pseudo-null Oracle insertions. Let's see what happen. --- lib/xmldb/classes/generators/oci8po/oci8po.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5