Don't log update errors (e.g. SQLITE_CONSTRAINT on duplicate insert) when _logsErrors is NO #129

Open
wants to merge 2 commits into
from

Projects

None yet

2 participants

@marcuswestin

My use case which motivates this patch is being able to INSERT a contact which may already be in the database. If I see an error after a INSERT update, I can safely ignore the error if it was SQLITE_CONSTRAINT. (In this case I don't want it NSLogged as an error, as there can be hundreds of these errors in a row).

Cheers!
Marcus

@nmtitov
nmtitov commented Feb 26, 2014

Agree, that'd be useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment