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

Unified Diff: sql/connection.cc

Issue 17726002: [sql] Callback and scoped-ignore tests for sql::Statement. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test for whether curried values stay live. Created 7 years, 6 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
« no previous file with comments | « sql/connection.h ('k') | sql/connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.cc
diff --git a/sql/connection.cc b/sql/connection.cc
index e99b6bc53dacb8f0ab2569d5d6eb01245446be93..796f265dccafe8424165030b2250b9e2d6efca1c 100644
--- a/sql/connection.cc
+++ b/sql/connection.cc
@@ -801,7 +801,9 @@ int Connection::OnSqliteError(int err, sql::Statement *stmt) {
<< ": " << GetErrorMessage();
if (!error_callback_.is_null()) {
- error_callback_.Run(err, stmt);
+ // Fire from a copy of the callback in case of reentry into
erikwright (departed) 2013/07/05 19:16:55 I would argue that this is a bug in Callback. Sho
Scott Hess - ex-Googler 2013/07/08 21:15:35 I had logged http://crbug.com/254584 , but since I
+ // re/set_error_callback().
+ ErrorCallback(error_callback_).Run(err, stmt);
return err;
}
« no previous file with comments | « sql/connection.h ('k') | sql/connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698