freddo411 has asked for the wisdom of the Perl Monks concerning the following question:
However, I tried this:
And got this:... my @areas = Areas->search( areaname => undef ); my $area = pop @areas; print " Area in DB, id: " . $area->id; print " areaname: " . $area->areaname; ...
* I verfied via SQL that there is an entry in the DB where areaname is null."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 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Oracle and Class::DBI search for a NULL field value
by perrin (Chancellor) on Apr 26, 2005 at 20:48 UTC | |
by freddo411 (Chaplain) on Apr 26, 2005 at 21:22 UTC | |
by perrin (Chancellor) on Apr 26, 2005 at 21:38 UTC | |
by freddo411 (Chaplain) on Apr 26, 2005 at 22:29 UTC | |
by freddo411 (Chaplain) on Apr 26, 2005 at 22:35 UTC | |
by perrin (Chancellor) on Apr 27, 2005 at 01:33 UTC |