Index: sql/test/scoped_error_ignorer.h |
diff --git a/sql/test/scoped_error_ignorer.h b/sql/test/scoped_error_ignorer.h |
index e77717999d0790fa768211cf2e2af905e21ef3e6..79559a1e38ce401817d0b2d1b83aa4ca37a9a587 100644 |
--- a/sql/test/scoped_error_ignorer.h |
+++ b/sql/test/scoped_error_ignorer.h |
@@ -10,6 +10,11 @@ |
#include "base/basictypes.h" |
#include "sql/connection.h" |
+// This is not strictly necessary for the operation of ScopedErrorIgnorer, but |
+// the class is not useful without the SQLite error codes. |
+#include "third_party/sqlite/sqlite3.h" |
+ |
+// TODO(shess): sql::test:: seems like it could be in order for this. |
namespace sql { |
// sql::Connection and sql::Statement treat most SQLite errors as |
@@ -43,6 +48,10 @@ class ScopedErrorIgnorer { |
// Record an error and check if it should be ignored. |
bool ShouldIgnore(int err); |
+ // Expose sqlite3_libversion_number() so that clients don't have to add a |
+ // dependency on third_party/sqlite. |
+ static int SQLiteLibVersionNumber(); |
+ |
private: |
// Storage for callback passed to Connection::SetErrorIgnorer(). |
Connection::ErrorIgnorerCallback callback_; |