Forum OpenACS Q&A: Re: error handling in db_1row

Collapse
Posted by Don Baccus on
To expand on Vinod's reference, call db_0or1row in an "if" statement.  It returns an error if multiple rows are returned,  true if one row is returned, false if no row is returned.

You don't want to catch on db_1row because you can't differentiate between its failing because no row or many rows triggered the error ...