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

Unified Diff: sql/statement.cc

Issue 10171014: Changed to Reset(bool clear_bound_vars) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sql/statement.cc
diff --git a/sql/statement.cc b/sql/statement.cc
index 626c15b686989eec956ca175696680931d96aff4..d8893d4a7bd932512a376f6cb559947392d48351 100644
--- a/sql/statement.cc
+++ b/sql/statement.cc
@@ -73,6 +73,12 @@ void Statement::Reset() {
succeeded_ = false;
}
+void Statement::ResetWithoutClearingBoundVariables() {
+ if (is_valid()) {
+ sqlite3_reset(ref_->stmt());
+ }
+}
+
bool Statement::Succeeded() const {
if (!is_valid())
return false;
« sql/statement.h ('K') | « sql/statement.h ('k') | sql/statement_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698