OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "app/sql/meta_table.h" | 5 #include "sql/meta_table.h" |
6 | 6 |
7 #include "app/sql/connection.h" | |
8 #include "app/sql/statement.h" | |
9 #include "base/logging.h" | 7 #include "base/logging.h" |
10 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "sql/connection.h" |
| 10 #include "sql/statement.h" |
11 | 11 |
12 namespace sql { | 12 namespace sql { |
13 | 13 |
14 // Key used in our meta table for version numbers. | 14 // Key used in our meta table for version numbers. |
15 static const char kVersionKey[] = "version"; | 15 static const char kVersionKey[] = "version"; |
16 static const char kCompatibleVersionKey[] = "last_compatible_version"; | 16 static const char kCompatibleVersionKey[] = "last_compatible_version"; |
17 | 17 |
18 MetaTable::MetaTable() : db_(NULL) { | 18 MetaTable::MetaTable() : db_(NULL) { |
19 } | 19 } |
20 | 20 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 NOTREACHED() << db_->GetErrorMessage(); | 143 NOTREACHED() << db_->GetErrorMessage(); |
144 return false; | 144 return false; |
145 } | 145 } |
146 statement->BindCString(0, key); | 146 statement->BindCString(0, key); |
147 if (!statement->Step()) | 147 if (!statement->Step()) |
148 return false; | 148 return false; |
149 return true; | 149 return true; |
150 } | 150 } |
151 | 151 |
152 } // namespace sql | 152 } // namespace sql |
OLD | NEW |