forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: Switch recovery module to use SQLITE_ERROR on bad queries.
//sql/recovery_module used SQLITE_MISUSE to signal receiving incorrect SQL statements. However, SQLITE_MISUSE is intended for incorrect use of the SQLite C API, and is mostly used to signal buggy lifecycle management. This CL switches //sql/recovery_module away from SQLITE_MISUSE. SQLITE_ERROR is used instead, matching SQLite's behavior on SQL statement issues such as incorrect row names and bad syntax. Change-Id: I9b879c3351801d475898576bf7f6b3d6c5755676 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3536962 Auto-Submit: Victor Costan <pwnall@chromium.org> Reviewed-by: Austin Sullivan <asully@chromium.org> Commit-Queue: Austin Sullivan <asully@chromium.org> Cr-Commit-Position: refs/heads/main@{#983500}
- Loading branch information
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters