Description[sql] Differentiate compile errors from regular errors.
GetUniqueStatement() and GetUntrackedStatement() attempt to be
pedantic about errors preparing statements, because often those errors
indicate either a syntax error in the SQL being prepared, or an error
with the database schema it is being prepared against. That makes
testing code against various other problems like corruption
challenging. This change attempts to restrict the flagged errors to
include fewer errors unrelated to the form of the SQL statement (or
schema).
Additionally, slightly improve the debug output for OnSqliteError()
for databases which haven't been tagged.
BUG=537742
Committed: https://crrev.com/f7e988ff06ac6ca527bc907410e1f6292534de89
Cr-Commit-Position: refs/heads/master@{#359452}
Patch Set 1 #
Messages
Total messages: 14 (5 generated)
|