in reply to Re: Is this too clever? (or, stupid DBI tricks)
in thread Is this too clever? (or, stupid DBI tricks)

A select which returns 0 rows is not an error, so why would it raise an exception or set $sth->errstr?

Replies are listed 'Best First'.
Re^3: Is this too clever? (or, stupid DBI tricks)
by Jenda (Abbot) on Jan 05, 2008 at 19:38 UTC

    That's not the point, that was sufficiently solved by the previous responses. I was not replying to the main point of the root node, but rather commenting on something else in the code. Grinder seems to use  or die $sth->errstr, $/; next to any execute() statements which to me looks unnecessary, something that can be had for "free". Sorry if I did not make myself clear.