On Sat, Feb 15, 2003 at 11:23:13AM +1100, Craig Sanders wrote:
> On Sat, Feb 15, 2003 at 10:51:14AM +1100, Craig Sanders wrote:
> > On Fri, Feb 14, 2003 at 11:05:19AM +0000, Tim Bunce wrote:
> > > Can you post an example script that calls selectrow_hashref and
> > > demonstrates the problem?
> >
> > the application is written in HTML::Mason, so all the stuff for opening
>
> the standalone version works OK (in that it doesn't die). for
> non-existent record id 100 (which causes the HTML::Mason version to
> die), the output is:
> 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'.
Tim.