I'm very surprised to get an internal error, and even an "assert(false)" when a select() query returns no data.
I guess such data miss do not need to be an error internal to QxOrm, but should be an error handled by the calling application.
Ok, I could :
- check with a "dao::exist" query before the "fetch", but what if the record gets deleted in between?
- build in release mode, but I still need to work on the app, debug it, and handle weird cases like "data not in the DB"
- only turn all asserts off, but I still need some of them
Would it be possible, or dangerous, to turn remove such asserts(), and only return a NoData error?
Thanks.
--
Matthieu