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

Unified Diff: app/sql/statement.cc

Issue 201099: Convert the sqlite cookie database and web database to use the new sqlite... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « app/sql/statement.h ('k') | chrome/browser/net/chrome_url_request_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/sql/statement.cc
===================================================================
--- app/sql/statement.cc (revision 26110)
+++ app/sql/statement.cc (working copy)
@@ -170,7 +170,7 @@
return result;
}
-int Statement::ColumnByteLength(int col) {
+int Statement::ColumnByteLength(int col) const {
if (!is_valid()) {
NOTREACHED();
return 0;
@@ -178,7 +178,7 @@
return sqlite3_column_bytes(ref_->stmt(), col);
}
-const void* Statement::ColumnBlob(int col) {
+const void* Statement::ColumnBlob(int col) const {
if (!is_valid()) {
NOTREACHED();
return NULL;
@@ -187,7 +187,7 @@
return sqlite3_column_blob(ref_->stmt(), col);
}
-void Statement::ColumnBlobAsVector(int col, std::vector<char>* val) {
+void Statement::ColumnBlobAsVector(int col, std::vector<char>* val) const {
val->clear();
if (!is_valid()) {
NOTREACHED();
@@ -202,6 +202,12 @@
}
}
+void Statement::ColumnBlobAsVector(
+ int col,
+ std::vector<unsigned char>* val) const {
+ ColumnBlobAsVector(col, reinterpret_cast< std::vector<char>* >(val));
+}
+
int Statement::CheckError(int err) {
succeeded_ = (err == SQLITE_OK || err == SQLITE_ROW || err == SQLITE_DONE);
« no previous file with comments | « app/sql/statement.h ('k') | chrome/browser/net/chrome_url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698