in reply to Re: OT: Oracle SQL issues
in thread OT: Oracle SQL issues

dbd::oracle is going to treat NULL's as undef coming OUT of queries, but not inversely. in other words, you need to pass the string 'NULL' in your bind params or execute instead of passing perl's undef.

This is wrong. From the DBI docs on placeholders:

Undefined values, or "undef", can be used to indicate null values.
But it goes on to say that for SELECT statements, this won't work in 'WHERE field = ?' clauses because nothing is equal to NULL, and suggests an alternative in the case where you're looking for a possibly NULL field.

Replies are listed 'Best First'.
Re: Re: Re: OT: Oracle SQL issues
by seesik (Initiate) on Sep 13, 2001 at 20:14 UTC
    agreed; pre-coffee mental burp. see here.