OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/sqlite_utils.h" | 5 #include "chrome/common/sqlite_utils.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 | 10 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 const char* s = column_text(index); | 400 const char* s = column_text(index); |
401 str->assign(s ? UTF8ToWide(s) : std::wstring()); | 401 str->assign(s ? UTF8ToWide(s) : std::wstring()); |
402 return (s != NULL); | 402 return (s != NULL); |
403 } | 403 } |
404 | 404 |
405 std::wstring SQLStatement::column_wstring(int index) { | 405 std::wstring SQLStatement::column_wstring(int index) { |
406 std::wstring wstr; | 406 std::wstring wstr; |
407 column_wstring(index, &wstr); | 407 column_wstring(index, &wstr); |
408 return wstr; | 408 return wstr; |
409 } | 409 } |
| 410 |
| 411 #if defined(USE_SYSTEM_SQLITE) |
| 412 // This function is a local change to sqlite3 which doesn't exist when one is |
| 413 // using the system sqlite library. Thus, we stub it out here. |
| 414 int sqlite3Preload(sqlite3* db) { |
| 415 return 0; |
| 416 } |
| 417 #endif |
OLD | NEW |