On Sat, Feb 15, 2003 at 12:56:09PM +0000, Tim Bunce wrote:
> On Sat, Feb 15, 2003 at 11:23:13AM +1100, Craig Sanders wrote:
> > so, it looks like in plain perl selectrow_hashref returns undef when the
> > record doesn't exist, but in HTML::Mason it returns the scalar '1'.
> 
> Thanks. Dig deeper. I'd bet the code is doing something like
> 
>       $row = $dbh->selectrow_hashref(...) || ...something...
> 
> where the ...something... is returning '1'.

doh! 

yep, that was exactly what it was.  i should have spotted that myself
before digging in to the internals of DBI.pm.

thanks,

craig

-- 
craig sanders <[EMAIL PROTECTED]>

Fabricati Diem, PVNC.
 -- motto of the Ankh-Morpork City Watch

Reply via email to