On Fri, Jan 11, 2002 at 04:08:44PM -0500, Ronnie Anderson wrote:
> I just figured it out.
> 
> If $DOMAIN is NULL, I'm setting it to "undef" and then
> passing that in to the execute statement. It seems to
> be taking the _string_ "undef" instead of the _value_
> of undef. So my query was doing "WHERE domain
> = 'undef'" instead of evaluating undef to NULL.

Don't set it to "undef", set it to undef.

e.g. $DOMAIN = undef;

Although, your code should be written so that $DOMAIN is undef to begin
with.

Ronald

Reply via email to