I’m dealing with the execSQL function from Android SQLite API. Since I pass query as a parameter, I execute it straight through this function, so I’m not processing it (and I’d prefer not to do it) to know if we are CREATING, INSERTING, DELETING, …
The point is: is there any generic way to know if the SQL execution has succeed?
Thank you in advance !
execSQL throws SQLException if the SQL string is invalid. You can also wrap your statement into transaction using the model: