Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Issue 1434173003: [sql] Differentiate compile errors from regular errors. (Closed)

Created:
5 years, 1 month ago by Scott Hess - ex-Googler
Modified:
5 years, 1 month ago
Reviewers:
michaeln
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -3 lines) Patch
M sql/connection.h View 1 chunk +4 lines, -0 lines 0 comments Download
M sql/connection.cc View 5 chunks +26 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Scott Hess - ex-Googler
https://codereview.chromium.org/1432953002 reverted my change https://codereview.chromium.org/1426743006 My change caused DiagnosticsControllerTest tests RecoverFromNssCertDbFailure and RecoverFromNssKeyDbFailure to fail ...
5 years, 1 month ago (2015-11-12 01:23:20 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1434173003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1434173003/1
5 years, 1 month ago (2015-11-12 01:25:22 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/133873)
5 years, 1 month ago (2015-11-12 02:59:03 UTC) #7
Scott Hess - ex-Googler
On 2015/11/12 01:23:20, Scott Hess wrote: > https://codereview.chromium.org/1432953002 reverted my change > https://codereview.chromium.org/1426743006 > > ...
5 years, 1 month ago (2015-11-12 20:15:00 UTC) #8
michaeln
lgtm lgtm
5 years, 1 month ago (2015-11-13 00:03:54 UTC) #9
Scott Hess - ex-Googler
On 2015/11/13 00:03:54, michaeln wrote: > lgtm > > lgtm Thanks! Thanks!
5 years, 1 month ago (2015-11-13 00:10:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1434173003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1434173003/1
5 years, 1 month ago (2015-11-13 00:12:22 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 1 month ago (2015-11-13 00:41:15 UTC) #13
commit-bot: I haz the power
5 years, 1 month ago (2015-11-13 00:42:23 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f7e988ff06ac6ca527bc907410e1f6292534de89
Cr-Commit-Position: refs/heads/master@{#359452}

Powered by Google App Engine
This is Rietveld 408576698