If you have exceptions enabled, you can catch BadQuery. This is for query
failure.
Also, Connection::affected_rows() returns the number of changed rows. Return
value of 0 can mean an error, depending on your update query logic (update query
can return 0 if nothing matched the select).
Vijay
gary weideman writes:
All,
So does anyone know if there is a way to check for a result of an update or
an insert somehow ?
The API++ doc mentions that an object with the result from a non-select
query is returned but I'm not sure how to check for the result for an update
or insert.