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

Issue 10171014: Changed to Reset(bool clear_bound_vars) (Closed)

Created:
8 years, 8 months ago by michaelbai
Modified:
8 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Added parameter 'clear_bound_vars', so we could reset the statement without clearing bound variables, so and current row is reset to the beginning. It is used to support the Andorid' sqlite cursor feature which could move the cursor around the result set. BUG= TEST=Added a new test. TBR=agl,akalin,michaeln Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133985

Patch Set 1 #

Total comments: 3

Patch Set 2 : Used Reset(bool clear_bound_vars) #

Patch Set 3 : Fix mac build error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -34 lines) Patch
M chrome/browser/autocomplete/network_action_predictor_database.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/text_database.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/history/visitsegment_database.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/importer/firefox3_importer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/importer/safari_importer.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/sqlite_persistent_cookie_store.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/net/sqlite_server_bound_cert_store.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/webdata/autofill_table.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M sql/connection_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sql/statement.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M sql/statement.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M sql/statement_unittest.cc View 1 2 chunks +24 lines, -2 lines 0 comments Download
M sync/syncable/directory_backing_store.cc View 1 5 chunks +5 lines, -5 lines 0 comments Download
M webkit/appcache/appcache_database.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/appcache/appcache_database_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
michaelbai
8 years, 8 months ago (2012-04-20 23:10:16 UTC) #1
michaelbai
ping
8 years, 8 months ago (2012-04-24 17:15:58 UTC) #2
brettw
http://codereview.chromium.org/10171014/diff/1/sql/statement.h File sql/statement.h (right): http://codereview.chromium.org/10171014/diff/1/sql/statement.h#newcode96 sql/statement.h:96: void ResetWithoutClearingBoundVariables(); This name seems awkward and out of ...
8 years, 8 months ago (2012-04-24 23:12:30 UTC) #3
michaelbai
PTAL http://codereview.chromium.org/10171014/diff/1/sql/statement.h File sql/statement.h (right): http://codereview.chromium.org/10171014/diff/1/sql/statement.h#newcode96 sql/statement.h:96: void ResetWithoutClearingBoundVariables(); On 2012/04/24 23:12:30, brettw wrote: > ...
8 years, 8 months ago (2012-04-25 17:10:52 UTC) #4
brettw
lgtm
8 years, 8 months ago (2012-04-25 18:08:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/10171014/5001
8 years, 8 months ago (2012-04-25 18:11:23 UTC) #6
commit-bot: I haz the power
Presubmit check for 10171014-5001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-25 18:11:45 UTC) #7
brettw
I think you can TBR this change for the owners of those other dirs.
8 years, 8 months ago (2012-04-25 18:12:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/10171014/5001
8 years, 8 months ago (2012-04-25 18:22:54 UTC) #9
michaelbai
On 2012/04/25 18:12:32, brettw wrote: > I think you can TBR this change for the ...
8 years, 8 months ago (2012-04-25 18:23:55 UTC) #10
commit-bot: I haz the power
Try job failure for 10171014-5001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-25 18:44:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/10171014/7002
8 years, 8 months ago (2012-04-25 20:10:25 UTC) #12
commit-bot: I haz the power
Change committed as 133985
8 years, 8 months ago (2012-04-25 21:36:43 UTC) #13
Scott Hess - ex-Googler
8 years, 5 months ago (2012-07-03 00:34:34 UTC) #14
http://codereview.chromium.org/10171014/diff/1/sql/statement.h
File sql/statement.h (right):

http://codereview.chromium.org/10171014/diff/1/sql/statement.h#newcode96
sql/statement.h:96: void ResetWithoutClearingBoundVariables();
On 2012/04/24 23:12:30, brettw wrote:
> This name seems awkward and out of place. It looks like Reset is actually used
> very rarely. How about just adding a param to that?
>   void Reset(bool clear_bound_vars);

In my imagination, ResetWithoutClearingBoundVariables() would have been used
just about once, and then only in a case where someone nominally knew what they
were doing (not true of most Reset() callers).  So right now I'm having a
two-minute hate for this brettw person.

Powered by Google App Engine
This is Rietveld 408576698