First a bit of back ground.

I am wearing the hat of Oracle DBA and a novice Java programmer complained to me that his code was crashing because he expected a column in the database to be NULL or something besides ' '. I told him that his code should be more robust. Apparently he didn't like that answer because I got a call from my boss. This prompted me to write this email to Bob (the java guy) and Jill my non-technical boss.
Hi Bob & Jill,
 
I understand that having data in columns that contains ' ' can result
in problems if you are assuming that those columns are to contain
something other than ' ' or be NULL.
 
I can change the control files that are used to load the flat files
to set the value of a column to NULL if column in that flat file
is all blanks.  Currently there are about 50 control files.
12 of these are used for ASDSFXYZ data.  These ASDSFXYZ control files
deal with over 400 columns.  It is possible, although unlikely,
a bug may result if I where to add "NULLIF blanks" clause to all
of the columns that are not already being modified by the control files.
Also correcting the control files would not solve this problem for
data that is already loaded or data that will be loaded into the
database in some other manner.  To correct existing records we would
have to:
 
        1) identify all the columns that have ' ' vs. NULL problem
        2) make sure that all update triggers enabled on the tables
           the offending columns are disabled
        3) create backups.
        4) update the records.
        5) test
 
Another point is, what happens to a piece of code that is assuming that
' ' means something?  I know that this is probably unlikely for
a system the size of DOA2000, but this is something one should think about
and test for.  In other words, we could fix the problem in the software
unit that does not handle the ' ' vs. NULL issue very well and just test it.
Or we could do our best to remove the chance of the ' ' vs. NULL problem
ever occurring anywhere in the DOA2000 system and test the whole system.
 
Anonymous Monk


My question to you is, "Am I just a lazy weasel that doesn't feel like updating and testing 10+ sqlldr control files or should this Java coder fix his code or both?"

In reply to (OT) Am I weasel or just right? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.