[eluser]Erikk[/eluser]
The point is not in relying on errors to do the logic of the application, or checking if an entry exists etc.... Database errors are not necessarily related to the logic of your application or tables. An error can happen if the database is temporarily unavailable, or the connection to the database is broken or whatever, nothing to do with the logic of your application or your tables. An error can occur for example if someone changed the password etc. etc.
Now if I use an ajax request that would return success if data could be retrieved in the database, and error along with the reason of the error if an error occurs (for example someone has turned down the database for maintenance or whatever), then I just can't use codeigniter database class to do that