Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: class-dbi-mysql and null values

by davidj (Priest)
on Nov 05, 2006 at 12:04 UTC ( #582308=note: print w/ replies, xml ) Need Help??


in reply to class-dbi-mysql and null values

I found a resolution. Its actually quite simple: just test for the length of the owner parameter and explicity asign undef if the length is 0.

if (length($owner) > 0) { $case->owner( $q->param('owner') ); } else { $case->owner( undef ); }
Thanks for you assistance,
davidj


Comment on Re: class-dbi-mysql and null values
Download Code
Replies are listed 'Best First'.
Re^2: class-dbi-mysql and null values
by davidrw (Prior) on Nov 05, 2006 at 13:19 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://582308]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (18)
As of 2015-07-31 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (277 votes), past polls