I thought this question was answered when I searched and found
Class::DBI specifying field is NULL.
However, I tried this:
...
my @areas = Areas->search( areaname => undef );
my $area = pop @areas;
print " Area in DB, id: " . $area->id;
print " areaname: " . $area->areaname;
...
And got this:
"processEmpFile.pl" 291 lines, 6885 characters
gonzo:/dbsetup/empDataLoad.04: ./processEmpFile.pl
Can't call method "id" on an undefined value at ./processEmpFile.pl li
+ne 72, <GEN0> chunk 1.
* I verfied via SQL that there is an entry in the DB where areaname is null.
* I also searched for another known value "foobar" using C::DBI and found it successfully.
I am using Oracle 8, which I suspect is related to why the above node doesn't apply to me. Anyone know a work around?
--Fred
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.