On 5/30/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:
I talking about the case where you asked for something with primary key 4, and it is not present. That's not a 'no result search' which I think is what you were talking about, it's an actual error (maybe you messed up the code to generate the link someone just clicked on).
But with cfquery, you'd do: select * from table where id = 4 and you'd get an empty query back - NOT an error. In Reactor you get an empty record back. That seems pretty consistent to me. Also this is a fundamental idiom for most every ORM out there: loading a non-existent record gives you an empty record. You're supposed to use the exists() method if there's any question - that's the idiom. I think the problem here is that folks are thinking about this problem in an old-school procedural way... -- Sean A Corfield -- http://corfield.org/ Got frameworks? "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

