|
|
| Just another Perl shrine | |
| PerlMonks |
Re: check bind_columns for undefined valuesby Neighbour (Friar) |
| on May 18, 2011 at 08:56 UTC ( #905430=note: print w/ replies, xml ) | Need Help?? |
|
Why would you want to replace undef values (which correspond to NULL-values in the database) with the string "null" anyway? That can change the datatype of the column (since numeric columns can also contain NULL values, which you change to a text datatype). To answer your question, if you use You'd have to check all vars to see if they're undef after fetching data and act accordingly. This method might make things simpler: Now you can use to do your evil thing.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||