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

Issue 40733003: [sql] Complain about statement mutations after stepping has started. (Closed)

Created:
7 years, 2 months ago by Scott Hess - ex-Googler
Modified:
7 years, 1 month ago
Reviewers:
Greg Billock
CC:
chromium-reviews
Visibility:
Public.

Description

[sql] Complain about statement mutations after stepping has started. DCHECK if any Bind*() calls occur after Step() has been called. The bind cannot be implemented at that point, so most likely the calling code has an error, such as a forgotted Reset(). Also DCHECK if Run() is called after Run() or Step() without an intervening Reset(). Such a calling sequence is unlikely to be intentional, because the results of calling Run() twice aren't defined. BUG=309759 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231098

Patch Set 1 #

Total comments: 3

Patch Set 2 : Oops, wrong one. #

Patch Set 3 : comment tweak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M sql/statement.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M sql/statement.cc View 1 11 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Scott Hess - ex-Googler
Earlier, I was thinking "Hey, this is sorta gross, maybe it could be dressed up ...
7 years, 2 months ago (2013-10-24 19:51:36 UTC) #1
Greg Billock
lgtm https://codereview.chromium.org/40733003/diff/1/sql/statement.cc File sql/statement.cc (right): https://codereview.chromium.org/40733003/diff/1/sql/statement.cc#newcode88 sql/statement.cc:88: bool Statement::Succeeded() const { On 2013/10/24 19:51:37, shess ...
7 years, 2 months ago (2013-10-24 21:49:50 UTC) #2
Scott Hess - ex-Googler
thanks! https://codereview.chromium.org/40733003/diff/1/sql/statement.cc File sql/statement.cc (right): https://codereview.chromium.org/40733003/diff/1/sql/statement.cc#newcode88 sql/statement.cc:88: bool Statement::Succeeded() const { On 2013/10/24 21:49:50, Greg ...
7 years, 1 month ago (2013-10-25 17:50:36 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/40733003/120001
7 years, 1 month ago (2013-10-25 17:51:55 UTC) #4
commit-bot: I haz the power
7 years, 1 month ago (2013-10-25 20:09:33 UTC) #5
Message was sent while issue was closed.
Change committed as 231098

Powered by Google App Engine
This is Rietveld 408576698