db 1412 base/third_party/dmg_fp/dtoa.cc U da, db; db 1416 base/third_party/dmg_fp/dtoa.cc dval(&db) = b2d(b, &kb); db 1430 base/third_party/dmg_fp/dtoa.cc word0(&db) += (k >> 2)*Exp_msk1; db 1432 base/third_party/dmg_fp/dtoa.cc dval(&db) *= 1 << k; db 1439 base/third_party/dmg_fp/dtoa.cc word0(&db) += k*Exp_msk1; db 1442 base/third_party/dmg_fp/dtoa.cc return dval(&da) / dval(&db); db 170 chrome/browser/autocomplete/history_quick_provider_unittest.cc history_service_->history_backend_->db()); db 186 chrome/browser/autocomplete/history_quick_provider_unittest.cc sql::Connection& db(history_service_->history_backend_->db()->GetDB()); db 187 chrome/browser/autocomplete/history_quick_provider_unittest.cc ASSERT_TRUE(db.is_open()); db 196 chrome/browser/autocomplete/history_quick_provider_unittest.cc sql::Transaction transaction(&db); db 205 chrome/browser/autocomplete/history_quick_provider_unittest.cc sql::Statement sql_stmt(db.GetUniqueStatement(sql_cmd_line.c_str())); db 222 chrome/browser/autocomplete/history_quick_provider_unittest.cc sql::Statement sql_stmt(db.GetUniqueStatement(sql_cmd_line.c_str())); db 307 chrome/browser/autocomplete/history_url_provider.cc history::URLDatabase* db); db 327 chrome/browser/autocomplete/history_url_provider.cc history::URLDatabase* db) db 329 chrome/browser/autocomplete/history_url_provider.cc db_(db), db 475 chrome/browser/autocomplete/history_url_provider.cc history::URLDatabase* db, db 479 chrome/browser/autocomplete/history_url_provider.cc if (!db) { db 484 chrome/browser/autocomplete/history_url_provider.cc DoAutocomplete(backend, db, params); db 498 chrome/browser/autocomplete/history_url_provider.cc history::URLDatabase* db, db 500 chrome/browser/autocomplete/history_url_provider.cc VisitClassifier classifier(this, params->input, db); db 540 chrome/browser/autocomplete/history_url_provider.cc db->AutocompleteForPrefix( db 561 chrome/browser/autocomplete/history_url_provider.cc PromoteOrCreateShorterSuggestion(db, *params, have_what_you_typed_match, db 573 chrome/browser/autocomplete/history_url_provider.cc FixupExactSuggestion(db, params->input, classifier, &what_you_typed_match, db 779 chrome/browser/autocomplete/history_url_provider.cc history::URLDatabase* db, db 808 chrome/browser/autocomplete/history_url_provider.cc type = CanFindIntranetURL(db, input) ? db 858 chrome/browser/autocomplete/history_url_provider.cc history::URLDatabase* db, db 875 chrome/browser/autocomplete/history_url_provider.cc return registry_length == 0 && db->IsTypedHost(host); db 917 chrome/browser/autocomplete/history_url_provider.cc history::URLDatabase* db, db 967 chrome/browser/autocomplete/history_url_provider.cc if (!db->FindShortestURLFromBase(search_base.possibly_invalid_spec(), db 975 chrome/browser/autocomplete/history_url_provider.cc db->GetRowForURL(search_base, &info); db 186 chrome/browser/autocomplete/history_url_provider.h history::URLDatabase* db, db 192 chrome/browser/autocomplete/history_url_provider.h history::URLDatabase* db, db 232 chrome/browser/autocomplete/history_url_provider.h bool FixupExactSuggestion(history::URLDatabase* db, db 241 chrome/browser/autocomplete/history_url_provider.h bool CanFindIntranetURL(history::URLDatabase* db, db 257 chrome/browser/autocomplete/history_url_provider.h history::URLDatabase* db, db 258 chrome/browser/autocomplete/shortcuts_provider_unittest.cc void FillData(TestShortcutInfo* db, size_t db_size); db 313 chrome/browser/autocomplete/shortcuts_provider_unittest.cc void ShortcutsProviderTest::FillData(TestShortcutInfo* db, size_t db_size) { db 317 chrome/browser/autocomplete/shortcuts_provider_unittest.cc const TestShortcutInfo& cur = db[i]; db 85 chrome/browser/browsing_data/browsing_data_database_helper.cc for (std::vector<base::string16>::const_iterator db = databases.begin(); db 86 chrome/browser/browsing_data/browsing_data_database_helper.cc db != databases.end(); ++db) { db 88 chrome/browser/browsing_data/browsing_data_database_helper.cc tracker_->GetFullDBFilePath(ori->GetOriginIdentifier(), *db); db 93 chrome/browser/browsing_data/browsing_data_database_helper.cc base::UTF16ToUTF8(*db), db 94 chrome/browser/browsing_data/browsing_data_database_helper.cc base::UTF16ToUTF8(ori->GetDatabaseDescription(*db)), db 133 chrome/browser/browsing_data/browsing_data_database_helper_browsertest.cc const char db[] = "db1"; db 137 chrome/browser/browsing_data/browsing_data_database_helper_browsertest.cc helper->AddDatabase(origin, db, std::string()); db 138 chrome/browser/browsing_data/browsing_data_database_helper_browsertest.cc helper->AddDatabase(origin, db, std::string()); db 150 chrome/browser/browsing_data/browsing_data_database_helper_browsertest.cc EXPECT_STREQ(db, result.begin()->database_name.c_str()); db 24 chrome/browser/browsing_data/browsing_data_database_helper_unittest.cc const char db[] = "db1"; db 30 chrome/browser/browsing_data/browsing_data_database_helper_unittest.cc helper->AddDatabase(origin, db, std::string()); db 69 chrome/browser/browsing_data/browsing_data_database_helper_unittest.cc const char db[] = "db1"; db 75 chrome/browser/browsing_data/browsing_data_database_helper_unittest.cc helper->AddDatabase(origin1, db, std::string()); db 77 chrome/browser/browsing_data/browsing_data_database_helper_unittest.cc helper->AddDatabase(origin2, db, std::string()); db 307 chrome/browser/chromeos/drive/resource_metadata_storage.cc leveldb::DB* db = NULL; db 311 chrome/browser/chromeos/drive/resource_metadata_storage.cc if (!leveldb::DB::Open(options, resource_map_path.AsUTF8Unsafe(), &db).ok()) db 313 chrome/browser/chromeos/drive/resource_metadata_storage.cc scoped_ptr<leveldb::DB> resource_map(db); db 424 chrome/browser/chromeos/drive/resource_metadata_storage.cc leveldb::DB* db = NULL; db 432 chrome/browser/chromeos/drive/resource_metadata_storage.cc status = leveldb::DB::Open(options, resource_map_path.AsUTF8Unsafe(), &db); db 437 chrome/browser/chromeos/drive/resource_metadata_storage.cc resource_map_.reset(db); db 480 chrome/browser/chromeos/drive/resource_metadata_storage.cc status = leveldb::DB::Open(options, resource_map_path.AsUTF8Unsafe(), &db); db 482 chrome/browser/chromeos/drive/resource_metadata_storage.cc resource_map_.reset(db); db 526 chrome/browser/chromeos/drive/resource_metadata_storage.cc leveldb::DB* db = NULL; db 528 chrome/browser/chromeos/drive/resource_metadata_storage.cc &db); db 533 chrome/browser/chromeos/drive/resource_metadata_storage.cc scoped_ptr<leveldb::DB> resource_map(db); db 48 chrome/browser/dom_distiller/dom_distiller_service_factory.cc scoped_ptr<DomDistillerDatabase> db( db 55 chrome/browser/dom_distiller/dom_distiller_service_factory.cc db.PassAs<DomDistillerDatabaseInterface>(), database_dir)); db 203 chrome/browser/extensions/activity_log/activity_database.cc bool ActivityDatabase::InitializeTable(sql::Connection* db, db 208 chrome/browser/extensions/activity_log/activity_database.cc if (!db->DoesTableExist(table_name)) { db 218 chrome/browser/extensions/activity_log/activity_database.cc if (!db->Execute(table_creator.c_str())) db 224 chrome/browser/extensions/activity_log/activity_database.cc if (!db->DoesColumnExist(table_name, content_fields[i])) { db 230 chrome/browser/extensions/activity_log/activity_database.cc if (!db->Execute(table_updater.c_str())) db 78 chrome/browser/extensions/activity_log/activity_database.h virtual bool InitDatabase(sql::Connection* db) = 0; db 84 chrome/browser/extensions/activity_log/activity_database.h virtual bool FlushDatabase(sql::Connection* db) = 0; db 134 chrome/browser/extensions/activity_log/activity_database.h static bool InitializeTable(sql::Connection* db, db 53 chrome/browser/extensions/activity_log/activity_database_unittest.cc virtual void Record(ActivityDatabase* db, scoped_refptr<Action> action); db 56 chrome/browser/extensions/activity_log/activity_database_unittest.cc virtual bool InitDatabase(sql::Connection* db) OVERRIDE; db 70 chrome/browser/extensions/activity_log/activity_database_unittest.cc bool ActivityDatabaseTestPolicy::InitDatabase(sql::Connection* db) { db 71 chrome/browser/extensions/activity_log/activity_database_unittest.cc return ActivityDatabase::InitializeTable(db, db 78 chrome/browser/extensions/activity_log/activity_database_unittest.cc bool ActivityDatabaseTestPolicy::FlushDatabase(sql::Connection* db) { db 86 chrome/browser/extensions/activity_log/activity_database_unittest.cc sql::Statement statement(db->GetCachedStatement( db 102 chrome/browser/extensions/activity_log/activity_database_unittest.cc void ActivityDatabaseTestPolicy::Record(ActivityDatabase* db, db 105 chrome/browser/extensions/activity_log/activity_database_unittest.cc db->AdviseFlush(queue_.size()); db 143 chrome/browser/extensions/activity_log/activity_database_unittest.cc void Record(ActivityDatabase* db, scoped_refptr<Action> action) { db 144 chrome/browser/extensions/activity_log/activity_database_unittest.cc db_delegate_->Record(db, action); db 147 chrome/browser/extensions/activity_log/activity_database_unittest.cc int CountActions(sql::Connection* db, const std::string& api_name_pattern) { db 148 chrome/browser/extensions/activity_log/activity_database_unittest.cc if (!db->DoesTableExist(ActivityDatabaseTestPolicy::kTableName)) db 153 chrome/browser/extensions/activity_log/activity_database_unittest.cc sql::Statement statement(db->GetCachedStatement( db 182 chrome/browser/extensions/activity_log/activity_database_unittest.cc sql::Connection db; db 183 chrome/browser/extensions/activity_log/activity_database_unittest.cc ASSERT_TRUE(db.Open(db_file)); db 184 chrome/browser/extensions/activity_log/activity_database_unittest.cc ASSERT_TRUE(db.DoesTableExist(ActivityDatabaseTestPolicy::kTableName)); db 185 chrome/browser/extensions/activity_log/activity_database_unittest.cc db.Close(); db 202 chrome/browser/extensions/activity_log/activity_database_unittest.cc sql::Connection db; db 203 chrome/browser/extensions/activity_log/activity_database_unittest.cc ASSERT_TRUE(db.Open(db_file)); db 205 chrome/browser/extensions/activity_log/activity_database_unittest.cc ASSERT_EQ(1, CountActions(&db, "brewster")); db 165 chrome/browser/extensions/activity_log/activity_log_policy.cc bool ActivityLogPolicy::Util::DropObsoleteTables(sql::Connection* db) { db 168 chrome/browser/extensions/activity_log/activity_log_policy.cc if (db->DoesTableExist(table_name)) { db 171 chrome/browser/extensions/activity_log/activity_log_policy.cc if (!db->Execute(drop_statement.c_str())) { db 124 chrome/browser/extensions/activity_log/activity_log_policy.h static bool DropObsoleteTables(sql::Connection* db); db 197 chrome/browser/extensions/activity_log/activity_log_policy.h void ScheduleAndForget(DatabaseType db, DatabaseFunc func) { db 201 chrome/browser/extensions/activity_log/activity_log_policy.h base::Bind(func, base::Unretained(db))); db 205 chrome/browser/extensions/activity_log/activity_log_policy.h void ScheduleAndForget(DatabaseType db, DatabaseFunc func, ArgA a) { db 209 chrome/browser/extensions/activity_log/activity_log_policy.h base::Bind(func, base::Unretained(db), a)); db 214 chrome/browser/extensions/activity_log/activity_log_policy.h void ScheduleAndForget(DatabaseType db, DatabaseFunc func, ArgA a, ArgB b) { db 218 chrome/browser/extensions/activity_log/activity_log_policy.h base::Bind(func, base::Unretained(db), a, b)); db 175 chrome/browser/extensions/activity_log/counting_policy.cc bool CountingPolicy::InitDatabase(sql::Connection* db) { db 176 chrome/browser/extensions/activity_log/counting_policy.cc if (!Util::DropObsoleteTables(db)) db 179 chrome/browser/extensions/activity_log/counting_policy.cc if (!string_table_.Initialize(db)) db 181 chrome/browser/extensions/activity_log/counting_policy.cc if (!url_table_.Initialize(db)) db 185 chrome/browser/extensions/activity_log/counting_policy.cc if (!ActivityDatabase::InitializeTable(db, db 194 chrome/browser/extensions/activity_log/counting_policy.cc return db->Execute(kPolicyMiscSetup); db 231 chrome/browser/extensions/activity_log/counting_policy.cc bool CountingPolicy::FlushDatabase(sql::Connection* db) { db 250 chrome/browser/extensions/activity_log/counting_policy.cc sql::Transaction transaction(db); db 297 chrome/browser/extensions/activity_log/counting_policy.cc if (!string_table_.StringToInt(db, action.extension_id(), &id)) db 303 chrome/browser/extensions/activity_log/counting_policy.cc if (!string_table_.StringToInt(db, action.api_name(), &id)) db 316 chrome/browser/extensions/activity_log/counting_policy.cc if (!string_table_.StringToInt(db, args, &id)) db 325 chrome/browser/extensions/activity_log/counting_policy.cc if (!url_table_.StringToInt(db, page_url_string, &id)) db 334 chrome/browser/extensions/activity_log/counting_policy.cc if (!string_table_.StringToInt(db, action.page_title(), &id)) db 343 chrome/browser/extensions/activity_log/counting_policy.cc if (!url_table_.StringToInt(db, arg_url_string, &id)) db 351 chrome/browser/extensions/activity_log/counting_policy.cc if (!string_table_.StringToInt(db, Util::Serialize(action.other()), &id)) db 360 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement locate_statement(db->GetCachedStatement( db 379 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement update_statement(db->GetCachedStatement( db 388 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement insert_statement(db->GetCachedStatement( db 408 chrome/browser/extensions/activity_log/counting_policy.cc if (!CleanOlderThan(db, cutoff)) db 431 chrome/browser/extensions/activity_log/counting_policy.cc sql::Connection* db = GetDatabaseConnection(); db 432 chrome/browser/extensions/activity_log/counting_policy.cc if (!db) db 468 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement query(db->GetUniqueStatement(query_str.c_str())); db 528 chrome/browser/extensions/activity_log/counting_policy.cc sql::Connection* db = GetDatabaseConnection(); db 529 chrome/browser/extensions/activity_log/counting_policy.cc if (!db) { db 537 chrome/browser/extensions/activity_log/counting_policy.cc sql::Transaction transaction(db); db 543 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement statement(db->GetCachedStatement( db 555 chrome/browser/extensions/activity_log/counting_policy.cc CleanStringTables(db); db 563 chrome/browser/extensions/activity_log/counting_policy.cc sql::Connection* db = GetDatabaseConnection(); db 564 chrome/browser/extensions/activity_log/counting_policy.cc if (!db) { db 579 chrome/browser/extensions/activity_log/counting_policy.cc statement.Assign(db->GetCachedStatement( db 593 chrome/browser/extensions/activity_log/counting_policy.cc !url_table_.StringToInt(db, restrict_urls[i].spec(), &url_id)) { db 603 chrome/browser/extensions/activity_log/counting_policy.cc statement.Assign(db->GetCachedStatement( db 617 chrome/browser/extensions/activity_log/counting_policy.cc statement.Assign(db->GetCachedStatement( db 631 chrome/browser/extensions/activity_log/counting_policy.cc CleanStringTables(db); db 638 chrome/browser/extensions/activity_log/counting_policy.cc sql::Connection* db = GetDatabaseConnection(); db 639 chrome/browser/extensions/activity_log/counting_policy.cc if (!db) { db 650 chrome/browser/extensions/activity_log/counting_policy.cc db->GetCachedStatement(sql::StatementID(SQL_FROM_HERE), sql_str.c_str())); db 652 chrome/browser/extensions/activity_log/counting_policy.cc if (string_table_.StringToInt(db, extension_id, &id)) { db 665 chrome/browser/extensions/activity_log/counting_policy.cc CleanStringTables(db); db 669 chrome/browser/extensions/activity_log/counting_policy.cc sql::Connection* db = GetDatabaseConnection(); db 670 chrome/browser/extensions/activity_log/counting_policy.cc if (!db) { db 680 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement statement(db->GetCachedStatement( db 690 chrome/browser/extensions/activity_log/counting_policy.cc statement.Assign(db->GetCachedStatement(sql::StatementID(SQL_FROM_HERE), db 699 chrome/browser/extensions/activity_log/counting_policy.cc statement.Assign(db->GetCachedStatement(sql::StatementID(SQL_FROM_HERE), db 707 chrome/browser/extensions/activity_log/counting_policy.cc statement.Assign(db->GetCachedStatement(sql::StatementID(SQL_FROM_HERE), db 763 chrome/browser/extensions/activity_log/counting_policy.cc bool CountingPolicy::CleanOlderThan(sql::Connection* db, db 767 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement cleaner(db->GetCachedStatement(sql::StatementID(SQL_FROM_HERE), db 772 chrome/browser/extensions/activity_log/counting_policy.cc return CleanStringTables(db); db 777 chrome/browser/extensions/activity_log/counting_policy.cc bool CountingPolicy::CleanStringTables(sql::Connection* db) { db 778 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement cleaner1(db->GetCachedStatement( db 782 chrome/browser/extensions/activity_log/counting_policy.cc if (db->GetLastChangeCount() > 0) db 785 chrome/browser/extensions/activity_log/counting_policy.cc sql::Statement cleaner2(db->GetCachedStatement( db 789 chrome/browser/extensions/activity_log/counting_policy.cc if (db->GetLastChangeCount() > 0) db 68 chrome/browser/extensions/activity_log/counting_policy.h virtual bool InitDatabase(sql::Connection* db) OVERRIDE; db 69 chrome/browser/extensions/activity_log/counting_policy.h virtual bool FlushDatabase(sql::Connection* db) OVERRIDE; db 113 chrome/browser/extensions/activity_log/counting_policy.h bool CleanOlderThan(sql::Connection* db, const base::Time& cutoff); db 117 chrome/browser/extensions/activity_log/counting_policy.h bool CleanStringTables(sql::Connection* db); db 131 chrome/browser/extensions/activity_log/counting_policy_unittest.cc sql::Connection* db = policy->GetDatabaseConnection(); db 132 chrome/browser/extensions/activity_log/counting_policy_unittest.cc sql::Statement statement1(db->GetCachedStatement( db 137 chrome/browser/extensions/activity_log/counting_policy_unittest.cc sql::Statement statement2(db->GetCachedStatement( db 55 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc bool FullStreamUIPolicy::InitDatabase(sql::Connection* db) { db 56 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc if (!Util::DropObsoleteTables(db)) db 60 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc return ActivityDatabase::InitializeTable(db, db 67 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc bool FullStreamUIPolicy::FlushDatabase(sql::Connection* db) { db 71 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Transaction transaction(db); db 79 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Statement statement(db->GetCachedStatement( db 133 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Connection* db = GetDatabaseConnection(); db 134 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc if (!db) { db 168 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Statement query(db->GetUniqueStatement(query_str.c_str())); db 227 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Connection* db = GetDatabaseConnection(); db 228 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc if (!db) { db 236 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Transaction transaction(db); db 242 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Statement statement(db->GetCachedStatement( db 260 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Connection* db = GetDatabaseConnection(); db 261 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc if (!db) { db 275 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc statement.Assign(db->GetCachedStatement( db 296 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc statement.Assign(db->GetCachedStatement( db 309 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc statement.Assign(db->GetCachedStatement( db 326 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Connection* db = GetDatabaseConnection(); db 327 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc if (!db) { db 339 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc db->GetCachedStatement(sql::StatementID(SQL_FROM_HERE), sql_str.c_str())); db 349 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Connection* db = GetDatabaseConnection(); db 350 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc if (!db) { db 360 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc sql::Statement statement(db->GetCachedStatement( db 368 chrome/browser/extensions/activity_log/fullstream_ui_policy.cc statement.Assign(db->GetCachedStatement(sql::StatementID(SQL_FROM_HERE), db 68 chrome/browser/extensions/activity_log/fullstream_ui_policy.h virtual bool InitDatabase(sql::Connection* db) OVERRIDE; db 69 chrome/browser/extensions/activity_log/fullstream_ui_policy.h virtual bool FlushDatabase(sql::Connection* db) OVERRIDE; db 47 chrome/browser/history/android/android_urls_database_unittest.cc HistoryDatabase db; db 48 chrome/browser/history/android/android_urls_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(history_db_name_)); db 51 chrome/browser/history/android/android_urls_database_unittest.cc EXPECT_FALSE(db.GetDB().DoesColumnExist("android_urls", "bookmark")); db 52 chrome/browser/history/android/android_urls_database_unittest.cc sql::Statement statement(db.GetDB().GetUniqueStatement( db 119 chrome/browser/history/delete_directive_handler.cc history::HistoryDatabase* db) OVERRIDE; db 146 chrome/browser/history/delete_directive_handler.cc history::HistoryDatabase* db) { db 49 chrome/browser/history/expire_history_backend.cc virtual bool Read(Time end_time, HistoryDatabase* db, db 51 chrome/browser/history/expire_history_backend.cc DCHECK(db) << "must have a database to operate upon"; db 54 chrome/browser/history/expire_history_backend.cc db->GetAllVisitsInRange(Time(), end_time, max_visits, visits); db 69 chrome/browser/history/expire_history_backend.cc virtual bool Read(Time end_time, HistoryDatabase* db, db 71 chrome/browser/history/expire_history_backend.cc DCHECK(db) << "must have a database to operate upon"; db 74 chrome/browser/history/expire_history_backend.cc Time begin_time = db->GetEarlyExpirationThreshold(); db 85 chrome/browser/history/expire_history_backend.cc db->GetVisitsInRangeForTransition(begin_time, early_end_time, db 91 chrome/browser/history/expire_history_backend.cc db->UpdateEarlyExpirationThreshold(early_end_time); db 53 chrome/browser/history/expire_history_backend.h virtual bool Read(base::Time end_time, HistoryDatabase* db, db 460 chrome/browser/history/history_backend.h HistoryDatabase* db() const { return db_.get(); } db 206 chrome/browser/history/history_backend_unittest.cc URLID id = backend_->db()->GetRowForURL(url, &row); db 208 chrome/browser/history/history_backend_unittest.cc EXPECT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 727 chrome/browser/history/history_backend_unittest.cc URLID url_id = backend_->db()->GetRowForURL(url, &row); db 735 chrome/browser/history/history_backend_unittest.cc EXPECT_EQ(0, backend_->db()->GetSegmentNamed(segment_name)); db 739 chrome/browser/history/history_backend_unittest.cc EXPECT_TRUE(backend_->db()->GetVisitsForURL(url_id, &visits)); db 746 chrome/browser/history/history_backend_unittest.cc backend_->db()->GetVisibleVisitsInRange(query_options, &visits); db 756 chrome/browser/history/history_backend_unittest.cc EXPECT_TRUE(backend_->db()->GetVisitsForURL(url_id, &visits)); db 760 chrome/browser/history/history_backend_unittest.cc ASSERT_EQ(0, backend_->db()->GetRowForURL(url, &row)); db 1005 chrome/browser/history/history_backend_unittest.cc URLID id = backend_->db()->GetRowForURL(url, &row); db 1006 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 1044 chrome/browser/history/history_backend_unittest.cc URLID id = backend_->db()->GetRowForURL(url1, &row); db 1045 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 1052 chrome/browser/history/history_backend_unittest.cc id = backend_->db()->GetRowForURL(url2, &row); db 1053 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 1084 chrome/browser/history/history_backend_unittest.cc URLID id = backend_->db()->GetRowForURL(url1, &row); db 1085 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetMostRecentVisitsForURL(id, 1, &visits)); db 1117 chrome/browser/history/history_backend_unittest.cc URLID id = backend_->db()->GetRowForURL(url1, &row); db 1118 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 1125 chrome/browser/history/history_backend_unittest.cc id = backend_->db()->GetRowForURL(url1, &row); db 1126 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 1134 chrome/browser/history/history_backend_unittest.cc id = backend_->db()->GetRowForURL(url1, &row); db 1135 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 1142 chrome/browser/history/history_backend_unittest.cc ASSERT_EQ(0, backend_->db()->GetRowForURL(url1, &row)); db 1172 chrome/browser/history/history_backend_unittest.cc URLID id = backend_->db()->GetRowForURL(url1, &row); db 1173 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 1182 chrome/browser/history/history_backend_unittest.cc id = backend_->db()->GetRowForURL(url2, &row); db 1183 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(id, &visits)); db 1221 chrome/browser/history/history_backend_unittest.cc sql::Connection db; db 1222 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(db.Open(new_history_file)); db 1223 chrome/browser/history/history_backend_unittest.cc sql::Statement s(db.GetUniqueStatement( db 1230 chrome/browser/history/history_backend_unittest.cc s.Assign(db.GetUniqueStatement( db 1233 chrome/browser/history/history_backend_unittest.cc s.Assign(db.GetUniqueStatement("SELECT * FROM visit_source LIMIT 10")); db 2513 chrome/browser/history/history_backend_unittest.cc URLID url_id1 = backend_->db()->GetRowForURL(url1, &row); db 2514 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(url_id1, &visits1)); db 2518 chrome/browser/history/history_backend_unittest.cc URLID url_id2 = backend_->db()->GetRowForURL(url2, &row); db 2519 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(url_id2, &visits2)); db 2527 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->GetVisitsForURL(url_id1, &visits1)); db 2572 chrome/browser/history/history_backend_unittest.cc sql::Connection db; db 2573 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(db.Open(new_history_file)); db 2574 chrome/browser/history/history_backend_unittest.cc sql::Statement s(db.GetUniqueStatement( db 2581 chrome/browser/history/history_backend_unittest.cc s.Assign(db.GetUniqueStatement( db 2700 chrome/browser/history/history_backend_unittest.cc backend_->db()->GetAllVisitsInRange(base::Time(), base::Time(), 0, &visits); db 2709 chrome/browser/history/history_backend_unittest.cc backend_->db()->GetAllVisitsInRange(base::Time(), base::Time(), 0, &visits); db 2716 chrome/browser/history/history_backend_unittest.cc backend_->db()->GetAllVisitsInRange(base::Time(), base::Time(), 0, &visits); db 2733 chrome/browser/history/history_backend_unittest.cc backend_->db()->GetAllVisitsInRange(base::Time(), base::Time(), 0, &visits); db 2745 chrome/browser/history/history_backend_unittest.cc const URLID url1_id = backend_->db()->AddURL(url_info1); db 2750 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->SetKeywordSearchTermsForURL( db 2759 chrome/browser/history/history_backend_unittest.cc const URLID url2_id = backend_->db()->AddURL(url_info2); db 2763 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->SetKeywordSearchTermsForURL( db 2772 chrome/browser/history/history_backend_unittest.cc const URLID url3_id = backend_->db()->AddURL(url_info3); db 2774 chrome/browser/history/history_backend_unittest.cc ASSERT_TRUE(backend_->db()->SetKeywordSearchTermsForURL( db 2782 chrome/browser/history/history_backend_unittest.cc EXPECT_TRUE(backend_->db()->GetURLRow(url1_id, &row)); db 2784 chrome/browser/history/history_backend_unittest.cc EXPECT_FALSE(backend_->db()->GetURLRow(url2_id, &row)); db 2785 chrome/browser/history/history_backend_unittest.cc EXPECT_FALSE(backend_->db()->GetURLRow(url3_id, &row)); db 2789 chrome/browser/history/history_backend_unittest.cc EXPECT_TRUE(backend_->db()->GetKeywordSearchTermRow(url1_id, NULL)); db 2790 chrome/browser/history/history_backend_unittest.cc EXPECT_FALSE(backend_->db()->GetKeywordSearchTermRow(url2_id, NULL)); db 2791 chrome/browser/history/history_backend_unittest.cc EXPECT_FALSE(backend_->db()->GetKeywordSearchTermRow(url3_id, NULL)); db 47 chrome/browser/history/history_browsertest.cc history::HistoryDatabase* db) OVERRIDE { db 54 chrome/browser/history/history_database.h explicit TransactionScoper(HistoryDatabase* db) : db_(db) { db 27 chrome/browser/history/history_db_task.h virtual bool RunOnDBThread(HistoryBackend* backend, HistoryDatabase* db) = 0; db 294 chrome/browser/history/history_service.cc return in_memory_backend_ ? in_memory_backend_->db() : NULL; db 1174 chrome/browser/history/history_service.cc history::URLDatabase* db = InMemoryDatabase(); db 1175 chrome/browser/history/history_service.cc return db && (db->GetRowForURL(url, url_row) != 0); db 270 chrome/browser/history/history_unittest.cc sql::Connection db; db 271 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 276 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 300 chrome/browser/history/history_unittest.cc sql::Connection db; db 301 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 306 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 312 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 338 chrome/browser/history/history_unittest.cc sql::Connection db; db 339 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 342 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 381 chrome/browser/history/history_unittest.cc sql::Connection db; db 382 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 387 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 396 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 426 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 448 chrome/browser/history/history_unittest.cc sql::Connection db; db 449 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 450 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 472 chrome/browser/history/history_unittest.cc sql::Connection db; db 473 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 478 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 484 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 496 chrome/browser/history/history_unittest.cc sql::Connection db; db 497 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 499 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 519 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 534 chrome/browser/history/history_unittest.cc sql::Connection db; db 535 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 540 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 546 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 559 chrome/browser/history/history_unittest.cc sql::Connection db; db 560 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 562 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 584 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 599 chrome/browser/history/history_unittest.cc sql::Connection db; db 600 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 605 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 611 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 635 chrome/browser/history/history_unittest.cc sql::Connection db; db 636 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 637 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 642 chrome/browser/history/history_unittest.cc sql::Statement statement1(db.GetUniqueStatement( db 654 chrome/browser/history/history_unittest.cc sql::Connection db; db 655 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 656 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 661 chrome/browser/history/history_unittest.cc sql::Statement statement1(db.GetUniqueStatement( db 699 chrome/browser/history/history_unittest.cc sql::Connection db; db 700 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 701 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 713 chrome/browser/history/history_unittest.cc sql::Connection db; db 714 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 716 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 736 chrome/browser/history/history_unittest.cc sql::Connection db; db 737 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 738 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 743 chrome/browser/history/history_unittest.cc sql::Statement statement1(db.GetUniqueStatement( db 766 chrome/browser/history/history_unittest.cc sql::Connection db; db 767 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 768 chrome/browser/history/history_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 773 chrome/browser/history/history_unittest.cc sql::Statement statement1(db.GetUniqueStatement( db 1489 chrome/browser/history/history_unittest.cc HistoryDatabase* db) OVERRIDE { db 1780 chrome/browser/history/history_unittest.cc sql::Connection db; db 1781 chrome/browser/history/history_unittest.cc ASSERT_TRUE(db.Open(history_dir_.Append(chrome::kHistoryFilename))); db 1785 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 1798 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 1811 chrome/browser/history/history_unittest.cc sql::Statement s(db.GetUniqueStatement( db 31 chrome/browser/history/in_memory_history_backend.cc URLDatabase* db) { db 49 chrome/browser/history/in_memory_history_backend.h bool Init(const base::FilePath& history_filename, URLDatabase* db); db 59 chrome/browser/history/in_memory_history_backend.h InMemoryDatabase* db() const { db 72 chrome/browser/history/in_memory_url_index.cc HistoryDatabase* db) { db 73 chrome/browser/history/in_memory_url_index.cc data_ = URLIndexPrivateData::RebuildFromHistory(db, languages_, db 162 chrome/browser/history/in_memory_url_index.h history::HistoryDatabase* db) OVERRIDE; db 199 chrome/browser/history/in_memory_url_index_unittest.cc history_database_ = backend->db(); db 213 chrome/browser/history/in_memory_url_index_unittest.cc sql::Connection& db(GetDB()); db 214 chrome/browser/history/in_memory_url_index_unittest.cc ASSERT_TRUE(db.is_open()); db 216 chrome/browser/history/in_memory_url_index_unittest.cc sql::Transaction transaction(&db); db 225 chrome/browser/history/in_memory_url_index_unittest.cc sql::Statement sql_stmt(db.GetUniqueStatement(sql_cmd_line)); db 235 chrome/browser/history/in_memory_url_index_unittest.cc sql::Statement statement(db.GetUniqueStatement( db 241 chrome/browser/history/in_memory_url_index_unittest.cc sql::Transaction transaction(&db); db 257 chrome/browser/history/in_memory_url_index_unittest.cc statement.Assign(db.GetUniqueStatement( db 261 chrome/browser/history/in_memory_url_index_unittest.cc sql::Transaction transaction(&db); db 51 chrome/browser/history/shortcuts_database.cc sql::Connection& db) { db 52 chrome/browser/history/shortcuts_database.cc sql::Statement s(db.GetUniqueStatement( db 243 chrome/browser/history/shortcuts_database_unittest.cc scoped_refptr<ShortcutsDatabase> db(new ShortcutsDatabase(db_path)); db 244 chrome/browser/history/shortcuts_database_unittest.cc db->Init(); db 286 chrome/browser/history/shortcuts_database_unittest.cc scoped_refptr<ShortcutsDatabase> db(new ShortcutsDatabase(db_path)); db 287 chrome/browser/history/shortcuts_database_unittest.cc db->Init(); db 127 chrome/browser/history/thumbnail_database.cc void ReportCorrupt(sql::Connection* db, size_t startup_kb) { db 143 chrome/browser/history/thumbnail_database.cc db->FullIntegrityCheck(&messages); db 164 chrome/browser/history/thumbnail_database.cc void ReportError(sql::Connection* db, int error) { db 172 chrome/browser/history/thumbnail_database.cc db->GetErrorCode(), db->GetErrorMessage()); db 175 chrome/browser/history/thumbnail_database.cc base::StringAppendF(&debug_info, "errno: %d\n", db->GetLastErrno()); db 181 chrome/browser/history/thumbnail_database.cc if (db->IsSQLValid(kVersionSql)) { db 182 chrome/browser/history/thumbnail_database.cc sql::Statement statement(db->GetUniqueStatement(kVersionSql)); db 209 chrome/browser/history/thumbnail_database.cc sql::Statement statement(db->GetUniqueStatement(kSchemaSql)); db 229 chrome/browser/history/thumbnail_database.cc void GenerateDiagnostics(sql::Connection* db, db 254 chrome/browser/history/thumbnail_database.cc ReportCorrupt(db, startup_kb); db 261 chrome/browser/history/thumbnail_database.cc ReportError(db, extended_error); db 273 chrome/browser/history/thumbnail_database.cc ReportError(db, extended_error); db 281 chrome/browser/history/thumbnail_database.cc bool InitTables(sql::Connection* db) { db 289 chrome/browser/history/thumbnail_database.cc if (!db->Execute(kIconMappingSql)) db 300 chrome/browser/history/thumbnail_database.cc if (!db->Execute(kFaviconsSql)) db 313 chrome/browser/history/thumbnail_database.cc if (!db->Execute(kFaviconBitmapsSql)) db 322 chrome/browser/history/thumbnail_database.cc bool InitIndices(sql::Connection* db) { db 329 chrome/browser/history/thumbnail_database.cc if (!db->Execute(kIconMappingUrlIndexSql) || db 330 chrome/browser/history/thumbnail_database.cc !db->Execute(kIconMappingIdIndexSql)) { db 336 chrome/browser/history/thumbnail_database.cc if (!db->Execute(kFaviconsIndexSql)) db 342 chrome/browser/history/thumbnail_database.cc if (!db->Execute(kFaviconBitmapsIndexSql)) db 393 chrome/browser/history/thumbnail_database.cc void RecoverDatabaseOrRaze(sql::Connection* db, const base::FilePath& db_path) { db 400 chrome/browser/history/thumbnail_database.cc db->reset_error_callback(); db 409 chrome/browser/history/thumbnail_database.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(db, db_path); db 459 chrome/browser/history/thumbnail_database.cc if (!recover_meta_table.Init(recovery->db(), kCurrentVersionNumber, db 469 chrome/browser/history/thumbnail_database.cc if (!InitTables(recovery->db()) || !InitIndices(recovery->db())) { db 542 chrome/browser/history/thumbnail_database.cc void DatabaseErrorCallback(sql::Connection* db, db 557 chrome/browser/history/thumbnail_database.cc GenerateDiagnostics(db, startup_kb, extended_error); db 565 chrome/browser/history/thumbnail_database.cc RecoverDatabaseOrRaze(db, db_path); db 570 chrome/browser/history/thumbnail_database.cc DLOG(FATAL) << db->GetErrorMessage(); db 1128 chrome/browser/history/thumbnail_database.cc sql::InitStatus ThumbnailDatabase::OpenDatabase(sql::Connection* db, db 1135 chrome/browser/history/thumbnail_database.cc db->set_histogram_tag("Thumbnail"); db 1136 chrome/browser/history/thumbnail_database.cc db->set_error_callback(base::Bind(&DatabaseErrorCallback, db 1137 chrome/browser/history/thumbnail_database.cc db, db_name, startup_kb)); db 1141 chrome/browser/history/thumbnail_database.cc db->set_page_size(2048); db 1142 chrome/browser/history/thumbnail_database.cc db->set_cache_size(32); db 1146 chrome/browser/history/thumbnail_database.cc db->set_exclusive_locking(); db 1148 chrome/browser/history/thumbnail_database.cc if (!db->Open(db_name)) db 245 chrome/browser/history/thumbnail_database.h static sql::InitStatus OpenDatabase(sql::Connection* db, db 67 chrome/browser/history/thumbnail_database_unittest.cc void VerifyTablesAndColumns(sql::Connection* db) { db 69 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_EQ(4u, sql::test::CountSQLTables(db)); db 73 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_EQ(5u, sql::test::CountSQLIndices(db)); db 76 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_EQ(2u, sql::test::CountTableColumns(db, "meta")); db 79 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_EQ(3u, sql::test::CountTableColumns(db, "favicons")); db 82 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_EQ(6u, sql::test::CountTableColumns(db, "favicon_bitmaps")); db 85 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_EQ(3u, sql::test::CountTableColumns(db, "icon_mapping")); db 88 chrome/browser/history/thumbnail_database_unittest.cc void VerifyDatabaseEmpty(sql::Connection* db) { db 90 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(sql::test::CountTableRows(db, "favicons", &rows)); db 92 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(sql::test::CountTableRows(db, "favicon_bitmaps", &rows)); db 94 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(sql::test::CountTableRows(db, "icon_mapping", &rows)); db 100 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase* db, db 108 chrome/browser/history/thumbnail_database_unittest.cc if (!db->GetIconMappingsForPageURL(page_url, &icon_mappings)) { db 130 chrome/browser/history/thumbnail_database_unittest.cc if (!db->GetFaviconBitmaps(iter->icon_id, &favicon_bitmaps)) { db 176 chrome/browser/history/thumbnail_database_unittest.cc scoped_ptr<ThumbnailDatabase> db(new ThumbnailDatabase()); db 177 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_EQ(sql::INIT_OK, db->Init(file_name_)); db 178 chrome/browser/history/thumbnail_database_unittest.cc db->BeginTransaction(); db 180 chrome/browser/history/thumbnail_database_unittest.cc return db.Pass(); db 196 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 197 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 198 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 205 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id = db.AddFavicon(url, db 212 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_NE(0, db.AddIconMapping(url, id)); db 214 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(url, &icon_mappings)); db 221 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 222 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 223 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 227 chrome/browser/history/thumbnail_database_unittest.cc db.AddFavicon(url, chrome::TOUCH_ICON); db 229 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_LT(0, db.AddIconMapping(url, id)); db 231 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(url, &icon_mapping)); db 238 chrome/browser/history/thumbnail_database_unittest.cc db.AddFavicon(url1, chrome::TOUCH_ICON); db 239 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.UpdateIconMapping(icon_mapping.front().mapping_id, new_id)); db 242 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(url, &icon_mapping)); db 250 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 251 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 252 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 259 chrome/browser/history/thumbnail_database_unittest.cc db.AddFavicon(url, chrome::TOUCH_ICON); db 261 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id, favicon, time, gfx::Size()); db 262 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_LT(0, db.AddIconMapping(url, id)); db 265 chrome/browser/history/thumbnail_database_unittest.cc db.AddFavicon(url, chrome::FAVICON); db 266 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_LT(0, db.AddIconMapping(url, id2)); db 270 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(url, &icon_mapping)); db 273 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(url, chrome::FAVICON, NULL)); db 275 chrome/browser/history/thumbnail_database_unittest.cc db.DeleteIconMappings(url); db 277 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.GetIconMappingsForPageURL(url, NULL)); db 278 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.GetIconMappingsForPageURL(url, chrome::FAVICON, NULL)); db 282 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 283 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 284 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 291 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id1 = db.AddFavicon(url, chrome::TOUCH_ICON); db 293 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id1, favicon, time, kSmallSize); db 294 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id1, favicon, time, kLargeSize); db 295 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_LT(0, db.AddIconMapping(url, id1)); db 297 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id2 = db.AddFavicon(url, chrome::FAVICON); db 299 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id2, favicon, time, kSmallSize); db 300 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_LT(0, db.AddIconMapping(url, id2)); db 303 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(url, &icon_mappings)); db 310 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 312 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 314 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 328 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID kept_id1 = db.AddFavicon(kIconUrl1, chrome::FAVICON); db 329 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(kept_id1, favicon1, base::Time::Now(), kLargeSize); db 330 chrome/browser/history/thumbnail_database_unittest.cc db.AddIconMapping(kPageUrl1, kept_id1); db 331 chrome/browser/history/thumbnail_database_unittest.cc db.AddIconMapping(kPageUrl3, kept_id1); db 333 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID unkept_id = db.AddFavicon(kIconUrl2, chrome::FAVICON); db 334 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(unkept_id, favicon1, base::Time::Now(), kLargeSize); db 335 chrome/browser/history/thumbnail_database_unittest.cc db.AddIconMapping(kPageUrl2, unkept_id); db 337 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID kept_id2 = db.AddFavicon(kIconUrl5, chrome::FAVICON); db 338 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(kept_id2, favicon2, base::Time::Now(), kLargeSize); db 339 chrome/browser/history/thumbnail_database_unittest.cc db.AddIconMapping(kPageUrl5, kept_id2); db 343 chrome/browser/history/thumbnail_database_unittest.cc const std::string original_schema = db.db_.GetSchema(); db 349 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.RetainDataForPageUrls(pages_to_keep)); db 352 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(&db, kPageUrl1, chrome::FAVICON, db 354 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(&db, kPageUrl3, chrome::FAVICON, db 356 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(&db, kPageUrl5, chrome::FAVICON, db 360 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.GetFaviconIDForFaviconURL(kPageUrl2, false, NULL)); db 363 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_EQ(original_schema, db.db_.GetSchema()); db 369 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 370 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 371 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 381 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id = db.AddFavicon(url, chrome::FAVICON); db 383 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id, favicon1, last_updated, kSmallSize); db 384 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id, favicon2, last_updated, kLargeSize); db 386 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetFaviconBitmaps(id, NULL)); db 388 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.DeleteFavicon(id)); db 389 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.GetFaviconBitmaps(id, NULL)); db 393 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 394 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 395 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 405 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id = db.AddFavicon(icon_url, db 410 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_NE(0, db.AddIconMapping(page_url, id)); db 412 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(page_url, &icon_mappings)); db 424 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id2 = db.AddFavicon(icon_url, db 429 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_NE(0, db.AddIconMapping(page_url, id2)); db 432 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(page_url, &icon_mappings)); db 443 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id3 = db.AddFavicon(icon_url, db 448 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_NE(0, db.AddIconMapping(page_url, id3)); db 451 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(page_url, &icon_mappings)); db 461 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 462 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 463 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 470 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id1 = db.AddFavicon(url, db 475 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_NE(0, db.AddIconMapping(url, id1)); db 477 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id2 = db.AddFavicon(url, db 482 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_NE(0, db.AddIconMapping(url, id2)); db 484 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id3 = db.AddFavicon(url, db 489 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_NE(0, db.AddIconMapping(url, id3)); db 494 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL( db 509 chrome/browser/history/thumbnail_database_unittest.cc db.GetIconMappingsForPageURL(url, chrome::TOUCH_ICON, &icon_mappings)); db 519 chrome/browser/history/thumbnail_database_unittest.cc db.GetIconMappingsForPageURL(url, chrome::FAVICON, &icon_mappings)); db 525 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 526 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 527 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 534 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id1 = db.AddFavicon(GURL("http://google.com"), db 543 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id2 = db.AddFavicon(GURL("http://www.google.com/icon"), db 552 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id3 = db.AddFavicon(GURL("http://www.google.com/icon"), db 561 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.AddIconMapping(page_url, id1)); db 562 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.AddIconMapping(page_url, id2)); db 564 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.HasMappingFor(id1)); db 565 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.HasMappingFor(id2)); db 566 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.HasMappingFor(id3)); db 569 chrome/browser/history/thumbnail_database_unittest.cc db.DeleteIconMappings(page_url); db 570 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.HasMappingFor(id1)); db 571 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.HasMappingFor(id2)); db 572 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.HasMappingFor(id3)); db 576 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 577 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 578 chrome/browser/history/thumbnail_database_unittest.cc db.BeginTransaction(); db 584 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id1 = db.AddFavicon( db 588 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id1, favicon, time, gfx::Size()); db 591 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id2 = db.AddFavicon(GURL("http://www.google.com/icon"), db 595 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id2, favicon, time, gfx::Size()); db 598 chrome/browser/history/thumbnail_database_unittest.cc chrome::FaviconID id3 = db.AddFavicon(GURL("http://www.google.com/icon"), db 602 chrome/browser/history/thumbnail_database_unittest.cc db.AddFaviconBitmap(id3, favicon, time, gfx::Size()); db 605 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.AddIconMapping(page1_url, id1)); db 606 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.AddIconMapping(page1_url, id2)); db 609 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.AddIconMapping(page2_url, id3)); db 613 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(page2_url, &icon_mapping)); db 616 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.CloneIconMappings(page1_url, page2_url)); db 619 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(page2_url, &icon_mapping)); db 626 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.CloneIconMappings(page1_url, page3_url)); db 629 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(db.GetIconMappingsForPageURL(page3_url, &icon_mapping)); db 642 chrome/browser/history/thumbnail_database_unittest.cc scoped_ptr<ThumbnailDatabase> db = LoadFromGolden("Favicons.v3.sql"); db 643 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_TRUE(db.get() != NULL); db 644 chrome/browser/history/thumbnail_database_unittest.cc VerifyTablesAndColumns(&db->db_); db 647 chrome/browser/history/thumbnail_database_unittest.cc VerifyDatabaseEmpty(&db->db_); db 652 chrome/browser/history/thumbnail_database_unittest.cc scoped_ptr<ThumbnailDatabase> db = LoadFromGolden("Favicons.v4.sql"); db 653 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_TRUE(db.get() != NULL); db 654 chrome/browser/history/thumbnail_database_unittest.cc VerifyTablesAndColumns(&db->db_); db 657 chrome/browser/history/thumbnail_database_unittest.cc VerifyDatabaseEmpty(&db->db_); db 662 chrome/browser/history/thumbnail_database_unittest.cc scoped_ptr<ThumbnailDatabase> db = LoadFromGolden("Favicons.v5.sql"); db 663 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_TRUE(db.get() != NULL); db 664 chrome/browser/history/thumbnail_database_unittest.cc VerifyTablesAndColumns(&db->db_); db 666 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl1, chrome::FAVICON, db 668 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl2, chrome::FAVICON, db 670 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl3, chrome::FAVICON, db 672 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl3, chrome::TOUCH_ICON, db 678 chrome/browser/history/thumbnail_database_unittest.cc scoped_ptr<ThumbnailDatabase> db = LoadFromGolden("Favicons.v6.sql"); db 679 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_TRUE(db.get() != NULL); db 680 chrome/browser/history/thumbnail_database_unittest.cc VerifyTablesAndColumns(&db->db_); db 682 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl1, chrome::FAVICON, db 684 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl2, chrome::FAVICON, db 686 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl3, chrome::FAVICON, db 688 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl3, chrome::TOUCH_ICON, db 694 chrome/browser/history/thumbnail_database_unittest.cc scoped_ptr<ThumbnailDatabase> db = LoadFromGolden("Favicons.v7.sql"); db 695 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_TRUE(db.get() != NULL); db 696 chrome/browser/history/thumbnail_database_unittest.cc VerifyTablesAndColumns(&db->db_); db 698 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl1, chrome::FAVICON, db 700 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl2, chrome::FAVICON, db 702 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl3, chrome::FAVICON, db 704 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_TRUE(CheckPageHasIcon(db.get(), kPageUrl3, chrome::TOUCH_ICON, db 729 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 730 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 733 chrome/browser/history/thumbnail_database_unittest.cc CheckPageHasIcon(&db, kPageUrl1, chrome::FAVICON, db 736 chrome/browser/history/thumbnail_database_unittest.cc CheckPageHasIcon(&db, kPageUrl2, chrome::FAVICON, db 764 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 765 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 771 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.GetIconMappingsForPageURL(kPageUrl2, NULL)); db 788 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 789 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 792 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.GetIconMappingsForPageURL(kPageUrl2, NULL)); db 796 chrome/browser/history/thumbnail_database_unittest.cc CheckPageHasIcon(&db, kPageUrl1, chrome::FAVICON, db 817 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 818 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 820 chrome/browser/history/thumbnail_database_unittest.cc EXPECT_FALSE(db.GetIconMappingsForPageURL(kPageUrl2, NULL)); db 822 chrome/browser/history/thumbnail_database_unittest.cc CheckPageHasIcon(&db, kPageUrl1, chrome::FAVICON, db 857 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 858 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 905 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 906 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); db 945 chrome/browser/history/thumbnail_database_unittest.cc ThumbnailDatabase db; db 946 chrome/browser/history/thumbnail_database_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(db_path)); db 950 chrome/browser/history/thumbnail_database_unittest.cc VerifyTablesAndColumns(&db.db_); db 63 chrome/browser/history/top_sites_database.cc bool InitTables(sql::Connection* db) { db 77 chrome/browser/history/top_sites_database.cc return db->Execute(kThumbnailsSql); db 144 chrome/browser/history/top_sites_database.cc void FixThumbnailsTable(sql::Connection* db) { db 150 chrome/browser/history/top_sites_database.cc ignore_result(db->Execute(kFixRankSql)); db 151 chrome/browser/history/top_sites_database.cc if (db->GetLastChangeCount() > 0) db 158 chrome/browser/history/top_sites_database.cc ignore_result(db->Execute(kFixRedirectsSql)); db 159 chrome/browser/history/top_sites_database.cc if (db->GetLastChangeCount() > 0) db 170 chrome/browser/history/top_sites_database.cc sql::Statement select_statement(db->GetUniqueStatement(kByRankSql)); db 174 chrome/browser/history/top_sites_database.cc sql::Statement update_statement(db->GetUniqueStatement(kAdjustRankSql)); db 196 chrome/browser/history/top_sites_database.cc void RecoverDatabaseOrRaze(sql::Connection* db, const base::FilePath& db_path) { db 202 chrome/browser/history/top_sites_database.cc db->reset_error_callback(); db 209 chrome/browser/history/top_sites_database.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(db, db_path); db 247 chrome/browser/history/top_sites_database.cc if (!recover_meta_table.Init(recovery->db(), kVersionNumber, db 256 chrome/browser/history/top_sites_database.cc if (!InitTables(recovery->db())) { db 279 chrome/browser/history/top_sites_database.cc FixThumbnailsTable(recovery->db()); db 310 chrome/browser/history/top_sites_database.cc void DatabaseErrorCallback(sql::Connection* db, db 322 chrome/browser/history/top_sites_database.cc RecoverDatabaseOrRaze(db, db_path); db 341 chrome/browser/history/top_sites_database.cc DLOG(FATAL) << db->GetErrorMessage(); db 719 chrome/browser/history/top_sites_database.cc scoped_ptr<sql::Connection> db(new sql::Connection()); db 721 chrome/browser/history/top_sites_database.cc db->set_histogram_tag("TopSites"); db 722 chrome/browser/history/top_sites_database.cc db->set_error_callback(base::Bind(&DatabaseErrorCallback, db 723 chrome/browser/history/top_sites_database.cc db.get(), db_name)); db 724 chrome/browser/history/top_sites_database.cc db->set_page_size(4096); db 725 chrome/browser/history/top_sites_database.cc db->set_cache_size(32); db 727 chrome/browser/history/top_sites_database.cc if (!db->Open(db_name)) db 729 chrome/browser/history/top_sites_database.cc return db.release(); db 50 chrome/browser/history/top_sites_database_unittest.cc void VerifyTablesAndColumns(sql::Connection* db) { db 52 chrome/browser/history/top_sites_database_unittest.cc EXPECT_EQ(2u, sql::test::CountSQLTables(db)); db 55 chrome/browser/history/top_sites_database_unittest.cc EXPECT_EQ(2u, sql::test::CountSQLIndices(db)); db 58 chrome/browser/history/top_sites_database_unittest.cc EXPECT_EQ(2u, sql::test::CountTableColumns(db, "meta")); db 63 chrome/browser/history/top_sites_database_unittest.cc EXPECT_EQ(11u, sql::test::CountTableColumns(db, "thumbnails")); db 66 chrome/browser/history/top_sites_database_unittest.cc void VerifyDatabaseEmpty(sql::Connection* db) { db 68 chrome/browser/history/top_sites_database_unittest.cc EXPECT_TRUE(sql::test::CountTableRows(db, "thumbnails", &rows)); db 93 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 94 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 95 chrome/browser/history/top_sites_database_unittest.cc VerifyTablesAndColumns(db.db_.get()); db 96 chrome/browser/history/top_sites_database_unittest.cc VerifyDatabaseEmpty(db.db_.get()); db 102 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 103 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 105 chrome/browser/history/top_sites_database_unittest.cc VerifyTablesAndColumns(db.db_.get()); db 110 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 120 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.RemoveURL(urls[1])); db 121 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 129 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 130 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 132 chrome/browser/history/top_sites_database_unittest.cc VerifyTablesAndColumns(db.db_.get()); db 137 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 147 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.RemoveURL(urls[1])); db 148 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 181 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 182 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 183 chrome/browser/history/top_sites_database_unittest.cc VerifyTablesAndColumns(db.db_.get()); db 184 chrome/browser/history/top_sites_database_unittest.cc VerifyDatabaseEmpty(db.db_.get()); db 217 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 218 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 220 chrome/browser/history/top_sites_database_unittest.cc VerifyTablesAndColumns(db.db_.get()); db 225 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 265 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 266 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 270 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 311 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 312 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 322 chrome/browser/history/top_sites_database_unittest.cc db.GetURLRank(MostVisitedURL(kUrl1, base::string16()))); db 338 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 339 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 340 chrome/browser/history/top_sites_database_unittest.cc VerifyTablesAndColumns(db.db_.get()); db 343 chrome/browser/history/top_sites_database_unittest.cc db.GetURLRank(MostVisitedURL(kUrl1, base::string16()))); db 347 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 358 chrome/browser/history/top_sites_database_unittest.cc TopSitesDatabase db; db 359 chrome/browser/history/top_sites_database_unittest.cc ASSERT_TRUE(db.Init(file_name_)); db 364 chrome/browser/history/top_sites_database_unittest.cc db.SetPageThumbnail(url1, 1, Images()); db 368 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 378 chrome/browser/history/top_sites_database_unittest.cc db.SetPageThumbnail(url2, TopSitesDatabase::kRankOfForcedURL, Images()); db 380 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 391 chrome/browser/history/top_sites_database_unittest.cc db.SetPageThumbnail(url3, TopSitesDatabase::kRankOfForcedURL, Images()); db 393 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 403 chrome/browser/history/top_sites_database_unittest.cc db.SetPageThumbnail(url3, TopSitesDatabase::kRankOfForcedURL, Images()); db 405 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 415 chrome/browser/history/top_sites_database_unittest.cc db.UpdatePageRank(url1, TopSitesDatabase::kRankOfForcedURL); db 417 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 427 chrome/browser/history/top_sites_database_unittest.cc db.SetPageThumbnail(url3, 1, Images()); db 429 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 438 chrome/browser/history/top_sites_database_unittest.cc db.UpdatePageRank(url3, 0); db 440 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 449 chrome/browser/history/top_sites_database_unittest.cc db.SetPageThumbnail(url3, 2, Images()); db 451 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 460 chrome/browser/history/top_sites_database_unittest.cc db.RemoveURL(url3); db 462 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 470 chrome/browser/history/top_sites_database_unittest.cc db.RemoveURL(url2); db 472 chrome/browser/history/top_sites_database_unittest.cc db.GetPageThumbnails(&urls, &thumbnails); db 38 chrome/browser/history/top_sites_impl_unittest.cc HistoryDatabase* db) OVERRIDE { db 93 chrome/browser/history/url_index_private_data.cc history::HistoryDatabase* db) OVERRIDE; db 123 chrome/browser/history/url_index_private_data.cc HistoryDatabase* db) { db 127 chrome/browser/history/url_index_private_data.cc succeeded_ = db->GetMostRecentVisitsForURL(url_id_, db 22 chrome/browser/net/nss_context_chromeos_browsertest.cc void NotCalledDbCallback(net::NSSCertDatabase* db) { ASSERT_TRUE(false); } db 72 chrome/browser/net/nss_context_chromeos_browsertest.cc net::NSSCertDatabase* db = GetNSSCertDatabaseForResourceContext( db 77 chrome/browser/net/nss_context_chromeos_browsertest.cc if (db) { db 79 chrome/browser/net/nss_context_chromeos_browsertest.cc DoTestsOnIOThread(done_callback, db); db 86 chrome/browser/net/nss_context_chromeos_browsertest.cc net::NSSCertDatabase* db) { db 87 chrome/browser/net/nss_context_chromeos_browsertest.cc db_ = db; db 88 chrome/browser/net/nss_context_chromeos_browsertest.cc EXPECT_TRUE(db); db 89 chrome/browser/net/nss_context_chromeos_browsertest.cc if (db) { db 90 chrome/browser/net/nss_context_chromeos_browsertest.cc EXPECT_TRUE(db->GetPublicSlot().get()); db 92 chrome/browser/net/nss_context_chromeos_browsertest.cc EXPECT_EQ(db->GetPublicSlot().get(), db->GetPrivateSlot().get()); db 101 chrome/browser/net/nss_context_chromeos_browsertest.cc net::NSSCertDatabase* db = GetNSSCertDatabaseForResourceContext( db 104 chrome/browser/net/nss_context_chromeos_browsertest.cc EXPECT_TRUE(db); db 106 chrome/browser/net/nss_context_chromeos_browsertest.cc EXPECT_EQ(db_, db); db 148 chrome/browser/net/sqlite_server_bound_cert_store.cc bool InitTable(sql::Connection* db) { db 152 chrome/browser/net/sqlite_server_bound_cert_store.cc if (!db->DoesTableExist("origin_bound_certs")) { db 153 chrome/browser/net/sqlite_server_bound_cert_store.cc if (!db->Execute("CREATE TABLE origin_bound_certs (" db 173 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Connection db; db 174 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Open(v1_db_path)); db 175 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Execute( db 184 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Statement add_smt(db.GetUniqueStatement( db 192 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Execute( db 218 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Connection db; db 219 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Open(v1_db_path)); db 220 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Statement smt(db.GetUniqueStatement( db 241 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Connection db; db 242 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Open(v2_db_path)); db 243 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Execute( db 255 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Statement add_smt(db.GetUniqueStatement( db 264 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Execute( db 302 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Connection db; db 303 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Open(v2_db_path)); db 304 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Statement smt(db.GetUniqueStatement( db 325 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Connection db; db 326 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Open(v3_db_path)); db 327 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Execute( db 340 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Statement add_smt(db.GetUniqueStatement( db 350 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Execute( db 390 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Connection db; db 391 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Open(v3_db_path)); db 392 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Statement smt(db.GetUniqueStatement( db 413 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Connection db; db 414 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Open(v4_db_path)); db 415 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc ASSERT_TRUE(db.Execute( db 429 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc sql::Statement add_smt(db.GetUniqueStatement( db 442 chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc add_smt.Assign(db.GetUniqueStatement( db 192 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db = Database::Create(temp_dir.path()); db 193 chrome/browser/performance_monitor/database_unittest.cc ASSERT_TRUE(db.get()); db 194 chrome/browser/performance_monitor/database_unittest.cc DatabaseTestHelper helper(db.get()); db 243 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db = Database::Create(temp_dir.path()); db 244 chrome/browser/performance_monitor/database_unittest.cc db->set_clock(scoped_ptr<Database::Clock>(clock)); db 245 chrome/browser/performance_monitor/database_unittest.cc db->AddStateValue("test", "test"); db 247 chrome/browser/performance_monitor/database_unittest.cc db->AddStateValue("test", "test"); db 249 chrome/browser/performance_monitor/database_unittest.cc db->AddStateValue("test", "test"); db 251 chrome/browser/performance_monitor/database_unittest.cc std::vector<TimeRange> active_interval = db->GetActiveIntervals(start_time, db 264 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db = Database::Create(temp_dir.path()); db 265 chrome/browser/performance_monitor/database_unittest.cc db->set_clock(scoped_ptr<Database::Clock>(clock)); db 266 chrome/browser/performance_monitor/database_unittest.cc db->AddStateValue("test", "test"); db 270 chrome/browser/performance_monitor/database_unittest.cc std::vector<TimeRange> active_interval = db->GetActiveIntervals(start_time, db 402 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db = Database::Create(dir.path()); db 403 chrome/browser/performance_monitor/database_unittest.cc CHECK(db.get()); db 404 chrome/browser/performance_monitor/database_unittest.cc db->set_clock(scoped_ptr<Database::Clock>(new TestingClock())); db 405 chrome/browser/performance_monitor/database_unittest.cc EXPECT_FALSE(db->GetRecentStatsForActivityAndMetric(METRIC_CPU_USAGE, &stat)); db 145 chrome/browser/predictors/logged_in_predictor_table.cc sql::Connection* db = DB(); db 146 chrome/browser/predictors/logged_in_predictor_table.cc if (db->DoesTableExist(kTableName)) db 152 chrome/browser/predictors/logged_in_predictor_table.cc if (!db->Execute(base::StringPrintf(table_creator, kTableName).c_str())) db 21 chrome/browser/predictors/predictor_table_base.cc void PredictorTableBase::Initialize(sql::Connection* db) { db 23 chrome/browser/predictors/predictor_table_base.cc db_ = db; db 30 chrome/browser/predictors/predictor_table_base.h void Initialize(sql::Connection* db); db 166 chrome/browser/prerender/prerender_local_predictor.cc history::HistoryDatabase* db) OVERRIDE { db 167 chrome/browser/prerender/prerender_local_predictor.cc DoURLLookup(db, &request_->source_url_); db 169 chrome/browser/prerender/prerender_local_predictor.cc DoURLLookup(db, &request_->candidate_urls_[i]); db 182 chrome/browser/prerender/prerender_local_predictor.cc void DoURLLookup(history::HistoryDatabase* db, db 185 chrome/browser/prerender/prerender_local_predictor.cc request->url_lookup_success = db->GetURLRow(request->id, &url_row); db 207 chrome/browser/prerender/prerender_local_predictor.cc history::HistoryDatabase* db) OVERRIDE { db 208 chrome/browser/prerender/prerender_local_predictor.cc db->GetBriefVisitInfoOfMostRecentVisits(max_visits_, visit_history_.get()); db 393 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc TestSafeBrowsingDatabase* db = db_factory_.GetDb(); db 394 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc db->AddUrl(url, full_hash.list_name, prefix_hits, empty_full_hits); db 404 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc TestSafeBrowsingDatabase* db = db_factory_.GetDb(); db 405 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc db->AddDownloadPrefix( db 903 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc sql::Connection db; db 904 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc if (!db.Open(cookie_path)) { db 910 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc sql::Statement smt(db.GetUniqueStatement( db 931 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc sql::Connection db; db 934 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc ASSERT_TRUE(db.Open(cookie_path)); db 936 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc sql::Statement smt(db.GetUniqueStatement( db 26 chrome/browser/sync/glue/history_model_worker.cc history::HistoryDatabase* db) OVERRIDE { db 50 chrome/browser/sync/glue/history_model_worker.cc history::HistoryDatabase* db) OVERRIDE { db 42 chrome/browser/sync/glue/typed_url_data_type_controller.cc history::HistoryDatabase* db) OVERRIDE { db 47 chrome/browser/sync/test/integration/bookmarks_helper.cc history::HistoryDatabase* db) OVERRIDE { db 30 chrome/browser/sync/test/integration/typed_urls_helper.cc history::HistoryDatabase* db) OVERRIDE { db 49 chrome/browser/sync/test/integration/typed_urls_helper.cc history::HistoryDatabase* db) OVERRIDE { db 74 chrome/browser/sync/test/integration/typed_urls_helper.cc history::HistoryDatabase* db) OVERRIDE { db 100 chrome/browser/sync/test/integration/typed_urls_helper.cc history::HistoryDatabase* db) OVERRIDE { db 124 chrome/browser/sync/test/integration/typed_urls_helper.cc history::HistoryDatabase* db) OVERRIDE { db 120 chrome/browser/sync_file_system/drive_backend/metadata_database.cc bool IsDatabaseEmpty(leveldb::DB* db) { db 121 chrome/browser/sync_file_system/drive_backend/metadata_database.cc DCHECK(db); db 122 chrome/browser/sync_file_system/drive_backend/metadata_database.cc scoped_ptr<leveldb::Iterator> itr(db->NewIterator(leveldb::ReadOptions())); db 140 chrome/browser/sync_file_system/drive_backend/metadata_database.cc leveldb::DB* db = NULL; db 142 chrome/browser/sync_file_system/drive_backend/metadata_database.cc leveldb::DB::Open(options, path.AsUTF8Unsafe(), &db); db 145 chrome/browser/sync_file_system/drive_backend/metadata_database.cc delete db; db 149 chrome/browser/sync_file_system/drive_backend/metadata_database.cc *created = IsDatabaseEmpty(db); db 150 chrome/browser/sync_file_system/drive_backend/metadata_database.cc db_out->reset(db); db 154 chrome/browser/sync_file_system/drive_backend/metadata_database.cc SyncStatusCode MigrateDatabaseIfNeeded(leveldb::DB* db) { db 156 chrome/browser/sync_file_system/drive_backend/metadata_database.cc DCHECK(db); db 159 chrome/browser/sync_file_system/drive_backend/metadata_database.cc db->Get(leveldb::ReadOptions(), kDatabaseVersionKey, &value); db 171 chrome/browser/sync_file_system/drive_backend/metadata_database.cc drive_backend::MigrateDatabaseFromV0ToV1(db); db 174 chrome/browser/sync_file_system/drive_backend/metadata_database.cc drive_backend::MigrateDatabaseFromV1ToV2(db); db 197 chrome/browser/sync_file_system/drive_backend/metadata_database.cc SyncStatusCode WriteVersionInfo(leveldb::DB* db) { db 199 chrome/browser/sync_file_system/drive_backend/metadata_database.cc DCHECK(db); db 201 chrome/browser/sync_file_system/drive_backend/metadata_database.cc db->Put(leveldb::WriteOptions(), db 206 chrome/browser/sync_file_system/drive_backend/metadata_database.cc SyncStatusCode ReadDatabaseContents(leveldb::DB* db, db 209 chrome/browser/sync_file_system/drive_backend/metadata_database.cc DCHECK(db); db 212 chrome/browser/sync_file_system/drive_backend/metadata_database.cc scoped_ptr<leveldb::Iterator> itr(db->NewIterator(leveldb::ReadOptions())); db 629 chrome/browser/sync_file_system/drive_backend/metadata_database.cc scoped_ptr<leveldb::DB> db, db 634 chrome/browser/sync_file_system/drive_backend/metadata_database.cc metadata_database->db_ = db.Pass(); db 149 chrome/browser/sync_file_system/drive_backend/metadata_database.h scoped_ptr<leveldb::DB> db, db 215 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc scoped_ptr<leveldb::DB> db = InitializeLevelDB(); db 216 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc ASSERT_TRUE(db); db 223 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), file->metadata).ok()); db 224 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), file->tracker).ok()); db 254 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc leveldb::DB* db = NULL; db 260 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc leveldb::DB::Open(options, database_dir_.path().AsUTF8Unsafe(), &db); db 263 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc db->Put(leveldb::WriteOptions(), db 266 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc SetUpServiceMetadata(db); db 268 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc return make_scoped_ptr(db); db 271 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc void SetUpServiceMetadata(leveldb::DB* db) { db 278 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(db->Write(leveldb::WriteOptions(), &batch).ok()); db 448 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc leveldb::Status PutFileToDB(leveldb::DB* db, const FileMetadata& file) { db 451 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc return db->Write(leveldb::WriteOptions(), &batch); db 454 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc leveldb::Status PutTrackerToDB(leveldb::DB* db, db 458 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc return db->Write(leveldb::WriteOptions(), &batch); db 743 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc scoped_ptr<leveldb::DB> db = InitializeLevelDB(); db 744 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc ASSERT_TRUE(db); db 746 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), sync_root).ok()); db 747 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), sync_root_tracker).ok()); db 748 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), app_root).ok()); db 749 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), app_root_tracker).ok()); db 750 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), folder).ok()); db 751 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), folder_tracker).ok()); db 752 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), file).ok()); db 753 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), file_tracker).ok()); db 796 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc scoped_ptr<leveldb::DB> db = InitializeLevelDB(); db 797 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc ASSERT_TRUE(db); db 799 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), sync_root).ok()); db 800 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), sync_root_tracker).ok()); db 801 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), app_root).ok()); db 802 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), app_root_tracker).ok()); db 803 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), folder1).ok()); db 804 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), folder_tracker1).ok()); db 805 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), folder2).ok()); db 806 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), folder_tracker2).ok()); db 807 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), file).ok()); db 808 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), file_tracker).ok()); db 809 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutFileToDB(db.get(), inactive_folder).ok()); db 810 chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc EXPECT_TRUE(PutTrackerToDB(db.get(), inactive_folder_tracker).ok()); db 97 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc SyncStatusCode MigrateDatabaseFromV0ToV1(leveldb::DB* db) { db 144 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc scoped_ptr<leveldb::Iterator> itr(db->NewIterator(leveldb::ReadOptions())); db 164 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc db->Write(leveldb::WriteOptions(), &write_batch)); db 167 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc SyncStatusCode MigrateDatabaseFromV1ToV2(leveldb::DB* db) { db 203 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc scoped_ptr<leveldb::Iterator> itr(db->NewIterator(leveldb::ReadOptions())); db 247 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc db->Write(leveldb::WriteOptions(), &write_batch)); db 56 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.h SyncStatusCode MigrateDatabaseFromV0ToV1(leveldb::DB* db); db 59 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.h SyncStatusCode MigrateDatabaseFromV1ToV2(leveldb::DB* db); db 119 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util_unittest.cc scoped_ptr<leveldb::DB> db(db_ptr); db 146 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util_unittest.cc status = db->Write(leveldb::WriteOptions(), &batch); db 150 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util_unittest.cc MigrateDatabaseFromV0ToV1(db.get()); db 152 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util_unittest.cc scoped_ptr<leveldb::Iterator> itr(db->NewIterator(leveldb::ReadOptions())); db 228 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util_unittest.cc scoped_ptr<leveldb::DB> db(db_ptr); db 257 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util_unittest.cc status = db->Write(leveldb::WriteOptions(), &batch); db 263 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util_unittest.cc MigrateDatabaseFromV1ToV2(db.get()); db 265 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util_unittest.cc scoped_ptr<leveldb::Iterator> itr(db->NewIterator(leveldb::ReadOptions())); db 76 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc leveldb::DB* db = NULL; db 81 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc leveldb::DB::Open(options, database_dir_.path().AsUTF8Unsafe(), &db); db 83 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc return make_scoped_ptr<leveldb::DB>(db); db 86 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc void SetUpInitialData(leveldb::DB* db) { db 115 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc EXPECT_TRUE(db->Write(leveldb::WriteOptions(), &batch).ok()); db 118 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc void CreateMetadataDatabase(scoped_ptr<leveldb::DB> db) { db 119 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc ASSERT_TRUE(db); db 124 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc db.Pass(), &metadata_db)); db 138 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc leveldb::DB* db) { db 160 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc EXPECT_TRUE(db->Write(leveldb::WriteOptions(), &batch).ok()); db 164 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc leveldb::DB* db) { db 185 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc EXPECT_TRUE(db->Write(leveldb::WriteOptions(), &batch).ok()); db 252 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc scoped_ptr<leveldb::DB> db(OpenLevelDB()); db 253 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc ASSERT_TRUE(db); db 254 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc SetUpInitialData(db.get()); db 257 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc SetUpRegisteredAppRoot(kAppID, db.get()); db 259 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc CreateMetadataDatabase(db.Pass()); db 267 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc scoped_ptr<leveldb::DB> db(OpenLevelDB()); db 268 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc ASSERT_TRUE(db); db 269 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc SetUpInitialData(db.get()); db 272 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc CreateMetadataDatabase(db.Pass()); db 283 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc scoped_ptr<leveldb::DB> db(OpenLevelDB()); db 284 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc ASSERT_TRUE(db); db 285 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc SetUpInitialData(db.get()); db 288 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc SetUpUnregisteredAppRoot(kAppID, db.get()); db 290 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc CreateMetadataDatabase(db.Pass()); db 298 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc scoped_ptr<leveldb::DB> db(OpenLevelDB()); db 299 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc ASSERT_TRUE(db); db 300 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc SetUpInitialData(db.get()); db 303 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc SetUpUnregisteredAppRoot(kAppID, db.get()); db 304 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc SetUpUnregisteredAppRoot(kAppID, db.get()); db 306 chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc CreateMetadataDatabase(db.Pass()); db 48 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc scoped_ptr<leveldb::DB> db; db 122 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc bool IsDBEmpty(leveldb::DB* db) { db 123 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc DCHECK(db); db 124 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc scoped_ptr<leveldb::Iterator> itr(db->NewIterator(leveldb::ReadOptions())); db 138 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc leveldb::DB* db = NULL; db 140 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc options, path.AsUTF8Unsafe(), &db); db 142 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc *created = IsDBEmpty(db); db 144 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc delete db; db 145 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc db = NULL; db 149 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc return make_scoped_ptr(db); db 152 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc SyncStatusCode WriteInitialData(leveldb::DB* db) { db 153 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc DCHECK(db); db 154 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc return LevelDBStatusToSyncStatusCode(db->Put( db 160 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc SyncStatusCode MigrateDatabaseIfNeeded(leveldb::DB* db) { db 161 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc DCHECK(db); db 163 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc leveldb::Status status = db->Get(leveldb::ReadOptions(), db 176 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc drive_backend::MigrateDatabaseFromV0ToV1(db); db 179 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc drive_backend::MigrateDatabaseFromV1ToV2(db); db 191 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc DCHECK(contents->db); db 198 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc contents->db->NewIterator(leveldb::ReadOptions())); db 268 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc contents->db = OpenDatabase(db_path, db 275 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc contents->status = WriteInitialData(contents->db.get()); db 279 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc contents->status = MigrateDatabaseIfNeeded(contents->db.get()); db 394 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc db_ = contents->db.Pass(); db 449 chrome/browser/sync_file_system/local/local_file_change_tracker.cc leveldb::DB* db; db 450 chrome/browser/sync_file_system/local/local_file_change_tracker.cc leveldb::Status status = leveldb::DB::Open(options, path, &db); db 452 chrome/browser/sync_file_system/local/local_file_change_tracker.cc db_.reset(db); db 97 chrome/browser/ui/search/instant_extended_interactive_uitest.cc history::HistoryDatabase* db) OVERRIDE { db 40 chrome/browser/ui/sync/profile_signin_confirmation_helper.cc history::HistoryDatabase* db) OVERRIDE { db 230 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc Database* db = PerformanceMonitor::GetInstance()->database(); db 231 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc if (db == NULL) db 234 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc std::vector<TimeRange> intervals = db->GetActiveIntervals(start, end); db 252 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc Database* db = PerformanceMonitor::GetInstance()->database(); db 253 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc if (db == NULL) db 264 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc Database::EventVector event_vector = db->GetEvents(*iter, start, end); db 321 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc Database* db = PerformanceMonitor::GetInstance()->database(); db 322 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc if (db == NULL) db 325 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc std::vector<TimeRange> intervals = db->GetActiveIntervals(start, end); db 339 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc db->GetMaxStatsForActivityAndMetric(*metric_type) * conversion_factor); db 344 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc db->GetStatsForActivityAndMetric(*metric_type, start, end); db 35 chrome/browser/ui/webui/predictors/predictors_handler.cc base::ListValue* db = new base::ListValue(); db 47 chrome/browser/ui/webui/predictors/predictors_handler.cc db->Append(entry); db 49 chrome/browser/ui/webui/predictors/predictors_handler.cc dict.Set("db", db); db 399 chrome/browser/webdata/autocomplete_syncable_service.cc WebDatabase* db = webdata_backend_->GetDatabase(); db 400 chrome/browser/webdata/autocomplete_syncable_service.cc if (!AutofillTable::FromWebDatabase(db)->GetAutofillTimestamps( db 151 chrome/browser/webdata/keyword_table.cc KeywordTable* KeywordTable::FromWebDatabase(WebDatabase* db) { db 152 chrome/browser/webdata/keyword_table.cc return static_cast<KeywordTable*>(db->GetTable(GetKey())); db 98 chrome/browser/webdata/keyword_table.h static KeywordTable* FromWebDatabase(WebDatabase* db); db 24 chrome/browser/webdata/logins_table.cc LoginsTable* LoginsTable::FromWebDatabase(WebDatabase* db) { db 25 chrome/browser/webdata/logins_table.cc return static_cast<LoginsTable*>(db->GetTable(GetKey())); db 29 chrome/browser/webdata/logins_table.h static LoginsTable* FromWebDatabase(WebDatabase* db); db 26 chrome/browser/webdata/web_apps_table.cc WebAppsTable* WebAppsTable::FromWebDatabase(WebDatabase* db) { db 27 chrome/browser/webdata/web_apps_table.cc return static_cast<WebAppsTable*>(db->GetTable(GetKey())); db 190 chrome/browser/webdata/web_data_service.cc WebDatabase* db) { db 191 chrome/browser/webdata/web_data_service.cc return KeywordTable::FromWebDatabase(db)->PerformOperations(operations) ? db 195 chrome/browser/webdata/web_data_service.cc scoped_ptr<WDTypedResult> WebDataService::GetKeywordsImpl(WebDatabase* db) { db 198 chrome/browser/webdata/web_data_service.cc if (KeywordTable::FromWebDatabase(db)->GetKeywords(&result.keywords)) { db 200 chrome/browser/webdata/web_data_service.cc KeywordTable::FromWebDatabase(db)->GetDefaultSearchProviderID(); db 202 chrome/browser/webdata/web_data_service.cc KeywordTable::FromWebDatabase(db)->GetBuiltinKeywordVersion(); db 210 chrome/browser/webdata/web_data_service.cc WebDatabase* db) { db 211 chrome/browser/webdata/web_data_service.cc return KeywordTable::FromWebDatabase(db)->SetDefaultSearchProviderID(id) ? db 217 chrome/browser/webdata/web_data_service.cc WebDatabase* db) { db 218 chrome/browser/webdata/web_data_service.cc return KeywordTable::FromWebDatabase(db)->SetBuiltinKeywordVersion(version) ? db 229 chrome/browser/webdata/web_data_service.cc const GURL& app_url, const SkBitmap& image, WebDatabase* db) { db 230 chrome/browser/webdata/web_data_service.cc WebAppsTable::FromWebDatabase(db)->SetWebAppImage(app_url, image); db 235 chrome/browser/webdata/web_data_service.cc const GURL& app_url, bool has_all_images, WebDatabase* db) { db 236 chrome/browser/webdata/web_data_service.cc WebAppsTable::FromWebDatabase(db)->SetWebAppHasAllImages(app_url, db 242 chrome/browser/webdata/web_data_service.cc const GURL& app_url, WebDatabase* db) { db 243 chrome/browser/webdata/web_data_service.cc WebAppsTable::FromWebDatabase(db)->RemoveWebApp(app_url); db 248 chrome/browser/webdata/web_data_service.cc const GURL& app_url, WebDatabase* db) { db 251 chrome/browser/webdata/web_data_service.cc WebAppsTable::FromWebDatabase(db)->GetWebAppHasAllImages(app_url); db 252 chrome/browser/webdata/web_data_service.cc WebAppsTable::FromWebDatabase(db)->GetWebAppImages(app_url, &result.images); db 216 chrome/browser/webdata/web_data_service.h WebDatabase* db); db 217 chrome/browser/webdata/web_data_service.h scoped_ptr<WDTypedResult> GetKeywordsImpl(WebDatabase* db); db 219 chrome/browser/webdata/web_data_service.h WebDatabase* db); db 220 chrome/browser/webdata/web_data_service.h WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db); db 229 chrome/browser/webdata/web_data_service.h const SkBitmap& image, WebDatabase* db); db 231 chrome/browser/webdata/web_data_service.h bool has_all_images, WebDatabase* db); db 232 chrome/browser/webdata/web_data_service.h WebDatabase::State RemoveWebAppImpl(const GURL& app_url, WebDatabase* db); db 234 chrome/browser/webdata/web_data_service.h const GURL& app_url, WebDatabase* db); db 269 chrome/browser/webdata/web_data_service.h const IE7PasswordInfo& info, WebDatabase* db); db 271 chrome/browser/webdata/web_data_service.h const IE7PasswordInfo& info, WebDatabase* db); db 273 chrome/browser/webdata/web_data_service.h const IE7PasswordInfo& info, WebDatabase* db); db 32 chrome/browser/webdata/web_data_service_win.cc const IE7PasswordInfo& info, WebDatabase* db) { db 33 chrome/browser/webdata/web_data_service_win.cc if (LoginsTable::FromWebDatabase(db)->AddIE7Login(info)) db 39 chrome/browser/webdata/web_data_service_win.cc const IE7PasswordInfo& info, WebDatabase* db) { db 40 chrome/browser/webdata/web_data_service_win.cc if (LoginsTable::FromWebDatabase(db)->RemoveIE7Login(info)) db 46 chrome/browser/webdata/web_data_service_win.cc const IE7PasswordInfo& info, WebDatabase* db) { db 48 chrome/browser/webdata/web_data_service_win.cc LoginsTable::FromWebDatabase(db)->GetIE7Login(info, &result); db 36 chrome/browser/webdata/web_intents_table.cc WebIntentsTable* WebIntentsTable::FromWebDatabase(WebDatabase* db) { db 37 chrome/browser/webdata/web_intents_table.cc return static_cast<WebIntentsTable*>(db->GetTable(GetKey())); db 345 chrome/installer/mac/third_party/bsdiff/goobsdiff.c u_char *cb, *db, *eb; db 377 chrome/installer/mac/third_party/bsdiff/goobsdiff.c ((db=malloc(newsize+1))==NULL) || db 471 chrome/installer/mac/third_party/bsdiff/goobsdiff.c db[dblen+i]=new[lastscan+i]-old[lastpos+i]; db 494 chrome/installer/mac/third_party/bsdiff/goobsdiff.c header[89] = make_small(&db, &dblen); db 499 chrome/installer/mac/third_party/bsdiff/goobsdiff.c if (fwrite(db, 1, dblen, pf) != dblen) db 518 chrome/installer/mac/third_party/bsdiff/goobsdiff.c free(db); db 131 chrome/installer/util/lzma_util.cc CSzArEx db; db 148 chrome/installer/util/lzma_util.cc SzArEx_Init(&db); db 149 chrome/installer/util/lzma_util.cc if ((ret = SzArEx_Open(&db, &lookStream.s, db 159 chrome/installer/util/lzma_util.cc for (unsigned int i = 0; i < db.db.NumFiles; i++) { db 163 chrome/installer/util/lzma_util.cc CSzFileItem *f = db.db.Files + i; db 165 chrome/installer/util/lzma_util.cc if ((ret = SzArEx_Extract(&db, &lookStream.s, i, &blockIndex, db 173 chrome/installer/util/lzma_util.cc size_t file_name_length = SzArEx_GetFileNameUtf16(&db, i, NULL); db 180 chrome/installer/util/lzma_util.cc SzArEx_GetFileNameUtf16(&db, i, &file_name[0]); db 231 chrome/installer/util/lzma_util.cc SzArEx_Free(&db, &allocImp); db 108 chrome/test/base/testing_profile.cc history::HistoryDatabase* db) OVERRIDE { db 150 chrome/utility/importer/firefox_importer.cc sql::Connection db; db 151 chrome/utility/importer/firefox_importer.cc if (!db.Open(file)) db 165 chrome/utility/importer/firefox_importer.cc sql::Statement s(db.GetUniqueStatement(query)); db 194 chrome/utility/importer/firefox_importer.cc sql::Connection db; db 195 chrome/utility/importer/firefox_importer.cc if (!db.Open(file)) db 202 chrome/utility/importer/firefox_importer.cc LoadRootNodeID(&db, &toolbar_folder_id, &menu_folder_id, &unsorted_folder_id); db 206 chrome/utility/importer/firefox_importer.cc LoadLivemarkIDs(&db, &livemark_id); db 213 chrome/utility/importer/firefox_importer.cc GetTopBookmarkFolder(&db, toolbar_folder_id, &list); db 214 chrome/utility/importer/firefox_importer.cc GetTopBookmarkFolder(&db, menu_folder_id, &list); db 215 chrome/utility/importer/firefox_importer.cc GetTopBookmarkFolder(&db, unsorted_folder_id, &list); db 218 chrome/utility/importer/firefox_importer.cc GetWholeBookmarkFolder(&db, &list, i, NULL); db 231 chrome/utility/importer/firefox_importer.cc sql::Statement s(db.GetUniqueStatement(query)); db 333 chrome/utility/importer/firefox_importer.cc LoadFavicons(&db, favicon_map, &favicons); db 393 chrome/utility/importer/firefox_importer.cc sql::Connection db; db 394 chrome/utility/importer/firefox_importer.cc if (!db.Open(file)) db 403 chrome/utility/importer/firefox_importer.cc sql::Statement s(db.GetUniqueStatement(query)); db 479 chrome/utility/importer/firefox_importer.cc void FirefoxImporter::LoadRootNodeID(sql::Connection* db, db 488 chrome/utility/importer/firefox_importer.cc sql::Statement s(db->GetUniqueStatement(query)); db 502 chrome/utility/importer/firefox_importer.cc void FirefoxImporter::LoadLivemarkIDs(sql::Connection* db, db 511 chrome/utility/importer/firefox_importer.cc sql::Statement s(db->GetUniqueStatement(query)); db 518 chrome/utility/importer/firefox_importer.cc void FirefoxImporter::GetTopBookmarkFolder(sql::Connection* db, db 525 chrome/utility/importer/firefox_importer.cc sql::Statement s(db->GetUniqueStatement(query)); db 540 chrome/utility/importer/firefox_importer.cc void FirefoxImporter::GetWholeBookmarkFolder(sql::Connection* db, db 556 chrome/utility/importer/firefox_importer.cc sql::Statement s(db->GetUniqueStatement(query)); db 583 chrome/utility/importer/firefox_importer.cc GetWholeBookmarkFolder(db, list, list->size() - 1, &(*i)->empty_folder); db 588 chrome/utility/importer/firefox_importer.cc sql::Connection* db, db 592 chrome/utility/importer/firefox_importer.cc sql::Statement s(db->GetUniqueStatement(query)); db 56 chrome/utility/importer/firefox_importer.h void LoadRootNodeID(sql::Connection* db, int* toolbar_folder_id, db 60 chrome/utility/importer/firefox_importer.h void LoadLivemarkIDs(sql::Connection* db, std::set<int>* livemark); db 64 chrome/utility/importer/firefox_importer.h void GetTopBookmarkFolder(sql::Connection* db, db 69 chrome/utility/importer/firefox_importer.h void GetWholeBookmarkFolder(sql::Connection* db, BookmarkList* list, db 74 chrome/utility/importer/firefox_importer.h void LoadFavicons(sql::Connection* db, db 237 chrome/utility/importer/nss_decryptor.cc sql::Connection db; db 238 chrome/utility/importer/nss_decryptor.cc if (!db.Open(sqlite_file)) db 242 chrome/utility/importer/nss_decryptor.cc sql::Statement s(db.GetUniqueStatement(query)); db 264 chrome/utility/importer/nss_decryptor.cc sql::Statement s2(db.GetUniqueStatement(query2)); db 89 chrome/utility/importer/safari_importer.h bool OpenDatabase(sql::Connection* db); db 92 chrome/utility/importer/safari_importer.h void ImportFaviconURLs(sql::Connection* db, FaviconMap* favicon_map); db 95 chrome/utility/importer/safari_importer.h void LoadFaviconData(sql::Connection* db, db 114 chromeos/cert_loader_unittest.cc int GetDbPrivateSlotId(net::NSSCertDatabase* db) { db 115 chromeos/cert_loader_unittest.cc return static_cast<int>(PK11_GetSlotID(db->GetPrivateSlot().get())); db 168 components/autofill/core/browser/webdata/autofill_table.cc bool AddAutofillProfileNamesToProfile(sql::Connection* db, db 170 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s(db->GetUniqueStatement( db 197 components/autofill/core/browser/webdata/autofill_table.cc bool AddAutofillProfileEmailsToProfile(sql::Connection* db, db 199 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s(db->GetUniqueStatement( db 220 components/autofill/core/browser/webdata/autofill_table.cc bool AddAutofillProfilePhonesToProfile(sql::Connection* db, db 222 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s(db->GetUniqueStatement( db 244 components/autofill/core/browser/webdata/autofill_table.cc sql::Connection* db) { db 256 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s(db->GetUniqueStatement( db 272 components/autofill/core/browser/webdata/autofill_table.cc sql::Connection* db) { db 278 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s(db->GetUniqueStatement( db 293 components/autofill/core/browser/webdata/autofill_table.cc sql::Connection* db) { db 299 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s(db->GetUniqueStatement( db 314 components/autofill/core/browser/webdata/autofill_table.cc sql::Connection* db) { db 315 components/autofill/core/browser/webdata/autofill_table.cc if (!AddAutofillProfileNames(profile, db)) db 318 components/autofill/core/browser/webdata/autofill_table.cc if (!AddAutofillProfileEmails(profile, db)) db 321 components/autofill/core/browser/webdata/autofill_table.cc if (!AddAutofillProfilePhones(profile, db)) db 327 components/autofill/core/browser/webdata/autofill_table.cc bool RemoveAutofillProfilePieces(const std::string& guid, sql::Connection* db) { db 328 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s1(db->GetUniqueStatement( db 335 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s2(db->GetUniqueStatement( db 342 components/autofill/core/browser/webdata/autofill_table.cc sql::Statement s3(db->GetUniqueStatement( db 375 components/autofill/core/browser/webdata/autofill_table.cc AutofillTable* AutofillTable::FromWebDatabase(WebDatabase* db) { db 376 components/autofill/core/browser/webdata/autofill_table.cc return static_cast<AutofillTable*>(db->GetTable(GetKey())); db 128 components/autofill/core/browser/webdata/autofill_table.h static AutofillTable* FromWebDatabase(WebDatabase* db); db 104 components/autofill/core/browser/webdata/autofill_table_unittest.cc WebDatabase* db) { db 105 components/autofill/core/browser/webdata/autofill_table_unittest.cc sql::Statement s(db->GetSQLConnection()->GetUniqueStatement( db 84 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc const std::vector<FormFieldData>& fields, WebDatabase* db) { db 87 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->AddFormFieldValues( db 106 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc WebDatabase* db) { db 109 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc AutofillTable::FromWebDatabase(db)->GetFormValuesForElementName( db 117 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc WebDatabase* db) { db 119 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc bool value = AutofillTable::FromWebDatabase(db)->HasFormElements(); db 127 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc WebDatabase* db) { db 131 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (AutofillTable::FromWebDatabase(db)->RemoveFormElementsAddedBetween( db 147 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc const base::string16& name, const base::string16& value, WebDatabase* db) { db 150 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (AutofillTable::FromWebDatabase(db)->RemoveFormElement(name, value)) { db 166 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc const AutofillProfile& profile, WebDatabase* db) { db 168 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->AddAutofillProfile(profile)) { db 184 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc const AutofillProfile& profile, WebDatabase* db) { db 190 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->GetAutofillProfile(profile.guid(), db 196 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->UpdateAutofillProfile(profile)) { db 212 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc const std::string& guid, WebDatabase* db) { db 215 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->GetAutofillProfile(guid, &profile)) { db 221 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->RemoveAutofillProfile(guid)) { db 236 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc WebDatabase* db) { db 239 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc AutofillTable::FromWebDatabase(db)->GetAutofillProfiles(&profiles); db 249 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc const CreditCard& credit_card, WebDatabase* db) { db 251 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->AddCreditCard(credit_card)) { db 260 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc const CreditCard& credit_card, WebDatabase* db) { db 265 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->GetCreditCard(credit_card.guid(), db 271 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->UpdateCreditCard(credit_card)) { db 279 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc const std::string& guid, WebDatabase* db) { db 281 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (!AutofillTable::FromWebDatabase(db)->RemoveCreditCard(guid)) { db 289 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc WebDatabase* db) { db 292 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc AutofillTable::FromWebDatabase(db)->GetCreditCards(&credit_cards); db 305 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc WebDatabase* db) { db 309 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (AutofillTable::FromWebDatabase(db)->RemoveAutofillDataModifiedBetween( db 331 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc WebDatabase* db) { db 334 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (AutofillTable::FromWebDatabase(db)->RemoveOriginURLsModifiedBetween( db 352 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc WebDatabase* db) { db 356 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc if (AutofillTable::FromWebDatabase(db)->RemoveExpiredFormElements(&changes)) { db 75 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 83 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 86 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h scoped_ptr<WDTypedResult> HasFormElements(WebDatabase* db); db 92 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 99 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 103 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 107 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 111 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 114 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h scoped_ptr<WDTypedResult> GetAutofillProfiles(WebDatabase* db); db 118 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 122 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 126 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 129 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h scoped_ptr<WDTypedResult> GetCreditCards(WebDatabase* db); db 135 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 142 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase* db); db 174 components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h WebDatabase::State RemoveExpiredFormElementsImpl(WebDatabase* db); db 41 components/dom_distiller/core/dom_distiller_database.cc leveldb::DB* db = NULL; db 42 components/dom_distiller/core/dom_distiller_database.cc leveldb::Status status = leveldb::DB::Open(options, path, &db); db 45 components/dom_distiller/core/dom_distiller_database.cc status = leveldb::DB::Open(options, path, &db); db 49 components/dom_distiller/core/dom_distiller_database.cc CHECK(db); db 50 components/dom_distiller/core/dom_distiller_database.cc db_.reset(db); db 341 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase> db( db 346 components/dom_distiller/core/dom_distiller_database_unittest.cc db->Init( db 350 components/dom_distiller/core/dom_distiller_database_unittest.cc db.reset(); db 374 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::LevelDB> db( db 376 components/dom_distiller/core/dom_distiller_database_unittest.cc EXPECT_TRUE(db->Init(temp_dir.path())); db 377 components/dom_distiller/core/dom_distiller_database_unittest.cc EXPECT_TRUE(db->Save(save_entries, remove_entries)); db 380 components/dom_distiller/core/dom_distiller_database_unittest.cc db.reset(new DomDistillerDatabase::LevelDB()); db 381 components/dom_distiller/core/dom_distiller_database_unittest.cc EXPECT_TRUE(db->Init(temp_dir.path())); db 384 components/dom_distiller/core/dom_distiller_database_unittest.cc EXPECT_TRUE(db->Load(&load_entries)); db 12 components/dom_distiller/core/fake_db.cc FakeDB::FakeDB(EntryMap* db) : db_(db) {} db 21 components/dom_distiller/core/fake_db.h explicit FakeDB(EntryMap* db); db 44 components/dom_distiller/standalone/content_extractor.cc scoped_ptr<DomDistillerDatabase> db( db 47 components/dom_distiller/standalone/content_extractor.cc db.PassAs<DomDistillerDatabaseInterface>(), db_path)); db 15 components/nacl/loader/nacl_validation_query.cc NaClValidationDB* db, db 18 components/nacl/loader/nacl_validation_query.cc : db_(db), db 41 components/nacl/loader/nacl_validation_query.cc NaClValidationQuery::NaClValidationQuery(NaClValidationDB* db, db 45 components/nacl/loader/nacl_validation_query.cc db_(db), db 158 components/nacl/loader/nacl_validation_query.cc NaClValidationDB* db, const std::string& profile_key, db 164 components/nacl/loader/nacl_validation_query.cc cache->handle = new NaClValidationQueryContext(db, profile_key, nacl_version); db 21 components/nacl/loader/nacl_validation_query.h NaClValidationQueryContext(NaClValidationDB* db, db 47 components/nacl/loader/nacl_validation_query.h NaClValidationQuery(NaClValidationDB* db, const std::string& profile_key); db 91 components/nacl/loader/nacl_validation_query.h NaClValidationDB* db, const std::string& profile_key, db 88 components/nacl/loader/nacl_validation_query_unittest.cc db.reset(new MockValidationDB()); db 89 components/nacl/loader/nacl_validation_query_unittest.cc context.reset(new NaClValidationQueryContext(db.get(), key, version)); db 93 components/nacl/loader/nacl_validation_query_unittest.cc scoped_ptr<MockValidationDB> db; db 109 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_TRUE(query1->db->did_query_); db 110 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_TRUE(query2->db->did_query_); db 111 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_EQ(0, memcmp(query1->db->query_signature_, db 112 components/nacl/loader/nacl_validation_query_unittest.cc query2->db->query_signature_, db 117 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_TRUE(query1->db->did_query_); db 118 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_TRUE(query2->db->did_query_); db 119 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_NE(0, memcmp(query1->db->query_signature_, db 120 components/nacl/loader/nacl_validation_query_unittest.cc query2->db->query_signature_, db 127 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_FALSE(query1->db->did_query_); db 128 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_FALSE(query1->db->did_set_); db 130 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_TRUE(query1->db->did_query_); db 131 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_FALSE(query1->db->did_set_); db 133 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_TRUE(query1->db->did_query_); db 134 components/nacl/loader/nacl_validation_query_unittest.cc ASSERT_TRUE(query1->db->did_set_); db 512 components/password_manager/core/browser/login_database_unittest.cc static bool AddTimestampedLogin(LoginDatabase* db, std::string url, db 524 components/password_manager/core/browser/login_database_unittest.cc return db->AddLogin(form); db 30 components/precache/core/precache_url_table.cc bool PrecacheURLTable::Init(sql::Connection* db) { db 32 components/precache/core/precache_url_table.cc DCHECK(db); // The database connection must be non-NULL. db 33 components/precache/core/precache_url_table.cc db_ = db; db 32 components/precache/core/precache_url_table.h bool Init(sql::Connection* db); db 26 components/signin/core/browser/webdata/token_service_table.cc TokenServiceTable* TokenServiceTable::FromWebDatabase(WebDatabase* db) { db 27 components/signin/core/browser/webdata/token_service_table.cc return static_cast<TokenServiceTable*>(db->GetTable(GetKey())); db 22 components/signin/core/browser/webdata/token_service_table.h static TokenServiceTable* FromWebDatabase(WebDatabase* db); db 25 components/signin/core/browser/webdata/token_web_data.cc WebDatabase::State RemoveAllTokens(WebDatabase* db) { db 26 components/signin/core/browser/webdata/token_web_data.cc if (TokenServiceTable::FromWebDatabase(db)->RemoveAllTokens()) { db 33 components/signin/core/browser/webdata/token_web_data.cc const std::string& service, WebDatabase* db) { db 34 components/signin/core/browser/webdata/token_web_data.cc if (TokenServiceTable::FromWebDatabase(db) db 42 components/signin/core/browser/webdata/token_web_data.cc const std::string& service, const std::string& token, WebDatabase* db) { db 43 components/signin/core/browser/webdata/token_web_data.cc if (TokenServiceTable::FromWebDatabase(db)->SetTokenForService(service, db 50 components/signin/core/browser/webdata/token_web_data.cc scoped_ptr<WDTypedResult> GetAllTokens(WebDatabase* db) { db 52 components/signin/core/browser/webdata/token_web_data.cc TokenServiceTable::FromWebDatabase(db)->GetAllTokens(&map); db 460 components/storage_monitor/portable_device_watcher_win.cc DEV_BROADCAST_DEVICEINTERFACE db = { db 466 components/storage_monitor/portable_device_watcher_win.cc return RegisterDeviceNotification(hwnd, &db, DEVICE_NOTIFY_WINDOW_HANDLE); db 196 components/webdata/common/web_database_migration_unittest.cc WebDatabase db; db 197 components/webdata/common/web_database_migration_unittest.cc db.AddTable(&autofill_table); db 198 components/webdata/common/web_database_migration_unittest.cc db.AddTable(&keyword_table); db 199 components/webdata/common/web_database_migration_unittest.cc db.AddTable(&logins_table); db 200 components/webdata/common/web_database_migration_unittest.cc db.AddTable(&token_service_table); db 201 components/webdata/common/web_database_migration_unittest.cc db.AddTable(&web_apps_table); db 202 components/webdata/common/web_database_migration_unittest.cc db.AddTable(&web_intents_table); db 205 components/webdata/common/web_database_migration_unittest.cc ASSERT_EQ(sql::INIT_OK, db.Init(GetDatabasePath())); db 10 components/webdata/common/web_database_table.cc void WebDatabaseTable::Init(sql::Connection* db, sql::MetaTable* meta_table) { db 11 components/webdata/common/web_database_table.cc db_ = db; db 33 components/webdata/common/web_database_table.h void Init(sql::Connection* db, sql::MetaTable* meta_table); db 1674 content/browser/appcache/appcache_storage_impl_unittest.cc AppCacheDatabase db(temp_directory_.path().AppendASCII("Index")); db 1675 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 1693 content/browser/appcache/appcache_storage_impl_unittest.cc AppCacheDatabase db(temp_directory_.path().AppendASCII("Index")); db 1700 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(db.InsertGroup(&group_record)); db 1707 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(db.InsertCache(&cache_record)); db 1714 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(db.InsertEntry(&entry_record)); db 21 content/browser/dom_storage/dom_storage_database_unittest.cc void CreateV1Table(sql::Connection* db) { db 22 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->is_open()); db 23 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->Execute("DROP TABLE IF EXISTS ItemTable")); db 24 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->Execute( db 30 content/browser/dom_storage/dom_storage_database_unittest.cc void CreateV2Table(sql::Connection* db) { db 31 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->is_open()); db 32 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->Execute("DROP TABLE IF EXISTS ItemTable")); db 33 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->Execute( db 39 content/browser/dom_storage/dom_storage_database_unittest.cc void CreateInvalidKeyColumnTable(sql::Connection* db) { db 42 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->is_open()); db 43 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->Execute("DROP TABLE IF EXISTS ItemTable")); db 44 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->Execute( db 49 content/browser/dom_storage/dom_storage_database_unittest.cc void CreateInvalidValueColumnTable(sql::Connection* db) { db 52 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->is_open()); db 53 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->Execute("DROP TABLE IF EXISTS ItemTable")); db 54 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db->Execute( db 60 content/browser/dom_storage/dom_storage_database_unittest.cc void InsertDataV1(sql::Connection* db, db 63 content/browser/dom_storage/dom_storage_database_unittest.cc sql::Statement statement(db->GetCachedStatement(SQL_FROM_HERE, db 71 content/browser/dom_storage/dom_storage_database_unittest.cc void CheckValuesMatch(DOMStorageDatabase* db, db 74 content/browser/dom_storage/dom_storage_database_unittest.cc db->ReadAllValues(&values_read); db 105 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db; db 106 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_FALSE(db.IsOpen()); db 107 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.LazyOpen(true)); db 108 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.IsOpen()); db 109 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_EQ(DOMStorageDatabase::V2, db.DetectSchemaVersion()); db 110 content/browser/dom_storage/dom_storage_database_unittest.cc db.Close(); db 111 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_FALSE(db.IsOpen()); db 125 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(file_name); db 126 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_EQ(file_name, db.file_path()); db 127 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(false, storage)); db 134 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(file_name); db 136 content/browser/dom_storage/dom_storage_database_unittest.cc db.ReadAllValues(&values); db 144 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(file_name); db 145 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(true, storage)); db 153 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(file_name); db 154 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(false, storage)); db 160 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(file_name); db 161 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(false, storage)); db 165 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(false, storage)); db 178 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(file_name); db 179 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_FALSE(db.IsOpen()); db 181 content/browser/dom_storage/dom_storage_database_unittest.cc db.ReadAllValues(&values); db 183 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_FALSE(db.IsOpen()); db 187 content/browser/dom_storage/dom_storage_database_unittest.cc db.CommitChanges(false, values); db 189 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.IsOpen()); db 191 content/browser/dom_storage/dom_storage_database_unittest.cc db.Close(); db 192 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_FALSE(db.IsOpen()); db 195 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, values); db 196 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.IsOpen()); db 200 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db; db 201 content/browser/dom_storage/dom_storage_database_unittest.cc db.db_.reset(new sql::Connection()); db 202 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.db_->OpenInMemory()); db 204 content/browser/dom_storage/dom_storage_database_unittest.cc CreateInvalidValueColumnTable(db.db_.get()); db 205 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_EQ(DOMStorageDatabase::INVALID, db.DetectSchemaVersion()); db 207 content/browser/dom_storage/dom_storage_database_unittest.cc CreateInvalidKeyColumnTable(db.db_.get()); db 208 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_EQ(DOMStorageDatabase::INVALID, db.DetectSchemaVersion()); db 210 content/browser/dom_storage/dom_storage_database_unittest.cc CreateV1Table(db.db_.get()); db 211 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_EQ(DOMStorageDatabase::V1, db.DetectSchemaVersion()); db 213 content/browser/dom_storage/dom_storage_database_unittest.cc CreateV2Table(db.db_.get()); db 214 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_EQ(DOMStorageDatabase::V2, db.DetectSchemaVersion()); db 227 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(file_name); db 228 content/browser/dom_storage/dom_storage_database_unittest.cc db.db_.reset(new sql::Connection()); db 229 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.db_->Open(file_name)); db 230 content/browser/dom_storage/dom_storage_database_unittest.cc CreateV1Table(db.db_.get()); db 231 content/browser/dom_storage/dom_storage_database_unittest.cc db.Close(); db 233 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 234 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_EQ(DOMStorageDatabase::V2, db.DetectSchemaVersion()); db 238 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db; db 243 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.CommitChanges(false, storage)); db 244 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, storage); db 248 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db; db 253 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(false, storage)); db 254 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, storage); db 260 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(true, storage)); db 261 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, storage); db 265 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(true, storage)); db 266 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, storage); db 275 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db; db 276 content/browser/dom_storage/dom_storage_database_unittest.cc db.db_.reset(new sql::Connection()); db 277 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.db_->OpenInMemory()); db 278 content/browser/dom_storage/dom_storage_database_unittest.cc CreateV1Table(db.db_.get()); db 279 content/browser/dom_storage/dom_storage_database_unittest.cc InsertDataV1(db.db_.get(), kCannedKey, kCannedValue.string()); db 281 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.UpgradeVersion1To2()); db 283 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_EQ(DOMStorageDatabase::V2, db.DetectSchemaVersion()); db 285 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, expected); db 289 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db; db 291 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.LazyOpen(true)); db 298 content/browser/dom_storage/dom_storage_database_unittest.cc ASSERT_TRUE(db.CommitChanges(false, expected)); db 299 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, expected); db 305 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.CommitChanges(false, values)); db 308 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, expected); db 322 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(webcore_database); db 324 content/browser/dom_storage/dom_storage_database_unittest.cc db.ReadAllValues(&values); db 325 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.IsOpen()); db 358 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(file_name); db 361 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.CommitChanges(true, values)); db 362 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.CommitChanges(false, values)); db 363 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_TRUE(db.IsOpen()); db 365 content/browser/dom_storage/dom_storage_database_unittest.cc CheckValuesMatch(&db, values); db 376 content/browser/dom_storage/dom_storage_database_unittest.cc DOMStorageDatabase db(temp_dir.path()); db 379 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_FALSE(db.CommitChanges(true, values)); db 380 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_FALSE(db.CommitChanges(false, values)); db 381 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_FALSE(db.IsOpen()); db 385 content/browser/dom_storage/dom_storage_database_unittest.cc db.ReadAllValues(&values); db 387 content/browser/dom_storage/dom_storage_database_unittest.cc EXPECT_FALSE(db.IsOpen()); db 340 content/browser/dom_storage/session_storage_database.cc leveldb::DB* db; db 341 content/browser/dom_storage/session_storage_database.cc leveldb::Status s = TryToOpen(&db); db 345 content/browser/dom_storage/session_storage_database.cc DCHECK(db == NULL); db 349 content/browser/dom_storage/session_storage_database.cc s = TryToOpen(&db); db 356 content/browser/dom_storage/session_storage_database.cc DCHECK(db == NULL); db 368 content/browser/dom_storage/session_storage_database.cc db_.reset(db); db 372 content/browser/dom_storage/session_storage_database.cc leveldb::Status SessionStorageDatabase::TryToOpen(leveldb::DB** db) { db 380 content/browser/dom_storage/session_storage_database.cc return leveldb::DB::Open(options, base::WideToUTF8(file_path_.value()), db); db 382 content/browser/dom_storage/session_storage_database.cc return leveldb::DB::Open(options, file_path_.value(), db); db 93 content/browser/dom_storage/session_storage_database.h leveldb::Status TryToOpen(leveldb::DB** db); db 12 content/browser/dom_storage/session_storage_database_adapter.cc SessionStorageDatabase* db, db 15 content/browser/dom_storage/session_storage_database_adapter.cc : db_(db), db 18 content/browser/dom_storage/session_storage_database_adapter.h SessionStorageDatabaseAdapter(SessionStorageDatabase* db, db 714 content/browser/fileapi/obfuscated_file_util_unittest.cc SandboxDirectoryDatabase* db = db 716 content/browser/fileapi/obfuscated_file_util_unittest.cc ASSERT_TRUE(db != NULL); db 732 content/browser/fileapi/obfuscated_file_util_unittest.cc SandboxDirectoryDatabase* db = db 734 content/browser/fileapi/obfuscated_file_util_unittest.cc ASSERT_TRUE(db != NULL); db 743 content/browser/fileapi/obfuscated_file_util_unittest.cc ASSERT_EQ(db, db2); db 148 content/browser/indexed_db/indexed_db_backing_store.cc static leveldb::Status GetInt(DBOrTransaction* db, db 153 content/browser/indexed_db/indexed_db_backing_store.cc leveldb::Status s = db->Get(key, &result, found); db 174 content/browser/indexed_db/indexed_db_backing_store.cc WARN_UNUSED_RESULT static leveldb::Status GetVarInt(DBOrTransaction* db, db 179 content/browser/indexed_db/indexed_db_backing_store.cc leveldb::Status s = db->Get(key, &result, found); db 200 content/browser/indexed_db/indexed_db_backing_store.cc DBOrTransaction* db, db 206 content/browser/indexed_db/indexed_db_backing_store.cc leveldb::Status s = db->Get(key, &result, found); db 254 content/browser/indexed_db/indexed_db_backing_store.cc WARN_UNUSED_RESULT static bool IsSchemaKnown(LevelDBDatabase* db, bool* known) { db 258 content/browser/indexed_db/indexed_db_backing_store.cc GetInt(db, SchemaVersionKey::Encode(), &db_schema_version, &found); db 273 content/browser/indexed_db/indexed_db_backing_store.cc s = GetInt(db, DataVersionKey::Encode(), &db_data_version, &found); db 291 content/browser/indexed_db/indexed_db_backing_store.cc LevelDBDatabase* db, db 298 content/browser/indexed_db/indexed_db_backing_store.cc scoped_refptr<LevelDBTransaction> transaction = new LevelDBTransaction(db); db 325 content/browser/indexed_db/indexed_db_backing_store.cc scoped_ptr<LevelDBIterator> it = db->CreateIterator(); db 384 content/browser/indexed_db/indexed_db_backing_store.cc DBOrTransaction* db, db 389 content/browser/indexed_db/indexed_db_backing_store.cc return GetMaxObjectStoreId(db, max_object_store_id_key, max_object_store_id); db 394 content/browser/indexed_db/indexed_db_backing_store.cc DBOrTransaction* db, db 400 content/browser/indexed_db/indexed_db_backing_store.cc GetInt(db, max_object_store_id_key, max_object_store_id, &found); db 414 content/browser/indexed_db/indexed_db_backing_store.cc scoped_ptr<LevelDBDatabase>* db, db 416 content/browser/indexed_db/indexed_db_backing_store.cc return LevelDBDatabase::Open(file_name, comparator, db, is_disk_full); db 427 content/browser/indexed_db/indexed_db_backing_store.cc scoped_ptr<LevelDBDatabase> db, db 434 content/browser/indexed_db/indexed_db_backing_store.cc db_(db.Pass()), db 677 content/browser/indexed_db/indexed_db_backing_store.cc scoped_ptr<LevelDBDatabase> db; db 679 content/browser/indexed_db/indexed_db_backing_store.cc file_path, comparator.get(), &db, is_disk_full); db 681 content/browser/indexed_db/indexed_db_backing_store.cc DCHECK(!db == !status.ok()); db 692 content/browser/indexed_db/indexed_db_backing_store.cc if (db) { db 699 content/browser/indexed_db/indexed_db_backing_store.cc db.reset(); db 703 content/browser/indexed_db/indexed_db_backing_store.cc } else if (!IsSchemaKnown(db.get(), &is_schema_known)) { db 709 content/browser/indexed_db/indexed_db_backing_store.cc db.reset(); db 717 content/browser/indexed_db/indexed_db_backing_store.cc db.reset(); db 726 content/browser/indexed_db/indexed_db_backing_store.cc if (db) { db 745 content/browser/indexed_db/indexed_db_backing_store.cc leveldb_factory->OpenLevelDB(file_path, comparator.get(), &db, NULL); db 746 content/browser/indexed_db/indexed_db_backing_store.cc if (!db) { db 756 content/browser/indexed_db/indexed_db_backing_store.cc if (!db) { db 765 content/browser/indexed_db/indexed_db_backing_store.cc db.Pass(), db 787 content/browser/indexed_db/indexed_db_backing_store.cc scoped_ptr<LevelDBDatabase> db = db 789 content/browser/indexed_db/indexed_db_backing_store.cc if (!db) { db 799 content/browser/indexed_db/indexed_db_backing_store.cc db.Pass(), db 808 content/browser/indexed_db/indexed_db_backing_store.cc scoped_ptr<LevelDBDatabase> db, db 816 content/browser/indexed_db/indexed_db_backing_store.cc db.Pass(), db 45 content/browser/indexed_db/indexed_db_backing_store.h scoped_ptr<LevelDBDatabase>* db, db 347 content/browser/indexed_db/indexed_db_backing_store.h scoped_ptr<LevelDBDatabase> db, db 357 content/browser/indexed_db/indexed_db_backing_store.h scoped_ptr<LevelDBDatabase> db, db 381 content/browser/indexed_db/indexed_db_browsertest.cc IndexedDBDatabase* db = range.first->second; db 382 content/browser/indexed_db/indexed_db_browsertest.cc IndexedDBBackingStore* backing_store = db->backing_store(); db 55 content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc scoped_ptr<LevelDBDatabase>* db, db 57 content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc *db = BustedLevelDBDatabase::Open(file_name, comparator); db 107 content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc scoped_ptr<LevelDBDatabase>* db, db 18 content/browser/indexed_db/indexed_db_connection.h IndexedDBConnection(scoped_refptr<IndexedDBDatabase> db, db 201 content/browser/indexed_db/indexed_db_context_impl.cc const IndexedDBDatabase* db = it->second; db 204 content/browser/indexed_db/indexed_db_context_impl.cc db_info->SetString("name", db->name()); db 205 content/browser/indexed_db/indexed_db_context_impl.cc db_info->SetDouble("pending_opens", db->PendingOpenCount()); db 206 content/browser/indexed_db/indexed_db_context_impl.cc db_info->SetDouble("pending_upgrades", db->PendingUpgradeCount()); db 207 content/browser/indexed_db/indexed_db_context_impl.cc db_info->SetDouble("running_upgrades", db->RunningUpgradeCount()); db 208 content/browser/indexed_db/indexed_db_context_impl.cc db_info->SetDouble("pending_deletes", db->PendingDeleteCount()); db 210 content/browser/indexed_db/indexed_db_context_impl.cc db->ConnectionCount() - db->PendingUpgradeCount() - db 211 content/browser/indexed_db/indexed_db_context_impl.cc db->RunningUpgradeCount()); db 215 content/browser/indexed_db/indexed_db_context_impl.cc db->transaction_coordinator().GetTransactions(); db 269 content/browser/indexed_db/indexed_db_context_impl.cc db->metadata().object_stores.find(*scope_it); db 270 content/browser/indexed_db/indexed_db_context_impl.cc if (it != db->metadata().object_stores.end()) db 67 content/browser/indexed_db/indexed_db_context_impl.h void ConnectionOpened(const GURL& origin_url, IndexedDBConnection* db); db 68 content/browser/indexed_db/indexed_db_context_impl.h void ConnectionClosed(const GURL& origin_url, IndexedDBConnection* db); db 38 content/browser/indexed_db/indexed_db_database_unittest.cc scoped_refptr<IndexedDBDatabase> db = IndexedDBDatabase::Create( db 44 content/browser/indexed_db/indexed_db_database_unittest.cc db = NULL; db 54 content/browser/indexed_db/indexed_db_database_unittest.cc scoped_refptr<IndexedDBDatabase> db = db 72 content/browser/indexed_db/indexed_db_database_unittest.cc db->OpenConnection(connection1); db 86 content/browser/indexed_db/indexed_db_database_unittest.cc db->OpenConnection(connection2); db 99 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(db->backing_store()); db 101 content/browser/indexed_db/indexed_db_database_unittest.cc db = NULL; db 171 content/browser/indexed_db/indexed_db_database_unittest.cc scoped_refptr<IndexedDBDatabase> db = db 189 content/browser/indexed_db/indexed_db_database_unittest.cc db->OpenConnection(connection); db 194 content/browser/indexed_db/indexed_db_database_unittest.cc db->DeleteDatabase(request2); db 199 content/browser/indexed_db/indexed_db_database_unittest.cc db->Close(request1->connection(), true /* forced */); db 201 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(db->backing_store()); db 127 content/browser/indexed_db/indexed_db_factory.cc IndexedDBDatabase* db = range.first->second; db 129 content/browser/indexed_db/indexed_db_factory.cc db->ForceClose(); db 36 content/browser/indexed_db/indexed_db_transaction.h IndexedDBDatabase* db, db 78 content/browser/indexed_db/leveldb/leveldb_database.cc LevelDBSnapshot::LevelDBSnapshot(LevelDBDatabase* db) db 79 content/browser/indexed_db/leveldb/leveldb_database.cc : db_(db->db_.get()), snapshot_(db_->GetSnapshot()) {} db 95 content/browser/indexed_db/leveldb/leveldb_database.cc leveldb::DB** db) { db 108 content/browser/indexed_db/leveldb/leveldb_database.cc return leveldb::DB::Open(options, path.AsUTF8Unsafe(), db); db 267 content/browser/indexed_db/leveldb/leveldb_database.cc leveldb::DB* db; db 269 content/browser/indexed_db/leveldb/leveldb_database.cc OpenDB(comparator_adapter.get(), leveldb::IDBEnv(), file_name, &db); db 287 content/browser/indexed_db/leveldb/leveldb_database.cc (*result)->db_ = make_scoped_ptr(db); db 300 content/browser/indexed_db/leveldb/leveldb_database.cc leveldb::DB* db; db 302 content/browser/indexed_db/leveldb/leveldb_database.cc comparator_adapter.get(), in_memory_env.get(), base::FilePath(), &db); db 311 content/browser/indexed_db/leveldb/leveldb_database.cc result->db_ = make_scoped_ptr(db); db 37 content/browser/indexed_db/leveldb/leveldb_database.h explicit LevelDBSnapshot(LevelDBDatabase* db); db 71 content/browser/indexed_db/leveldb/leveldb_database.h scoped_ptr<LevelDBDatabase>* db, db 16 content/browser/indexed_db/leveldb/leveldb_transaction.cc LevelDBTransaction::LevelDBTransaction(LevelDBDatabase* db) db 17 content/browser/indexed_db/leveldb/leveldb_transaction.cc : db_(db), db 18 content/browser/indexed_db/leveldb/leveldb_transaction.cc snapshot_(db), db 19 content/browser/indexed_db/leveldb/leveldb_transaction.cc comparator_(db->Comparator()), db 425 content/browser/indexed_db/leveldb/leveldb_transaction.cc LevelDBDatabase* db) { db 426 content/browser/indexed_db/leveldb/leveldb_transaction.cc return make_scoped_ptr(new LevelDBDirectTransaction(db)); db 429 content/browser/indexed_db/leveldb/leveldb_transaction.cc LevelDBDirectTransaction::LevelDBDirectTransaction(LevelDBDatabase* db) db 430 content/browser/indexed_db/leveldb/leveldb_transaction.cc : db_(db), write_batch_(LevelDBWriteBatch::Create()), finished_(false) {} db 26 content/browser/indexed_db/leveldb/leveldb_transaction.h explicit LevelDBTransaction(LevelDBDatabase* db); db 142 content/browser/indexed_db/leveldb/leveldb_transaction.h static scoped_ptr<LevelDBDirectTransaction> Create(LevelDBDatabase* db); db 153 content/browser/indexed_db/leveldb/leveldb_transaction.h explicit LevelDBDirectTransaction(LevelDBDatabase* db); db 25 content/browser/media/webrtc_identity_store_backend.cc static bool InitDB(sql::Connection* db) { db 26 content/browser/media/webrtc_identity_store_backend.cc if (db->DoesTableExist(kWebRTCIdentityStoreDBName)) { db 27 content/browser/media/webrtc_identity_store_backend.cc if (db->DoesColumnExist(kWebRTCIdentityStoreDBName, "origin") && db 28 content/browser/media/webrtc_identity_store_backend.cc db->DoesColumnExist(kWebRTCIdentityStoreDBName, "identity_name") && db 29 content/browser/media/webrtc_identity_store_backend.cc db->DoesColumnExist(kWebRTCIdentityStoreDBName, "common_name") && db 30 content/browser/media/webrtc_identity_store_backend.cc db->DoesColumnExist(kWebRTCIdentityStoreDBName, "certificate") && db 31 content/browser/media/webrtc_identity_store_backend.cc db->DoesColumnExist(kWebRTCIdentityStoreDBName, "private_key") && db 32 content/browser/media/webrtc_identity_store_backend.cc db->DoesColumnExist(kWebRTCIdentityStoreDBName, "creation_time")) db 34 content/browser/media/webrtc_identity_store_backend.cc if (!db->Execute("DROP TABLE webrtc_identity_store")) db 38 content/browser/media/webrtc_identity_store_backend.cc return db->Execute( db 374 content/browser/net/sqlite_persistent_cookie_store.cc bool InitTable(sql::Connection* db) { db 375 content/browser/net/sqlite_persistent_cookie_store.cc if (!db->DoesTableExist("cookies")) { db 392 content/browser/net/sqlite_persistent_cookie_store.cc if (!db->Execute(stmt.c_str())) db 398 content/browser/net/sqlite_persistent_cookie_store.cc if (!db->Execute("DROP INDEX IF EXISTS cookie_times")) db 401 content/browser/net/sqlite_persistent_cookie_store.cc if (!db->Execute("CREATE INDEX IF NOT EXISTS domain ON cookies(host_key)")) db 214 content/browser/net/sqlite_persistent_cookie_store_unittest.cc sql::Connection db; db 215 content/browser/net/sqlite_persistent_cookie_store_unittest.cc ASSERT_TRUE(db.Open(temp_dir_.path().Append(kCookieFilename))); db 217 content/browser/net/sqlite_persistent_cookie_store_unittest.cc meta_table_.Init(&db, 1, 1); db 218 content/browser/net/sqlite_persistent_cookie_store_unittest.cc ASSERT_TRUE(db.Execute("DELETE FROM meta")); db 219 content/browser/net/sqlite_persistent_cookie_store_unittest.cc db.Close(); db 584 content/browser/net/sqlite_persistent_cookie_store_unittest.cc sql::Connection db; db 587 content/browser/net/sqlite_persistent_cookie_store_unittest.cc ASSERT_TRUE(db.Open(temp_dir_.path().Append(kCookieFilename))); db 588 content/browser/net/sqlite_persistent_cookie_store_unittest.cc smt.Assign(db.GetCachedStatement(SQL_FROM_HERE, db 80 crypto/third_party/nss/rsawrapr.c unsigned char *db; db 97 crypto/third_party/nss/rsawrapr.c db = (unsigned char *)PORT_Alloc(dbMaskLen); db 98 crypto/third_party/nss/rsawrapr.c if (db == NULL) { db 103 crypto/third_party/nss/rsawrapr.c MGF1(maskHashAlg, db, dbMaskLen, &em[dbMaskLen], hash->length); db 107 crypto/third_party/nss/rsawrapr.c db[i] ^= em[i]; db 111 crypto/third_party/nss/rsawrapr.c db[0] &= 0x7f; db 115 crypto/third_party/nss/rsawrapr.c if (db[i] != 0) { db 116 crypto/third_party/nss/rsawrapr.c PORT_Free(db); db 121 crypto/third_party/nss/rsawrapr.c if (db[dbMaskLen - sLen - 1] != 0x01) { db 122 crypto/third_party/nss/rsawrapr.c PORT_Free(db); db 130 crypto/third_party/nss/rsawrapr.c PORT_Free(db); db 136 crypto/third_party/nss/rsawrapr.c PORT_Free(db); db 144 crypto/third_party/nss/rsawrapr.c (*hash->update)(hash_context, &db[dbMaskLen - sLen], sLen); db 148 crypto/third_party/nss/rsawrapr.c PORT_Free(db); db 29 extensions/browser/value_store/leveldb_value_store.cc explicit ScopedSnapshot(leveldb::DB* db) db 30 extensions/browser/value_store/leveldb_value_store.cc : db_(db), snapshot_(db->GetSnapshot()) {} db 331 extensions/browser/value_store/leveldb_value_store.cc leveldb::DB* db = NULL; db 333 extensions/browser/value_store/leveldb_value_store.cc leveldb::DB::Open(options, db_path_.AsUTF8Unsafe(), &db); db 337 extensions/browser/value_store/leveldb_value_store.cc CHECK(db); db 338 extensions/browser/value_store/leveldb_value_store.cc db_.reset(db); db 160 google_apis/gcm/engine/gcm_store_impl.cc leveldb::DB* db; db 162 google_apis/gcm/engine/gcm_store_impl.cc leveldb::DB::Open(options, path_.AsUTF8Unsafe(), &db); db 172 google_apis/gcm/engine/gcm_store_impl.cc db_.reset(db); db 36 sql/connection.cc explicit ScopedBusyTimeout(sqlite3* db) db 37 sql/connection.cc : db_(db) { db 61 sql/connection.cc explicit ScopedWritableSchema(sqlite3* db) db 62 sql/connection.cc : db_(db) { db 129 sql/connection.cc int GetSqlite3File(sqlite3* db, sqlite3_file** file) { db 131 sql/connection.cc int rc = sqlite3_file_control(db, NULL, SQLITE_FCNTL_FILE_POINTER, file); db 23 sql/connection_unittest.cc int SqliteMasterCount(sql::Connection* db) { db 25 sql/connection_unittest.cc sql::Statement s(db->GetUniqueStatement(kMasterCount)); db 56 sql/connection_unittest.cc void ErrorCallbackSetHelper(sql::Connection* db, db 62 sql/connection_unittest.cc db->set_error_callback(base::Bind(&IgnoreErrorCallback)); db 66 sql/connection_unittest.cc void ErrorCallbackResetHelper(sql::Connection* db, db 72 sql/connection_unittest.cc db->reset_error_callback(); db 120 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); db 121 sql/connection_unittest.cc EXPECT_EQ(SQLITE_OK, db().GetErrorCode()); db 125 sql/connection_unittest.cc db().ExecuteAndReturnErrorCode("CREATE TAB foo (a, b")); db 126 sql/connection_unittest.cc EXPECT_EQ(SQLITE_ERROR, db().GetErrorCode()); db 131 sql/connection_unittest.cc db().ExecuteAndReturnErrorCode("CREATE TABLE foo (a, b)")); db 133 sql/connection_unittest.cc db().ExecuteAndReturnErrorCode("CREATE TABLE TABLE")); db 135 sql/connection_unittest.cc db().ExecuteAndReturnErrorCode( db 142 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); db 143 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO foo(a, b) VALUES (12, 13)")); db 147 sql/connection_unittest.cc sql::Statement s(db().GetCachedStatement(id1, "SELECT a FROM foo")); db 155 sql/connection_unittest.cc EXPECT_TRUE(db().HasCachedStatement(id1)); db 160 sql/connection_unittest.cc sql::Statement s(db().GetCachedStatement(id1, "something invalid(")); db 168 sql/connection_unittest.cc EXPECT_FALSE(db().HasCachedStatement(SQL_FROM_HERE)); db 172 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); db 173 sql/connection_unittest.cc ASSERT_TRUE(db().IsSQLValid("SELECT a FROM foo")); db 174 sql/connection_unittest.cc ASSERT_FALSE(db().IsSQLValid("SELECT no_exist FROM foo")); db 179 sql/connection_unittest.cc EXPECT_FALSE(db().DoesTableExist("foo")); db 180 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); db 181 sql/connection_unittest.cc EXPECT_TRUE(db().DoesTableExist("foo")); db 184 sql/connection_unittest.cc EXPECT_FALSE(db().DoesTableExist("FOO")); db 187 sql/connection_unittest.cc EXPECT_FALSE(db().DoesColumnExist("foo", "bar")); db 188 sql/connection_unittest.cc EXPECT_TRUE(db().DoesColumnExist("foo", "a")); db 191 sql/connection_unittest.cc EXPECT_FALSE(db().DoesColumnExist("bar", "b")); db 195 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (id INTEGER PRIMARY KEY, value)")); db 197 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO foo (value) VALUES (12)")); db 200 sql/connection_unittest.cc int64 row = db().GetLastInsertRowId(); db 204 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("SELECT value FROM foo WHERE id=?")); db 211 sql/connection_unittest.cc ASSERT_TRUE(db().BeginTransaction()); db 212 sql/connection_unittest.cc ASSERT_TRUE(db().BeginTransaction()); db 213 sql/connection_unittest.cc EXPECT_EQ(2, db().transaction_nesting()); db 214 sql/connection_unittest.cc db().RollbackTransaction(); db 215 sql/connection_unittest.cc EXPECT_FALSE(db().CommitTransaction()); db 216 sql/connection_unittest.cc EXPECT_TRUE(db().BeginTransaction()); db 223 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 224 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO foo (id) VALUES (12)")); db 228 sql/connection_unittest.cc ASSERT_FALSE(db().Execute("INSERT INTO foo (id) VALUES (12)")); db 234 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 235 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO foo (id) VALUES (12)")); db 240 sql/connection_unittest.cc &db(), base::Bind(&sql::CaptureErrorCallback, &error)); db 241 sql/connection_unittest.cc EXPECT_FALSE(db().Execute("INSERT INTO foo (id) VALUES (12)")); db 250 sql/connection_unittest.cc ASSERT_FALSE(db().Execute("INSERT INTO foo (id) VALUES (12)")); db 267 sql/connection_unittest.cc &db(), base::Bind(&ErrorCallbackSetHelper, db 268 sql/connection_unittest.cc &db(), &count, RefCounter(&count))); db 270 sql/connection_unittest.cc EXPECT_FALSE(db().Execute("INSERT INTO foo (id) VALUES (12)")); db 277 sql/connection_unittest.cc &db(), base::Bind(&ErrorCallbackResetHelper, db 278 sql/connection_unittest.cc &db(), &count, RefCounter(&count))); db 280 sql/connection_unittest.cc EXPECT_FALSE(db().Execute("INSERT INTO foo (id) VALUES (12)")); db 288 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 289 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO foo (value) VALUES (12)")); db 293 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("PRAGMA auto_vacuum")); db 303 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("PRAGMA page_count")); db 309 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("SELECT * FROM sqlite_master")); db 319 sql/connection_unittest.cc ASSERT_TRUE(db().Raze()); db 322 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("PRAGMA page_count")); db 327 sql/connection_unittest.cc ASSERT_EQ(0, SqliteMasterCount(&db())); db 330 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("PRAGMA auto_vacuum")); db 343 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("PRAGMA page_size")); db 351 sql/connection_unittest.cc db().Close(); db 352 sql/connection_unittest.cc db().set_page_size(kPageSize); db 353 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 356 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("PRAGMA page_size")); db 361 sql/connection_unittest.cc ASSERT_TRUE(db().Raze()); db 370 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 378 sql/connection_unittest.cc ASSERT_TRUE(db().Raze()); db 386 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 397 sql/connection_unittest.cc ASSERT_FALSE(db().Raze()); db 401 sql/connection_unittest.cc ASSERT_TRUE(db().Raze()); db 404 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 405 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kInsertSql)); db 412 sql/connection_unittest.cc ASSERT_FALSE(db().Raze()); db 416 sql/connection_unittest.cc ASSERT_TRUE(db().Raze()); db 423 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 424 sql/connection_unittest.cc db().Close(); db 433 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 434 sql/connection_unittest.cc ASSERT_TRUE(db().Raze()); db 435 sql/connection_unittest.cc EXPECT_EQ(0, SqliteMasterCount(&db())); db 440 sql/connection_unittest.cc db().Close(); db 459 sql/connection_unittest.cc EXPECT_TRUE(db().Open(db_path())); db 462 sql/connection_unittest.cc EXPECT_TRUE(db().Raze()); db 463 sql/connection_unittest.cc db().Close(); db 466 sql/connection_unittest.cc EXPECT_TRUE(db().Open(db_path())); db 467 sql/connection_unittest.cc EXPECT_EQ(0, SqliteMasterCount(&db())); db 473 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 474 sql/connection_unittest.cc ASSERT_EQ(1, SqliteMasterCount(&db())); db 475 sql/connection_unittest.cc db().Close(); db 492 sql/connection_unittest.cc EXPECT_TRUE(db().Open(db_path())); db 495 sql/connection_unittest.cc EXPECT_TRUE(db().Raze()); db 496 sql/connection_unittest.cc db().Close(); db 499 sql/connection_unittest.cc EXPECT_TRUE(db().Open(db_path())); db 500 sql/connection_unittest.cc EXPECT_EQ(0, SqliteMasterCount(&db())); db 509 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 510 sql/connection_unittest.cc ASSERT_EQ(1, SqliteMasterCount(&db())); db 511 sql/connection_unittest.cc db().Close(); db 521 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 522 sql/connection_unittest.cc ASSERT_FALSE(db().Execute("PRAGMA auto_vacuum")); db 523 sql/connection_unittest.cc db().Close(); db 527 sql/connection_unittest.cc db().set_error_callback(base::Bind(&SQLConnectionTest::RazeErrorCallback, db 535 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 536 sql/connection_unittest.cc ASSERT_TRUE(db().Execute("PRAGMA auto_vacuum")); db 537 sql/connection_unittest.cc EXPECT_EQ(0, SqliteMasterCount(&db())); db 547 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 548 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kPopulateSql)); db 549 sql/connection_unittest.cc ASSERT_TRUE(db().RazeAndClose()); db 550 sql/connection_unittest.cc ASSERT_FALSE(db().is_open()); db 551 sql/connection_unittest.cc db().Close(); db 552 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 553 sql/connection_unittest.cc ASSERT_EQ(0, SqliteMasterCount(&db())); db 556 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 557 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kPopulateSql)); db 558 sql/connection_unittest.cc ASSERT_TRUE(db().BeginTransaction()); db 559 sql/connection_unittest.cc ASSERT_TRUE(db().RazeAndClose()); db 560 sql/connection_unittest.cc ASSERT_FALSE(db().is_open()); db 561 sql/connection_unittest.cc ASSERT_FALSE(db().CommitTransaction()); db 562 sql/connection_unittest.cc db().Close(); db 563 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 564 sql/connection_unittest.cc ASSERT_EQ(0, SqliteMasterCount(&db())); db 574 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 575 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kPopulateSql)); db 578 sql/connection_unittest.cc db().Preload(); db 579 sql/connection_unittest.cc ASSERT_TRUE(db().DoesTableExist("foo")); db 580 sql/connection_unittest.cc ASSERT_TRUE(db().IsSQLValid(kSimpleSql)); db 581 sql/connection_unittest.cc ASSERT_EQ(SQLITE_OK, db().ExecuteAndReturnErrorCode(kSimpleSql)); db 582 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kSimpleSql)); db 583 sql/connection_unittest.cc ASSERT_TRUE(db().is_open()); db 585 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement(kSimpleSql)); db 589 sql/connection_unittest.cc sql::Statement s(db().GetCachedStatement(SQL_FROM_HERE, kSimpleSql)); db 592 sql/connection_unittest.cc ASSERT_TRUE(db().BeginTransaction()); db 593 sql/connection_unittest.cc ASSERT_TRUE(db().CommitTransaction()); db 594 sql/connection_unittest.cc ASSERT_TRUE(db().BeginTransaction()); db 595 sql/connection_unittest.cc db().RollbackTransaction(); db 597 sql/connection_unittest.cc ASSERT_TRUE(db().RazeAndClose()); db 600 sql/connection_unittest.cc db().Preload(); db 601 sql/connection_unittest.cc ASSERT_FALSE(db().DoesTableExist("foo")); db 602 sql/connection_unittest.cc ASSERT_FALSE(db().IsSQLValid(kSimpleSql)); db 603 sql/connection_unittest.cc ASSERT_EQ(SQLITE_ERROR, db().ExecuteAndReturnErrorCode(kSimpleSql)); db 604 sql/connection_unittest.cc ASSERT_FALSE(db().Execute(kSimpleSql)); db 605 sql/connection_unittest.cc ASSERT_FALSE(db().is_open()); db 607 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement(kSimpleSql)); db 611 sql/connection_unittest.cc sql::Statement s(db().GetCachedStatement(SQL_FROM_HERE, kSimpleSql)); db 614 sql/connection_unittest.cc ASSERT_FALSE(db().BeginTransaction()); db 615 sql/connection_unittest.cc ASSERT_FALSE(db().CommitTransaction()); db 616 sql/connection_unittest.cc ASSERT_FALSE(db().BeginTransaction()); db 617 sql/connection_unittest.cc db().RollbackTransaction(); db 620 sql/connection_unittest.cc db().Close(); db 629 sql/connection_unittest.cc db().IsSQLValid(kSimpleSql); db 648 sql/connection_unittest.cc ASSERT_TRUE(meta_table.Init(&db(), 4, 4)); db 653 sql/connection_unittest.cc EXPECT_TRUE(db().Execute("CREATE TABLE x (x)")); db 654 sql/connection_unittest.cc db().Close(); db 675 sql/connection_unittest.cc db().Close(); db 679 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 684 sql/connection_unittest.cc EXPECT_TRUE(db().Execute("CREATE TABLE x (x)")); db 702 sql/connection_unittest.cc db().Close(); db 703 sql/connection_unittest.cc db().set_restrict_to_user(); db 704 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 715 sql/connection_unittest.cc db().Close(); db 717 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 725 sql/connection_unittest.cc EXPECT_TRUE(db().Execute("CREATE TABLE x (x)")); db 735 sql/connection_unittest.cc EXPECT_TRUE(db().Execute("CREATE TABLE x (x)")); db 738 sql/connection_unittest.cc EXPECT_TRUE(db().IsSQLValid("INSERT INTO x VALUES ('x')")); db 739 sql/connection_unittest.cc EXPECT_TRUE(db().Execute("INSERT INTO x VALUES ('x')")); db 741 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("SELECT COUNT(*) FROM x")); db 748 sql/connection_unittest.cc db().GetUniqueStatement("SELECT COUNT(*) FROM sqlite_master")); db 753 sql/connection_unittest.cc db().Poison(); db 756 sql/connection_unittest.cc EXPECT_FALSE(db().IsSQLValid("INSERT INTO x VALUES ('x')")); db 757 sql/connection_unittest.cc EXPECT_FALSE(db().Execute("INSERT INTO x VALUES ('x')")); db 759 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("SELECT COUNT(*) FROM x")); db 771 sql/connection_unittest.cc EXPECT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); db 785 sql/connection_unittest.cc EXPECT_FALSE(db().IsSQLValid("SELECT count(*) from other.bar")); db 788 sql/connection_unittest.cc EXPECT_TRUE(db().BeginTransaction()); db 792 sql/connection_unittest.cc EXPECT_FALSE(db().AttachDatabase(attach_path, kAttachmentPoint)); db 797 sql/connection_unittest.cc db().RollbackTransaction(); db 798 sql/connection_unittest.cc EXPECT_TRUE(db().AttachDatabase(attach_path, kAttachmentPoint)); db 799 sql/connection_unittest.cc EXPECT_TRUE(db().IsSQLValid("SELECT count(*) from other.bar")); db 802 sql/connection_unittest.cc EXPECT_TRUE(db().Execute("INSERT INTO foo SELECT a, b FROM other.bar")); db 804 sql/connection_unittest.cc sql::Statement s(db().GetUniqueStatement("SELECT COUNT(*) FROM foo")); db 810 sql/connection_unittest.cc EXPECT_TRUE(db().BeginTransaction()); db 814 sql/connection_unittest.cc EXPECT_FALSE(db().DetachDatabase(kAttachmentPoint)); db 815 sql/connection_unittest.cc EXPECT_TRUE(db().IsSQLValid("SELECT count(*) from other.bar")); db 820 sql/connection_unittest.cc db().RollbackTransaction(); db 821 sql/connection_unittest.cc EXPECT_TRUE(db().DetachDatabase(kAttachmentPoint)); db 823 sql/connection_unittest.cc EXPECT_FALSE(db().IsSQLValid("SELECT count(*) from other.bar")); db 828 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 829 sql/connection_unittest.cc EXPECT_TRUE(db().QuickIntegrityCheck()); db 830 sql/connection_unittest.cc db().Close(); db 837 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 838 sql/connection_unittest.cc EXPECT_FALSE(db().QuickIntegrityCheck()); db 848 sql/connection_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 849 sql/connection_unittest.cc EXPECT_TRUE(db().FullIntegrityCheck(&messages)); db 852 sql/connection_unittest.cc db().Close(); db 859 sql/connection_unittest.cc ASSERT_TRUE(db().Open(db_path())); db 860 sql/connection_unittest.cc EXPECT_TRUE(db().FullIntegrityCheck(&messages)); db 62 sql/meta_table.cc bool MetaTable::DoesTableExist(sql::Connection* db) { db 63 sql/meta_table.cc DCHECK(db); db 64 sql/meta_table.cc return db->DoesTableExist("meta"); db 68 sql/meta_table.cc void MetaTable::RazeIfDeprecated(Connection* db, int deprecated_version) { db 70 sql/meta_table.cc DCHECK_EQ(0, db->transaction_nesting()); db 72 sql/meta_table.cc if (!DoesTableExist(db)) { db 73 sql/meta_table.cc sql::Statement s(db->GetUniqueStatement( db 88 sql/meta_table.cc sql::Statement s(db->GetUniqueStatement( db 103 sql/meta_table.cc if (db->Raze()) { db 115 sql/meta_table.cc bool MetaTable::Init(Connection* db, int version, int compatible_version) { db 116 sql/meta_table.cc DCHECK(!db_ && db); db 117 sql/meta_table.cc db_ = db; db 129 sql/meta_table.cc if (!DoesTableExist(db)) { db 24 sql/meta_table.h static bool DoesTableExist(Connection* db); db 38 sql/meta_table.h static void RazeIfDeprecated(Connection* db, int deprecated_version); db 44 sql/meta_table.h bool Init(Connection* db, int version, int compatible_version); db 34 sql/meta_table_unittest.cc EXPECT_FALSE(sql::MetaTable::DoesTableExist(&db())); db 38 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 41 sql/meta_table_unittest.cc EXPECT_TRUE(sql::MetaTable::DoesTableExist(&db())); db 51 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), kVersion, kVersion)); db 52 sql/meta_table_unittest.cc EXPECT_TRUE(db().Execute("CREATE TABLE t(c)")); db 53 sql/meta_table_unittest.cc EXPECT_TRUE(db().DoesTableExist("t")); db 57 sql/meta_table_unittest.cc sql::MetaTable::RazeIfDeprecated(&db(), kDeprecatedVersion); db 58 sql/meta_table_unittest.cc EXPECT_TRUE(db().DoesTableExist("t")); db 64 sql/meta_table_unittest.cc EXPECT_TRUE(db().Execute("DELETE FROM meta WHERE key = 'version'")); db 67 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), kVersion, kVersion)); db 70 sql/meta_table_unittest.cc sql::MetaTable::RazeIfDeprecated(&db(), kDeprecatedVersion); db 71 sql/meta_table_unittest.cc EXPECT_TRUE(db().DoesTableExist("t")); db 74 sql/meta_table_unittest.cc EXPECT_TRUE(db().Execute("DROP TABLE meta")); db 75 sql/meta_table_unittest.cc sql::MetaTable::RazeIfDeprecated(&db(), kDeprecatedVersion); db 76 sql/meta_table_unittest.cc EXPECT_TRUE(db().DoesTableExist("t")); db 81 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), kDeprecatedVersion, kDeprecatedVersion)); db 85 sql/meta_table_unittest.cc EXPECT_TRUE(db().DoesTableExist("t")); db 86 sql/meta_table_unittest.cc sql::MetaTable::RazeIfDeprecated(&db(), kDeprecatedVersion); db 87 sql/meta_table_unittest.cc EXPECT_FALSE(sql::MetaTable::DoesTableExist(&db())); db 88 sql/meta_table_unittest.cc EXPECT_FALSE(db().DoesTableExist("t")); db 104 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), kVersionFirst, kCompatVersionFirst)); db 112 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), kVersionSecond, kCompatVersionSecond)); db 123 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), kVersionThird, kCompatVersionThird)); db 137 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 150 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 162 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 178 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 191 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 203 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 219 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 232 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 244 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 257 sql/meta_table_unittest.cc EXPECT_TRUE(meta_table.Init(&db(), 1, 1)); db 342 sql/recovery.cc Statement s(db()->GetUniqueStatement(query.c_str())); db 475 sql/recovery.cc if (!db()->Execute(recover_create.c_str())) { db 480 sql/recovery.cc if (!db()->Execute(recover_insert.c_str())) { db 482 sql/recovery.cc ignore_result(db()->Execute(recover_drop.c_str())); db 486 sql/recovery.cc *rows_recovered = db()->GetLastChangeCount(); db 489 sql/recovery.cc if (!db()->Execute(recover_drop.c_str())) { db 505 sql/recovery.cc if (!db()->Execute(kCreateSql)) { db 521 sql/recovery.cc sql::Statement recovery_version(db()->GetUniqueStatement(kVersionSql)); db 112 sql/recovery.h sql::Connection* db() { return &recover_db_; } db 25 sql/recovery_unittest.cc std::string ExecuteWithResults(sql::Connection* db, db 29 sql/recovery_unittest.cc sql::Statement s(db->GetUniqueStatement(sql)); db 55 sql/recovery_unittest.cc std::string GetSchema(sql::Connection* db) { db 58 sql/recovery_unittest.cc return ExecuteWithResults(db, kSql, "|", "\n"); db 93 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 94 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kInsertSql)); db 95 sql/recovery_unittest.cc ASSERT_EQ("CREATE TABLE x (t TEXT)", GetSchema(&db())); db 100 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 103 sql/recovery_unittest.cc EXPECT_FALSE(db().is_open()); db 105 sql/recovery_unittest.cc EXPECT_TRUE(db().is_open()); db 106 sql/recovery_unittest.cc ASSERT_EQ("", GetSchema(&db())); db 109 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 110 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kInsertSql)); db 111 sql/recovery_unittest.cc ASSERT_EQ("CREATE TABLE x (t TEXT)", GetSchema(&db())); db 115 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 121 sql/recovery_unittest.cc EXPECT_FALSE(db().is_open()); db 123 sql/recovery_unittest.cc EXPECT_TRUE(db().is_open()); db 124 sql/recovery_unittest.cc ASSERT_EQ("", GetSchema(&db())); db 127 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 128 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kInsertSql)); db 129 sql/recovery_unittest.cc ASSERT_EQ("CREATE TABLE x (t TEXT)", GetSchema(&db())); db 133 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 137 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateSql)); db 141 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kAltInsertSql)); db 146 sql/recovery_unittest.cc EXPECT_FALSE(db().is_open()); db 148 sql/recovery_unittest.cc EXPECT_TRUE(db().is_open()); db 149 sql/recovery_unittest.cc ASSERT_EQ("CREATE TABLE x (t TEXT)", GetSchema(&db())); db 153 sql/recovery_unittest.cc ExecuteWithResults(&db(), kXSql, "|", "\n")); db 162 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 163 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES ('This is a test')")); db 164 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES ('That was a test')")); db 168 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 176 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kRecoveryCreateSql)); db 179 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateSql)); db 184 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kRecoveryCopySql)); db 193 sql/recovery_unittest.cc ASSERT_EQ("CREATE TABLE x (t TEXT)", GetSchema(&db())); db 197 sql/recovery_unittest.cc ExecuteWithResults(&db(), kXSql, "|", "\n")); db 200 sql/recovery_unittest.cc void RecoveryCallback(sql::Connection* db, const base::FilePath& db_path, db 205 sql/recovery_unittest.cc db->reset_error_callback(); db 207 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(db, db_path); db 223 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kRecoveryCreateSql)); db 224 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateTable)); db 225 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateIndex)); db 226 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kRecoveryCopySql)); db 236 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateTable)); db 237 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateIndex)); db 241 sql/recovery_unittest.cc ASSERT_TRUE(db().BeginTransaction()); db 244 sql/recovery_unittest.cc sql::Statement s(db().GetUniqueStatement(kInsertSql)); db 253 sql/recovery_unittest.cc ASSERT_TRUE(db().CommitTransaction()); db 255 sql/recovery_unittest.cc db().Close(); db 265 sql/recovery_unittest.cc db().set_error_callback(base::Bind(&RecoveryCallback, db 266 sql/recovery_unittest.cc &db(), db_path(), &error)); db 270 sql/recovery_unittest.cc EXPECT_TRUE(db().IsSQLValid(kTrivialSql)); db 274 sql/recovery_unittest.cc ASSERT_FALSE(db().Execute(kSelectSql)); db 278 sql/recovery_unittest.cc EXPECT_FALSE(db().IsSQLValid(kTrivialSql)); db 285 sql/recovery_unittest.cc ExecuteWithResults(&db(), kSelectAllSql, "|", ",")); db 288 sql/recovery_unittest.cc EXPECT_EQ("", ExecuteWithResults(&db(), kSelectSql, "|", ",")); db 296 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateTable)); db 297 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateIndex)); db 301 sql/recovery_unittest.cc ASSERT_TRUE(db().BeginTransaction()); db 304 sql/recovery_unittest.cc sql::Statement s(db().GetUniqueStatement(kInsertSql)); db 313 sql/recovery_unittest.cc ASSERT_TRUE(db().CommitTransaction()); db 315 sql/recovery_unittest.cc db().Close(); db 328 sql/recovery_unittest.cc EXPECT_EQ("9", ExecuteWithResults(&db(), kCountSql, "|", ",")); db 332 sql/recovery_unittest.cc EXPECT_EQ("10", ExecuteWithResults(&db(), kDistinctSql, "|", ",")); db 337 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kInsertSql)); db 340 sql/recovery_unittest.cc EXPECT_EQ("10", ExecuteWithResults(&db(), kCountSql, "|", ",")); db 341 sql/recovery_unittest.cc EXPECT_EQ("11", ExecuteWithResults(&db(), kDistinctSql, "|", ",")); db 345 sql/recovery_unittest.cc EXPECT_TRUE(db().IsSQLValid(kTrivialSql)); db 349 sql/recovery_unittest.cc RecoveryCallback(&db(), db_path(), &error, SQLITE_CORRUPT, NULL); db 353 sql/recovery_unittest.cc EXPECT_FALSE(db().IsSQLValid(kTrivialSql)); db 358 sql/recovery_unittest.cc EXPECT_EQ("10", ExecuteWithResults(&db(), kCountSql, "|", ",")); db 359 sql/recovery_unittest.cc EXPECT_EQ("10", ExecuteWithResults(&db(), kDistinctSql, "|", ",")); db 363 sql/recovery_unittest.cc EXPECT_EQ("100", ExecuteWithResults(&db(), kSelectSql, "|", ",")); db 372 sql/recovery_unittest.cc EXPECT_TRUE(meta.Init(&db(), kVersion, kCompatibleVersion)); db 378 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 389 sql/recovery_unittest.cc EXPECT_TRUE(db().Execute("DELETE FROM meta WHERE key = 'version'")); db 391 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 402 sql/recovery_unittest.cc EXPECT_TRUE(db().Execute("DROP TABLE meta")); db 406 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 416 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 417 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (11, 'This is', 'a test')")); db 418 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (5, 'That was', 'a test')")); db 421 sql/recovery_unittest.cc const std::string orig_schema(GetSchema(&db())); db 423 sql/recovery_unittest.cc const std::string orig_data(ExecuteWithResults(&db(), kXSql, "|", "\n")); db 427 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE y (c TEXT)")); db 428 sql/recovery_unittest.cc ASSERT_NE(orig_schema, GetSchema(&db())); db 431 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 432 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateSql)); db 437 sql/recovery_unittest.cc ExecuteWithResults(recovery->db(), kTempSchemaSql, "|", "\n")); db 445 sql/recovery_unittest.cc ExecuteWithResults(recovery->db(), kTempSchemaSql, "|", "\n")); db 453 sql/recovery_unittest.cc ASSERT_EQ(orig_schema, GetSchema(&db())); db 454 sql/recovery_unittest.cc ASSERT_EQ(orig_data, ExecuteWithResults(&db(), kXSql, "|", "\n")); db 458 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 459 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateSql)); db 473 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE x (id INTEGER)")); db 474 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (5)")); db 475 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (15)")); db 482 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("ALTER TABLE x ADD COLUMN t TEXT DEFAULT 'a''a'")); db 483 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("ALTER TABLE x ADD COLUMN b BLOB DEFAULT x'AA55'")); db 484 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("ALTER TABLE x ADD COLUMN i INT DEFAULT 93")); db 485 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x (id) VALUES (17)")); db 486 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (42, 'b', x'1234', 12)")); db 489 sql/recovery_unittest.cc const std::string orig_schema(GetSchema(&db())); db 491 sql/recovery_unittest.cc const std::string orig_data(ExecuteWithResults(&db(), kXSql, "|", "\n")); db 495 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE y (c TEXT)")); db 496 sql/recovery_unittest.cc ASSERT_NE(orig_schema, GetSchema(&db())); db 515 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 517 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(final_schema.c_str())); db 529 sql/recovery_unittest.cc ASSERT_EQ(final_schema, GetSchema(&db())); db 530 sql/recovery_unittest.cc ASSERT_EQ(final_data, ExecuteWithResults(&db(), kXSql, "|", "\n")); db 541 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kOrigSchema)); db 542 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (5, null)")); db 543 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (15, 'this is a test')")); db 547 sql/recovery_unittest.cc ASSERT_EQ(kOrigSchema, GetSchema(&db())); db 548 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE y (c TEXT)")); db 549 sql/recovery_unittest.cc ASSERT_NE(kOrigSchema, GetSchema(&db())); db 552 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 553 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kFinalSchema)); db 565 sql/recovery_unittest.cc ASSERT_EQ(kFinalSchema, GetSchema(&db())); db 567 sql/recovery_unittest.cc ASSERT_EQ("15|this is a test", ExecuteWithResults(&db(), kXSql, "|", "\n")); db 576 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 577 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES ('This is a test', null)")); db 578 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES ('That was a test', null)")); db 581 sql/recovery_unittest.cc const std::string orig_schema(GetSchema(&db())); db 583 sql/recovery_unittest.cc const std::string orig_data(ExecuteWithResults(&db(), kXSql, "|", "\n")); db 587 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE y (c TEXT)")); db 588 sql/recovery_unittest.cc ASSERT_NE(orig_schema, GetSchema(&db())); db 591 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 592 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateSql)); db 604 sql/recovery_unittest.cc ASSERT_EQ(orig_schema, GetSchema(&db())); db 605 sql/recovery_unittest.cc ASSERT_EQ(orig_data, ExecuteWithResults(&db(), kXSql, "|", "\n")); db 617 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 621 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (1, 'a', 'This is a test')")); db 622 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (1, 'b', 'That was a test')")); db 623 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (2, 'a', 'Another test')")); db 626 sql/recovery_unittest.cc const std::string orig_schema(GetSchema(&db())); db 628 sql/recovery_unittest.cc const std::string orig_data(ExecuteWithResults(&db(), kXSql, "|", "\n")); db 632 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE y (c TEXT)")); db 633 sql/recovery_unittest.cc ASSERT_NE(orig_schema, GetSchema(&db())); db 636 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 637 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateSql)); db 649 sql/recovery_unittest.cc ASSERT_EQ(orig_schema, GetSchema(&db())); db 650 sql/recovery_unittest.cc ASSERT_EQ(orig_data, ExecuteWithResults(&db(), kXSql, "|", "\n")); db 656 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute(kCreateSql)); db 657 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (1, 'This is')")); db 658 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO x VALUES (2, 'That was')")); db 661 sql/recovery_unittest.cc const std::string orig_schema(GetSchema(&db())); db 663 sql/recovery_unittest.cc const std::string orig_data(ExecuteWithResults(&db(), kXSql, "|", "\n")); db 666 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("ALTER TABLE x ADD COLUMN t1 TEXT")); db 667 sql/recovery_unittest.cc ASSERT_TRUE(db().Execute("UPDATE x SET t1 = 'a test'")); db 668 sql/recovery_unittest.cc ASSERT_NE(orig_schema, GetSchema(&db())); db 669 sql/recovery_unittest.cc ASSERT_NE(orig_data, ExecuteWithResults(&db(), kXSql, "|", "\n")); db 672 sql/recovery_unittest.cc scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); db 673 sql/recovery_unittest.cc ASSERT_TRUE(recovery->db()->Execute(kCreateSql)); db 683 sql/recovery_unittest.cc ASSERT_EQ(orig_schema, GetSchema(&db())); db 684 sql/recovery_unittest.cc ASSERT_EQ(orig_data, ExecuteWithResults(&db(), kXSql, "|", "\n")); db 62 sql/sqlite_features_unittest.cc ASSERT_EQ(SQLITE_ERROR, db().ExecuteAndReturnErrorCode( db 73 sql/sqlite_features_unittest.cc ASSERT_TRUE(db().Execute("CREATE VIRTUAL TABLE foo USING fts2(x)")); db 79 sql/sqlite_features_unittest.cc ASSERT_TRUE(db().Execute("CREATE VIRTUAL TABLE foo USING fts3(x)")); db 43 sql/statement_unittest.cc s.Assign(db().GetUniqueStatement("CREATE TABLE foo (a, b)")); db 48 sql/statement_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); db 49 sql/statement_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (3, 12)")); db 51 sql/statement_unittest.cc sql::Statement s(db().GetUniqueStatement("SELECT b FROM foo WHERE a=?")); db 62 sql/statement_unittest.cc EXPECT_EQ(SQLITE_ROW, db().GetErrorCode()); db 80 sql/statement_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a INTEGER PRIMARY KEY, b)")); db 84 sql/statement_unittest.cc &db(), base::Bind(&sql::CaptureErrorCallback, &error)); db 89 sql/statement_unittest.cc sql::Statement s(db().GetUniqueStatement("INSERT INTO foo (a) VALUES (?)")); db 98 sql/statement_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a INTEGER PRIMARY KEY, b)")); db 100 sql/statement_unittest.cc sql::Statement s(db().GetUniqueStatement("INSERT INTO foo (a) VALUES (?)")); db 111 sql/statement_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); db 112 sql/statement_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (3, 12)")); db 113 sql/statement_unittest.cc ASSERT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (4, 13)")); db 115 sql/statement_unittest.cc sql::Statement s(db().GetUniqueStatement( db 16 sql/test/error_callback_support.cc sql::Connection* db, db 18 sql/test/error_callback_support.cc : db_(db) { db 24 sql/test/error_callback_support.h ScopedErrorCallback(sql::Connection* db, db 17 sql/test/test_helpers.cc size_t CountSQLItemsOfType(sql::Connection* db, const char* type) { db 19 sql/test/test_helpers.cc sql::Statement s(db->GetUniqueStatement(kTypeSQL)); db 26 sql/test/test_helpers.cc bool GetPageSize(sql::Connection* db, int* page_size) { db 27 sql/test/test_helpers.cc sql::Statement s(db->GetUniqueStatement("PRAGMA page_size")); db 35 sql/test/test_helpers.cc bool GetRootPage(sql::Connection* db, const char* name, int* page_number) { db 37 sql/test/test_helpers.cc sql::Statement s(db->GetUniqueStatement(kPageSql)); db 115 sql/test/test_helpers.cc sql::Connection db; db 116 sql/test/test_helpers.cc if (!db.Open(db_path)) db 120 sql/test/test_helpers.cc if (!GetPageSize(&db, &page_size)) db 124 sql/test/test_helpers.cc if (!GetRootPage(&db, tree_name, &page_number)) db 146 sql/test/test_helpers.cc if (!db.Execute(update_sql)) db 148 sql/test/test_helpers.cc if (db.GetLastChangeCount() == 0) db 152 sql/test/test_helpers.cc db.Close(); db 176 sql/test/test_helpers.cc size_t CountSQLTables(sql::Connection* db) { db 177 sql/test/test_helpers.cc return CountSQLItemsOfType(db, "table"); db 180 sql/test/test_helpers.cc size_t CountSQLIndices(sql::Connection* db) { db 181 sql/test/test_helpers.cc return CountSQLItemsOfType(db, "index"); db 184 sql/test/test_helpers.cc size_t CountTableColumns(sql::Connection* db, const char* table) { db 189 sql/test/test_helpers.cc sql::Statement s(db->GetUniqueStatement(kQuoteSQL)); db 196 sql/test/test_helpers.cc sql::Statement s(db->GetUniqueStatement(sql.c_str())); db 205 sql/test/test_helpers.cc bool CountTableRows(sql::Connection* db, const char* table, size_t* count) { db 211 sql/test/test_helpers.cc sql::Statement s(db->GetUniqueStatement(sql.c_str())); db 228 sql/test/test_helpers.cc sql::Connection db; db 229 sql/test/test_helpers.cc if (!db.Open(db_path)) db 236 sql/test/test_helpers.cc ignore_result(db.Execute("PRAGMA auto_vacuum = 0")); db 238 sql/test/test_helpers.cc return db.Execute(sql.c_str()); db 241 sql/test/test_helpers.cc std::string IntegrityCheck(sql::Connection* db) { db 242 sql/test/test_helpers.cc sql::Statement statement(db->GetUniqueStatement("PRAGMA integrity_check")); db 58 sql/test/test_helpers.h size_t CountSQLTables(sql::Connection* db) WARN_UNUSED_RESULT; db 61 sql/test/test_helpers.h size_t CountSQLIndices(sql::Connection* db) WARN_UNUSED_RESULT; db 65 sql/test/test_helpers.h size_t CountTableColumns(sql::Connection* db, const char* table) db 70 sql/test/test_helpers.h bool CountTableRows(sql::Connection* db, const char* table, size_t* count); db 82 sql/test/test_helpers.h std::string IntegrityCheck(sql::Connection* db) WARN_UNUSED_RESULT; db 20 sql/transaction_unittest.cc ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); db 31 sql/transaction_unittest.cc sql::Statement count(db().GetUniqueStatement("SELECT count(*) FROM foo")); db 43 sql/transaction_unittest.cc sql::Transaction t(&db()); db 48 sql/transaction_unittest.cc EXPECT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (1, 2)")); db 61 sql/transaction_unittest.cc sql::Transaction t(&db()); db 66 sql/transaction_unittest.cc EXPECT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (1, 2)")); db 73 sql/transaction_unittest.cc sql::Transaction t2(&db()); db 77 sql/transaction_unittest.cc EXPECT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (1, 2)")); db 87 sql/transaction_unittest.cc EXPECT_EQ(0, db().transaction_nesting()); db 91 sql/transaction_unittest.cc sql::Transaction outer(&db()); db 93 sql/transaction_unittest.cc EXPECT_EQ(1, db().transaction_nesting()); db 97 sql/transaction_unittest.cc sql::Transaction inner1(&db()); db 99 sql/transaction_unittest.cc EXPECT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (1, 2)")); db 100 sql/transaction_unittest.cc EXPECT_EQ(2, db().transaction_nesting()); db 103 sql/transaction_unittest.cc EXPECT_EQ(1, db().transaction_nesting()); db 111 sql/transaction_unittest.cc sql::Transaction inner2(&db()); db 113 sql/transaction_unittest.cc EXPECT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (1, 2)")); db 114 sql/transaction_unittest.cc EXPECT_EQ(2, db().transaction_nesting()); db 117 sql/transaction_unittest.cc EXPECT_EQ(1, db().transaction_nesting()); db 122 sql/transaction_unittest.cc EXPECT_EQ(1, db().transaction_nesting()); db 124 sql/transaction_unittest.cc sql::Transaction inner3(&db()); db 126 sql/transaction_unittest.cc EXPECT_EQ(1, db().transaction_nesting()); db 129 sql/transaction_unittest.cc EXPECT_EQ(0, db().transaction_nesting()); db 164 sync/syncable/directory_backing_store.cc sql::Connection* db) db 165 sync/syncable/directory_backing_store.cc : db_(db), db 314 sync/syncable/directory_backing_store_unittest.cc std::map<int64, int64> GetMetaProtoTimes(sql::Connection *db) { db 315 sync/syncable/directory_backing_store_unittest.cc sql::Statement s(db->GetCachedStatement( db 14 sync/test/test_directory_backing_store.cc const std::string& dir_name, sql::Connection* db) db 15 sync/test/test_directory_backing_store.cc : DirectoryBackingStore(dir_name, db) { db 778 third_party/harfbuzz-ng/src/hb-ot-tag.cc unsigned int da, db; db 785 third_party/harfbuzz-ng/src/hb-ot-tag.cc db = p ? (unsigned int) (p - b) : strlen (b); db 787 third_party/harfbuzz-ng/src/hb-ot-tag.cc return strncmp (a, b, MAX (da, db)); db 182 third_party/leveldatabase/env_chromium_unittest.cc DB* db; db 183 third_party/leveldatabase/env_chromium_unittest.cc Status status = DB::Open(options, dir.AsUTF8Unsafe(), &db); db 185 third_party/leveldatabase/env_chromium_unittest.cc status = db->Put(WriteOptions(), "key", "value"); db 189 third_party/leveldatabase/env_chromium_unittest.cc db->CompactRange(&a, &z); db 196 third_party/leveldatabase/env_chromium_unittest.cc delete db; db 201 third_party/leveldatabase/env_chromium_unittest.cc status = leveldb::DB::Open(options, dir.AsUTF8Unsafe(), &db); db 204 third_party/leveldatabase/env_chromium_unittest.cc status = db->Get(ReadOptions(), "key", &value); db 207 third_party/leveldatabase/env_chromium_unittest.cc delete db; db 522 third_party/libpng/pngrtran.c int db = ((ib > b) ? ib - b : b - ib); db 523 third_party/libpng/pngrtran.c int dmax = ((dm > db) ? dm : db); db 524 third_party/libpng/pngrtran.c int d = dmax + dt + db; db 51 third_party/libwebp/dsp/upsampling_sse2.c #define PACK_AND_STORE(a, b, da, db, out) do { \ db 53 third_party/libwebp/dsp/upsampling_sse2.c const __m128i t_b = _mm_avg_epu8(b, db); /* (3a + 9b + c + 3d + 8) / 16 */ \ db 148 third_party/lzma_sdk/7z.h CSzAr db; db 176 third_party/lzma_sdk/7z.h const CSzArEx *db, db 134 third_party/lzma_sdk/7zIn.c SzAr_Init(&p->db); db 153 third_party/lzma_sdk/7zIn.c SzAr_Free(&p->db, alloc); db 186 third_party/lzma_sdk/7zIn.c MY_ALLOC(UInt32, p->FolderStartPackStreamIndex, p->db.NumFolders, alloc); db 187 third_party/lzma_sdk/7zIn.c for (i = 0; i < p->db.NumFolders; i++) db 190 third_party/lzma_sdk/7zIn.c startPos += p->db.Folders[i].NumPackStreams; db 193 third_party/lzma_sdk/7zIn.c MY_ALLOC(UInt64, p->PackStreamStartPositions, p->db.NumPackStreams, alloc); db 195 third_party/lzma_sdk/7zIn.c for (i = 0; i < p->db.NumPackStreams; i++) db 198 third_party/lzma_sdk/7zIn.c startPosSize += p->db.PackSizes[i]; db 201 third_party/lzma_sdk/7zIn.c MY_ALLOC(UInt32, p->FolderStartFileIndex, p->db.NumFolders, alloc); db 202 third_party/lzma_sdk/7zIn.c MY_ALLOC(UInt32, p->FileIndexToFolderIndexMap, p->db.NumFiles, alloc); db 204 third_party/lzma_sdk/7zIn.c for (i = 0; i < p->db.NumFiles; i++) db 206 third_party/lzma_sdk/7zIn.c CSzFileItem *file = p->db.Files + i; db 221 third_party/lzma_sdk/7zIn.c if (folderIndex >= p->db.NumFolders) db 224 third_party/lzma_sdk/7zIn.c if (p->db.Folders[folderIndex].NumUnpackStreams != 0) db 233 third_party/lzma_sdk/7zIn.c if (indexInFolder >= p->db.Folders[folderIndex].NumUnpackStreams) db 252 third_party/lzma_sdk/7zIn.c CSzFolder *folder = p->db.Folders + folderIndex; db 257 third_party/lzma_sdk/7zIn.c UInt64 t = size + p->db.PackSizes[packStreamIndex + i]; db 972 third_party/lzma_sdk/7zIn.c &p->db, db 987 third_party/lzma_sdk/7zIn.c p->db.NumFiles = numFiles; db 991 third_party/lzma_sdk/7zIn.c p->db.Files = files; db 1349 third_party/lzma_sdk/7zIn.c CSzFolder *folder = p->db.Folders + folderIndex; db 1374 third_party/lzma_sdk/7zIn.c p->db.PackSizes + p->FolderStartPackStreamIndex[folderIndex], db 1391 third_party/lzma_sdk/7zIn.c CSzFileItem *fileItem = p->db.Files + fileIndex; db 1394 third_party/lzma_sdk/7zIn.c *offset += (UInt32)p->db.Files[i].Size; db 500 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc EncodedDescriptorDatabase db; db 501 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc db.Add(data1.data(), data1.size()); db 502 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc db.Add(data2.data(), data2.size()); db 506 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc EXPECT_TRUE(db.FindNameOfFileContainingSymbol("foo.Foo", &filename)); db 508 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc EXPECT_TRUE(db.FindNameOfFileContainingSymbol("foo.Foo.Blah", &filename)); db 510 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc EXPECT_TRUE(db.FindNameOfFileContainingSymbol("bar.Bar", &filename)); db 512 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc EXPECT_FALSE(db.FindNameOfFileContainingSymbol("foo", &filename)); db 513 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc EXPECT_FALSE(db.FindNameOfFileContainingSymbol("bar", &filename)); db 514 third_party/protobuf/src/google/protobuf/descriptor_database_unittest.cc EXPECT_FALSE(db.FindNameOfFileContainingSymbol("baz.Baz", &filename)); db 2425 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* An open database */ db 3003 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_errcode(sqlite3 *db); db 3004 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_extended_errcode(sqlite3 *db); db 3218 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle */ db 3225 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle */ db 3232 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle */ db 3239 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle */ db 4067 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 4077 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 4087 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 4588 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database to be rekeyed */ db 4601 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database to be rekeyed */ db 4992 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Connection handle */ db 5029 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Load the extension into this database connection */ db 5048 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff); db 5278 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* SQLite connection to register module with */ db 5284 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* SQLite connection to register module with */ db 6828 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int N); db 6846 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb); db 6919 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle */ db 6947 third_party/sqlite/amalgamation/sqlite3.c int recoverVtableInit(sqlite3 *db); db 6993 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 7672 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Associated database connection */ db 9256 third_party/sqlite/amalgamation/sqlite3.c #define ENC(db) ((db)->aDb[0].pSchema->enc) db 9576 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Database connection associated with this table */ db 9750 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection */ db 10514 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The main database structure */ db 10737 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Optional database for lookaside. Can be NULL */ db 10753 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database being initialized */ db 11345 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *); db 11352 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3ApiExit(sqlite3 *db, int); db 11397 third_party/sqlite/amalgamation/sqlite3.c # define sqlite3VtabInSync(db) 0 db 11402 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3VtabClear(sqlite3 *db, Table*); db 11403 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, char **); db 11404 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db); db 11405 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db); db 11409 third_party/sqlite/amalgamation/sqlite3.c # define sqlite3VtabInSync(db) ((db)->nVTrans>0 && (db)->aVTrans==0) db 11512 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db); db 11513 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db); db 12352 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The associated database connection */ db 12483 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection that owns this statement */ db 12723 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* The database connection whose status is desired */ db 12730 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 12733 third_party/sqlite/amalgamation/sqlite3.c *pCurrent = db->lookaside.nOut; db 12734 third_party/sqlite/amalgamation/sqlite3.c *pHighwater = db->lookaside.mxOut; db 12736 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.mxOut = db->lookaside.nOut; db 12750 third_party/sqlite/amalgamation/sqlite3.c *pHighwater = db->lookaside.anStat[op - SQLITE_DBSTATUS_LOOKASIDE_HIT]; db 12752 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.anStat[op - SQLITE_DBSTATUS_LOOKASIDE_HIT] = 0; db 12765 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeEnterAll(db); db 12766 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 12767 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 12773 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 12788 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeEnterAll(db); db 12789 third_party/sqlite/amalgamation/sqlite3.c db->pnBytesFreed = &nByte; db 12790 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 12791 third_party/sqlite/amalgamation/sqlite3.c Schema *pSchema = db->aDb[i].pSchema; db 12807 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTrigger(db, (Trigger*)sqliteHashData(p)); db 12810 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, (Table *)sqliteHashData(p)); db 12814 third_party/sqlite/amalgamation/sqlite3.c db->pnBytesFreed = 0; db 12815 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 12831 third_party/sqlite/amalgamation/sqlite3.c db->pnBytesFreed = &nByte; db 12832 third_party/sqlite/amalgamation/sqlite3.c for(pVdbe=db->pVdbe; pVdbe; pVdbe=pVdbe->pNext){ db 12833 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeDeleteObject(db, pVdbe); db 12835 third_party/sqlite/amalgamation/sqlite3.c db->pnBytesFreed = 0; db 12847 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 13160 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 13161 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsCurrentTimeInt64(db->pVfs, &p->iJD); db 13699 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 13703 third_party/sqlite/amalgamation/sqlite3.c db = sqlite3_context_db_handle(context); db 13739 third_party/sqlite/amalgamation/sqlite3.c testcase( n==(u64)db->aLimit[SQLITE_LIMIT_LENGTH]+1 ); db 13740 third_party/sqlite/amalgamation/sqlite3.c testcase( n==(u64)db->aLimit[SQLITE_LIMIT_LENGTH] ); db 13743 third_party/sqlite/amalgamation/sqlite3.c }else if( n>(u64)db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 13747 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3DbMallocRaw(db, (int)n); db 13883 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 13890 third_party/sqlite/amalgamation/sqlite3.c db = sqlite3_context_db_handle(context); db 13891 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsCurrentTimeInt64(db->pVfs, &iT); db 18139 third_party/sqlite/amalgamation/sqlite3.c static int isLookaside(sqlite3 *db, void *p){ db 18140 third_party/sqlite/amalgamation/sqlite3.c return p && p>=db->lookaside.pStart && p<db->lookaside.pEnd; db 18155 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3DbMallocSize(sqlite3 *db, void *p){ db 18156 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); db 18157 third_party/sqlite/amalgamation/sqlite3.c if( db && isLookaside(db, p) ){ db 18158 third_party/sqlite/amalgamation/sqlite3.c return db->lookaside.sz; db 18162 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 || sqlite3MemdebugNoType(p, MEMTYPE_LOOKASIDE) ); db 18189 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3DbFree(sqlite3 *db, void *p){ db 18190 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); db 18191 third_party/sqlite/amalgamation/sqlite3.c if( db ){ db 18192 third_party/sqlite/amalgamation/sqlite3.c if( db->pnBytesFreed ){ db 18193 third_party/sqlite/amalgamation/sqlite3.c *db->pnBytesFreed += sqlite3DbMallocSize(db, p); db 18196 third_party/sqlite/amalgamation/sqlite3.c if( isLookaside(db, p) ){ db 18198 third_party/sqlite/amalgamation/sqlite3.c pBuf->pNext = db->lookaside.pFree; db 18199 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.pFree = pBuf; db 18200 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.nOut--; db 18206 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 || sqlite3MemdebugNoType(p, MEMTYPE_LOOKASIDE) ); db 18288 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3 *db, int n){ db 18289 third_party/sqlite/amalgamation/sqlite3.c void *p = sqlite3DbMallocRaw(db, n); db 18314 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3 *db, int n){ db 18316 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); db 18317 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || db->pnBytesFreed==0 ); db 18319 third_party/sqlite/amalgamation/sqlite3.c if( db ){ db 18321 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 18324 third_party/sqlite/amalgamation/sqlite3.c if( db->lookaside.bEnabled ){ db 18325 third_party/sqlite/amalgamation/sqlite3.c if( n>db->lookaside.sz ){ db 18326 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.anStat[1]++; db 18327 third_party/sqlite/amalgamation/sqlite3.c }else if( (pBuf = db->lookaside.pFree)==0 ){ db 18328 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.anStat[2]++; db 18330 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.pFree = pBuf->pNext; db 18331 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.nOut++; db 18332 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.anStat[0]++; db 18333 third_party/sqlite/amalgamation/sqlite3.c if( db->lookaside.nOut>db->lookaside.mxOut ){ db 18334 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.mxOut = db->lookaside.nOut; db 18341 third_party/sqlite/amalgamation/sqlite3.c if( db && db->mallocFailed ){ db 18346 third_party/sqlite/amalgamation/sqlite3.c if( !p && db ){ db 18347 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 18350 third_party/sqlite/amalgamation/sqlite3.c ((db && db->lookaside.bEnabled) ? MEMTYPE_LOOKASIDE : MEMTYPE_HEAP)); db 18358 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *db, void *p, int n){ db 18360 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 18361 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 18362 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed==0 ){ db 18364 third_party/sqlite/amalgamation/sqlite3.c return sqlite3DbMallocRaw(db, n); db 18366 third_party/sqlite/amalgamation/sqlite3.c if( isLookaside(db, p) ){ db 18367 third_party/sqlite/amalgamation/sqlite3.c if( n<=db->lookaside.sz ){ db 18370 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocRaw(db, n); db 18372 third_party/sqlite/amalgamation/sqlite3.c memcpy(pNew, p, db->lookaside.sz); db 18373 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 18382 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 18385 third_party/sqlite/amalgamation/sqlite3.c (db->lookaside.bEnabled ? MEMTYPE_LOOKASIDE : MEMTYPE_HEAP)); db 18395 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *db, void *p, int n){ db 18397 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbRealloc(db, p, n); db 18399 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 18411 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE char *sqlite3DbStrDup(sqlite3 *db, const char *z){ db 18419 third_party/sqlite/amalgamation/sqlite3.c zNew = sqlite3DbMallocRaw(db, (int)n); db 18425 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3 *db, const char *z, int n){ db 18431 third_party/sqlite/amalgamation/sqlite3.c zNew = sqlite3DbMallocRaw(db, n+1); db 18444 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3SetString(char **pz, sqlite3 *db, const char *zFormat, ...){ db 18449 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3VMPrintf(db, zFormat, ap); db 18451 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, *pz); db 18469 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3ApiExit(sqlite3* db, int rc){ db 18474 third_party/sqlite/amalgamation/sqlite3.c assert( !db || sqlite3_mutex_held(db->mutex) ); db 18475 third_party/sqlite/amalgamation/sqlite3.c if( db && (db->mallocFailed || rc==SQLITE_IOERR_NOMEM) ){ db 18476 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_NOMEM, 0); db 18477 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 0; db 18480 third_party/sqlite/amalgamation/sqlite3.c return rc & (db ? db->errMask : 0xff); db 19264 third_party/sqlite/amalgamation/sqlite3.c zNew = sqlite3DbRealloc(p->db, zOld, p->nAlloc); db 19292 third_party/sqlite/amalgamation/sqlite3.c p->zText = sqlite3DbMallocRaw(p->db, p->nChar+1 ); db 19312 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(p->db, p->zText); db 19325 third_party/sqlite/amalgamation/sqlite3.c p->db = 0; db 19338 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE char *sqlite3VMPrintf(sqlite3 *db, const char *zFormat, va_list ap){ db 19342 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 19344 third_party/sqlite/amalgamation/sqlite3.c db->aLimit[SQLITE_LIMIT_LENGTH]); db 19345 third_party/sqlite/amalgamation/sqlite3.c acc.db = db; db 19349 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 19358 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE char *sqlite3MPrintf(sqlite3 *db, const char *zFormat, ...){ db 19362 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3VMPrintf(db, zFormat, ap); db 19375 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE char *sqlite3MAppendf(sqlite3 *db, char *zStr, const char *zFormat, ...){ db 19379 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3VMPrintf(db, zFormat, ap); db 19381 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zStr); db 19871 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 19935 third_party/sqlite/amalgamation/sqlite3.c zOut = sqlite3DbMallocRaw(pMem->db, len); db 20099 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE char *sqlite3Utf16to8(sqlite3 *db, const void *z, int nByte, u8 enc){ db 20102 third_party/sqlite/amalgamation/sqlite3.c m.db = db; db 20105 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 20109 third_party/sqlite/amalgamation/sqlite3.c assert( (m.flags & MEM_Term)!=0 || db->mallocFailed ); db 20110 third_party/sqlite/amalgamation/sqlite3.c assert( (m.flags & MEM_Str)!=0 || db->mallocFailed ); db 20111 third_party/sqlite/amalgamation/sqlite3.c assert( (m.flags & MEM_Dyn)!=0 || db->mallocFailed ); db 20112 third_party/sqlite/amalgamation/sqlite3.c assert( m.z || db->mallocFailed ); db 20127 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE char *sqlite3Utf8to16(sqlite3 *db, u8 enc, char *z, int n, int *pnOut){ db 20130 third_party/sqlite/amalgamation/sqlite3.c m.db = db; db 20133 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed ); db 20337 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3Error(sqlite3 *db, int err_code, const char *zFormat, ...){ db 20338 third_party/sqlite/amalgamation/sqlite3.c if( db && (db->pErr || (db->pErr = sqlite3ValueNew(db))!=0) ){ db 20339 third_party/sqlite/amalgamation/sqlite3.c db->errCode = err_code; db 20344 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3VMPrintf(db, zFormat, ap); db 20346 third_party/sqlite/amalgamation/sqlite3.c sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC); db 20348 third_party/sqlite/amalgamation/sqlite3.c sqlite3ValueSetStr(db->pErr, 0, 0, SQLITE_UTF8, SQLITE_STATIC); db 20373 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 20375 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3VMPrintf(db, zFormat, ap); db 20377 third_party/sqlite/amalgamation/sqlite3.c if( db->suppressErr ){ db 20378 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zMsg); db 20381 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pParse->zErrMsg); db 21231 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void *sqlite3HexToBlob(sqlite3 *db, const char *z, int n){ db 21235 third_party/sqlite/amalgamation/sqlite3.c zBlob = (char *)sqlite3DbMallocRaw(db, n/2 + 1); db 21273 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3SafetyCheckOk(sqlite3 *db){ db 21275 third_party/sqlite/amalgamation/sqlite3.c if( db==0 ){ db 21279 third_party/sqlite/amalgamation/sqlite3.c magic = db->magic; db 21281 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3SafetyCheckSickOrOk(db) ){ db 21290 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3 *db){ db 21292 third_party/sqlite/amalgamation/sqlite3.c magic = db->magic; db 35989 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection */ db 36011 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE RowSet *sqlite3RowSetInit(sqlite3 *db, void *pSpace, unsigned int N){ db 36016 third_party/sqlite/amalgamation/sqlite3.c p->db = db; db 36036 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(p->db, pChunk); db 36058 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocRaw(p->db, sizeof(*pNew)); db 46545 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection holding this btree */ db 46607 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Database connection currently using this Btree */ db 46860 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 46863 third_party/sqlite/amalgamation/sqlite3.c p->pBt->db = p->db; db 46875 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 46876 third_party/sqlite/amalgamation/sqlite3.c assert( p->db==pBt->db ); db 46907 third_party/sqlite/amalgamation/sqlite3.c assert( p->pNext==0 || p->pNext->db==p->db ); db 46908 third_party/sqlite/amalgamation/sqlite3.c assert( p->pPrev==0 || p->pPrev->db==p->db ); db 46916 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 46920 third_party/sqlite/amalgamation/sqlite3.c assert( (p->locked==0 && p->sharable) || p->pBt->db==p->db ); db 46931 third_party/sqlite/amalgamation/sqlite3.c p->pBt->db = p->db; db 46979 third_party/sqlite/amalgamation/sqlite3.c assert( p->sharable==0 || p->locked==0 || p->db==p->pBt->db ); db 46981 third_party/sqlite/amalgamation/sqlite3.c assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->db->mutex) ); db 47017 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){ db 47020 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 47021 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 47022 third_party/sqlite/amalgamation/sqlite3.c p = db->aDb[i].pBt; db 47026 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3BtreeLeaveAll(sqlite3 *db){ db 47029 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 47030 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 47031 third_party/sqlite/amalgamation/sqlite3.c p = db->aDb[i].pBt; db 47051 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3BtreeHoldsAllMutexes(sqlite3 *db){ db 47053 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3_mutex_held(db->mutex) ){ db 47056 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 47058 third_party/sqlite/amalgamation/sqlite3.c p = db->aDb[i].pBt; db 47080 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema){ db 47082 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 47083 third_party/sqlite/amalgamation/sqlite3.c if( pSchema ) iDb = sqlite3SchemaToIndex(db, pSchema); db 47084 third_party/sqlite/amalgamation/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); db 47085 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3_mutex_held(db->mutex) ) return 0; db 47087 third_party/sqlite/amalgamation/sqlite3.c p = db->aDb[iDb].pBt; db 47105 third_party/sqlite/amalgamation/sqlite3.c p->pBt->db = p->db; db 47107 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){ db 47109 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 47110 third_party/sqlite/amalgamation/sqlite3.c Btree *p = db->aDb[i].pBt; db 47112 third_party/sqlite/amalgamation/sqlite3.c p->pBt->db = p->db; db 47255 third_party/sqlite/amalgamation/sqlite3.c || (eLockType==READ_LOCK && (pBtree->db->flags & SQLITE_ReadUncommitted)) db 47326 third_party/sqlite/amalgamation/sqlite3.c && 0==(p->pBtree->db->flags & SQLITE_ReadUncommitted) db 47347 third_party/sqlite/amalgamation/sqlite3.c assert( p->db!=0 ); db 47348 third_party/sqlite/amalgamation/sqlite3.c assert( !(p->db->flags&SQLITE_ReadUncommitted)||eLock==WRITE_LOCK||iTab==1 ); db 47366 third_party/sqlite/amalgamation/sqlite3.c sqlite3ConnectionBlocked(p->db, pBt->pWriter->db); db 47383 third_party/sqlite/amalgamation/sqlite3.c sqlite3ConnectionBlocked(p->db, pIter->pBtree->db); db 47420 third_party/sqlite/amalgamation/sqlite3.c assert( p->db!=0 ); db 47426 third_party/sqlite/amalgamation/sqlite3.c assert( 0==(p->db->flags&SQLITE_ReadUncommitted) || eLock==WRITE_LOCK ); db 48780 third_party/sqlite/amalgamation/sqlite3.c assert( pBt->db ); db 48781 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pBt->db->mutex) ); db 48782 third_party/sqlite/amalgamation/sqlite3.c return sqlite3InvokeBusyHandler(&pBt->db->busyHandler); db 48811 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Associated database handle */ db 48834 third_party/sqlite/amalgamation/sqlite3.c || (isTempDb && sqlite3TempInMemory(db)); db 48837 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 48838 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 48847 third_party/sqlite/amalgamation/sqlite3.c if( db->flags & SQLITE_NoReadlock ){ db 48856 third_party/sqlite/amalgamation/sqlite3.c pVfs = db->pVfs; db 48862 third_party/sqlite/amalgamation/sqlite3.c p->db = db; db 48893 third_party/sqlite/amalgamation/sqlite3.c for(iDb=db->nDb-1; iDb>=0; iDb--){ db 48894 third_party/sqlite/amalgamation/sqlite3.c Btree *pExisting = db->aDb[iDb].pBt; db 48949 third_party/sqlite/amalgamation/sqlite3.c pBt->db = db; db 49000 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 0; db 49020 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 49021 third_party/sqlite/amalgamation/sqlite3.c if( (pSib = db->aDb[i].pBt)!=0 && pSib->sharable ){ db 49135 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 49202 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 49225 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 49241 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 49503 third_party/sqlite/amalgamation/sqlite3.c if( (pBt->db->flags & SQLITE_RecoveryMode)==0 && nPage>nPageFile ){ db 49673 third_party/sqlite/amalgamation/sqlite3.c pBlock = pBt->pWriter->db; db 49678 third_party/sqlite/amalgamation/sqlite3.c pBlock = pIter->pBtree->db; db 49684 third_party/sqlite/amalgamation/sqlite3.c sqlite3ConnectionBlocked(p->db, pBlock); db 49711 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3PagerBegin(pBt->pPager,wrflag>1,sqlite3TempInMemory(p->db)); db 49770 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3PagerOpenSavepoint(pBt->pPager, p->db->nSavepoint); db 50242 third_party/sqlite/amalgamation/sqlite3.c if( p->inTrans>TRANS_NONE && p->db->activeVdbeCnt>1 ){ db 50475 third_party/sqlite/amalgamation/sqlite3.c assert( iStatement>p->db->nSavepoint ); db 51194 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 51203 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 51441 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 51464 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 51534 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 54285 third_party/sqlite/amalgamation/sqlite3.c sqlite3ConnectionBlocked(p->db, pBt->pCursor->pBtree->db); db 55050 third_party/sqlite/amalgamation/sqlite3.c assert( p==0 || sqlite3_mutex_held(p->db->mutex) ); db 55084 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 55090 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 55132 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); db 55180 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCsr->pBtree->db->mutex) ); db 55222 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 55362 third_party/sqlite/amalgamation/sqlite3.c pParse->db = pDb; db 55941 third_party/sqlite/amalgamation/sqlite3.c b.pSrcDb = pFrom->db; db 56013 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56052 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){ db 56054 third_party/sqlite/amalgamation/sqlite3.c pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n); db 56057 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pMem->db, pMem->zMalloc); db 56058 third_party/sqlite/amalgamation/sqlite3.c pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n); db 56089 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56118 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56142 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56173 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56217 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56220 third_party/sqlite/amalgamation/sqlite3.c ctx.s.db = pMem->db; db 56225 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pMem->db, pMem->zMalloc); db 56238 third_party/sqlite/amalgamation/sqlite3.c assert( p->db==0 || sqlite3_mutex_held(p->db->mutex) ); db 56267 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(p->db, p->zMalloc); db 56327 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56352 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56376 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56403 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56417 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56436 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56521 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pMem->db; db 56522 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 56525 third_party/sqlite/amalgamation/sqlite3.c pMem->zMalloc = sqlite3DbMallocRaw(db, 64); db 56526 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 56530 third_party/sqlite/amalgamation/sqlite3.c pMem->u.pRowSet = sqlite3RowSetInit(db, pMem->zMalloc, db 56531 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbMallocSize(db, pMem->zMalloc)); db 56542 third_party/sqlite/amalgamation/sqlite3.c assert( p->db!=0 ); db 56548 third_party/sqlite/amalgamation/sqlite3.c return n>p->db->aLimit[SQLITE_LIMIT_LENGTH]; db 56627 third_party/sqlite/amalgamation/sqlite3.c assert( pFrom->db==0 || sqlite3_mutex_held(pFrom->db->mutex) ); db 56628 third_party/sqlite/amalgamation/sqlite3.c assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) ); db 56629 third_party/sqlite/amalgamation/sqlite3.c assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db ); db 56664 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 56673 third_party/sqlite/amalgamation/sqlite3.c if( pMem->db ){ db 56674 third_party/sqlite/amalgamation/sqlite3.c iLimit = pMem->db->aLimit[SQLITE_LIMIT_LENGTH]; db 56925 third_party/sqlite/amalgamation/sqlite3.c assert( pVal->db==0 || sqlite3_mutex_held(pVal->db->mutex) ); db 56949 third_party/sqlite/amalgamation/sqlite3.c assert(pVal->enc==(enc & ~SQLITE_UTF16_ALIGNED) || pVal->db==0 db 56950 third_party/sqlite/amalgamation/sqlite3.c || pVal->db->mallocFailed ); db 56961 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE sqlite3_value *sqlite3ValueNew(sqlite3 *db){ db 56962 third_party/sqlite/amalgamation/sqlite3.c Mem *p = sqlite3DbMallocZero(db, sizeof(*p)); db 56966 third_party/sqlite/amalgamation/sqlite3.c p->db = db; db 56982 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* The database connection */ db 57022 third_party/sqlite/amalgamation/sqlite3.c pVal = sqlite3ValueNew(db); db 57027 third_party/sqlite/amalgamation/sqlite3.c zVal = sqlite3MPrintf(db, "%s%s", zNeg, pExpr->u.zToken); db 57043 third_party/sqlite/amalgamation/sqlite3.c if( SQLITE_OK==sqlite3ValueFromExpr(db,pExpr->pLeft,enc,affinity,&pVal) ){ db 57056 third_party/sqlite/amalgamation/sqlite3.c pVal = sqlite3ValueNew(db); db 57064 third_party/sqlite/amalgamation/sqlite3.c pVal = sqlite3ValueNew(db); db 57069 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeMemSetStr(pVal, sqlite3HexToBlob(db, zVal, nVal), nVal/2, db 57081 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 57082 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zVal); db 57107 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(((Mem*)v)->db, v); db 57160 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Vdbe *sqlite3VdbeCreate(sqlite3 *db){ db 57162 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3DbMallocZero(db, sizeof(Vdbe) ); db 57164 third_party/sqlite/amalgamation/sqlite3.c p->db = db; db 57165 third_party/sqlite/amalgamation/sqlite3.c if( db->pVdbe ){ db 57166 third_party/sqlite/amalgamation/sqlite3.c db->pVdbe->pPrev = p; db 57168 third_party/sqlite/amalgamation/sqlite3.c p->pNext = db->pVdbe; db 57170 third_party/sqlite/amalgamation/sqlite3.c db->pVdbe = p; db 57185 third_party/sqlite/amalgamation/sqlite3.c p->zSql = sqlite3DbStrNDup(p->db, z, n); db 57239 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbRealloc(p->db, p->aOp, nNew*sizeof(Op)); db 57241 third_party/sqlite/amalgamation/sqlite3.c p->nOpAlloc = sqlite3DbMallocSize(p->db, pNew)/sizeof(Op); db 57289 third_party/sqlite/amalgamation/sqlite3.c for(j=0; j<p->db->nDb; j++) sqlite3VdbeUsesBtree(p, j); db 57365 third_party/sqlite/amalgamation/sqlite3.c p->aLabel = sqlite3DbReallocOrFree(p->db, p->aLabel, db 57367 third_party/sqlite/amalgamation/sqlite3.c p->nLabelAlloc = sqlite3DbMallocSize(p->db, p->aLabel)/sizeof(p->aLabel[0]); db 57453 third_party/sqlite/amalgamation/sqlite3.c p->apSub = sqlite3DbReallocOrFree(v->db, p->apSub, nByte); db 57506 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(v->db, sIter.apSub); db 57513 third_party/sqlite/amalgamation/sqlite3.c return ( v->db->mallocFailed || hasAbort==mayAbort ); db 57561 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(p->db, p->aLabel); db 57588 third_party/sqlite/amalgamation/sqlite3.c assert( aOp && !p->db->mallocFailed ); db 57702 third_party/sqlite/amalgamation/sqlite3.c static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){ db 57704 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pDef); db 57713 third_party/sqlite/amalgamation/sqlite3.c static void freeP4(sqlite3 *db, int p4type, void *p4){ db 57715 third_party/sqlite/amalgamation/sqlite3.c assert( db ); db 57723 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p4); db 57727 third_party/sqlite/amalgamation/sqlite3.c if( db->pnBytesFreed==0 ) sqlite3_free(p4); db 57732 third_party/sqlite/amalgamation/sqlite3.c freeEphemeralFunction(db, pVdbeFunc->pFunc); db 57733 third_party/sqlite/amalgamation/sqlite3.c if( db->pnBytesFreed==0 ) sqlite3VdbeDeleteAuxData(pVdbeFunc, 0); db 57734 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pVdbeFunc); db 57738 third_party/sqlite/amalgamation/sqlite3.c freeEphemeralFunction(db, (FuncDef*)p4); db 57742 third_party/sqlite/amalgamation/sqlite3.c if( db->pnBytesFreed==0 ){ db 57746 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zMalloc); db 57747 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 57752 third_party/sqlite/amalgamation/sqlite3.c if( db->pnBytesFreed==0 ) sqlite3VtabUnlock((VTable *)p4); db 57764 third_party/sqlite/amalgamation/sqlite3.c static void vdbeFreeOpArray(sqlite3 *db, Op *aOp, int nOp){ db 57768 third_party/sqlite/amalgamation/sqlite3.c freeP4(db, pOp->p4type, pOp->p4.p); db 57770 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pOp->zComment); db 57774 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aOp); db 57793 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 57795 third_party/sqlite/amalgamation/sqlite3.c freeP4(db, pOp->p4type, pOp->p4.p); db 57830 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 57832 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 57834 third_party/sqlite/amalgamation/sqlite3.c if( p->aOp==0 || db->mallocFailed ){ db 57836 third_party/sqlite/amalgamation/sqlite3.c freeP4(db, n, (void*)*(char**)&zP4); db 57846 third_party/sqlite/amalgamation/sqlite3.c freeP4(db, pOp->p4type, pOp->p4.p); db 57874 third_party/sqlite/amalgamation/sqlite3.c p->db->mallocFailed = 1; db 57884 third_party/sqlite/amalgamation/sqlite3.c assert( ((VTable *)zP4)->db==p->db ); db 57890 third_party/sqlite/amalgamation/sqlite3.c pOp->p4.z = sqlite3DbStrNDup(p->db, zP4, n); db 57906 third_party/sqlite/amalgamation/sqlite3.c assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed ); db 57910 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(p->db, *pz); db 57911 third_party/sqlite/amalgamation/sqlite3.c *pz = sqlite3VMPrintf(p->db, zFormat, ap); db 57920 third_party/sqlite/amalgamation/sqlite3.c assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed ); db 57924 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(p->db, *pz); db 57925 third_party/sqlite/amalgamation/sqlite3.c *pz = sqlite3VMPrintf(p->db, zFormat, ap); db 57963 third_party/sqlite/amalgamation/sqlite3.c assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed ); db 57964 third_party/sqlite/amalgamation/sqlite3.c if( p->db->mallocFailed ){ db 58084 third_party/sqlite/amalgamation/sqlite3.c assert( i>=0 && i<p->db->nDb && i<(int)sizeof(yDbMask)*8 ); db 58087 third_party/sqlite/amalgamation/sqlite3.c if( i!=1 && sqlite3BtreeSharable(p->db->aDb[i].pBt) ){ db 58117 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 58121 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 58122 third_party/sqlite/amalgamation/sqlite3.c aDb = db->aDb; db 58123 third_party/sqlite/amalgamation/sqlite3.c nDb = db->nDb; db 58139 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 58143 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 58144 third_party/sqlite/amalgamation/sqlite3.c aDb = db->aDb; db 58145 third_party/sqlite/amalgamation/sqlite3.c nDb = db->nDb; db 58182 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 58183 third_party/sqlite/amalgamation/sqlite3.c u8 malloc_failed = db->mallocFailed; db 58184 third_party/sqlite/amalgamation/sqlite3.c if( db->pnBytesFreed ){ db 58186 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zMalloc); db 58191 third_party/sqlite/amalgamation/sqlite3.c assert( (&p[1])==pEnd || p[0].db==p[1].db ); db 58208 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zMalloc); db 58214 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = malloc_failed; db 58230 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(p->v->db, p); db 58256 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; /* The database connection */ db 58274 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 58310 third_party/sqlite/amalgamation/sqlite3.c }else if( db->u1.isInterrupted ){ db 58313 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3ErrStr(p->rc)); db 58381 third_party/sqlite/amalgamation/sqlite3.c assert( p->db->mallocFailed ); db 58398 third_party/sqlite/amalgamation/sqlite3.c assert( p->db->mallocFailed ); db 58545 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 58573 third_party/sqlite/amalgamation/sqlite3.c if( nVar>=0 && ALWAYS(db->mallocFailed==0) ){ db 58606 third_party/sqlite/amalgamation/sqlite3.c p->pFree = sqlite3DbMallocZero(db, nByte); db 58610 third_party/sqlite/amalgamation/sqlite3.c }while( nByte && !db->mallocFailed ); db 58617 third_party/sqlite/amalgamation/sqlite3.c p->aVar[n].db = db; db 58625 third_party/sqlite/amalgamation/sqlite3.c p->aMem[n].db = db; db 58631 third_party/sqlite/amalgamation/sqlite3.c assert( p->aMem[n].db==db ); db 58695 third_party/sqlite/amalgamation/sqlite3.c v->db->lastRowid = pFrame->lastRowid; db 58745 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 58755 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zErrMsg); db 58769 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 58772 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->aColName); db 58775 third_party/sqlite/amalgamation/sqlite3.c p->aColName = pColName = (Mem*)sqlite3DbMallocZero(db, sizeof(Mem)*n ); db 58779 third_party/sqlite/amalgamation/sqlite3.c pColName->db = p->db; db 58805 third_party/sqlite/amalgamation/sqlite3.c if( p->db->mallocFailed ){ db 58822 third_party/sqlite/amalgamation/sqlite3.c static int vdbeCommit(sqlite3 *db, Vdbe *p){ db 58841 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3VtabSync(db, &p->zErrMsg); db 58849 third_party/sqlite/amalgamation/sqlite3.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 58850 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 58862 third_party/sqlite/amalgamation/sqlite3.c if( needXcommit && db->xCommitCallback ){ db 58863 third_party/sqlite/amalgamation/sqlite3.c rc = db->xCommitCallback(db->pCommitArg); db 58878 third_party/sqlite/amalgamation/sqlite3.c if( 0==sqlite3Strlen30(sqlite3BtreeGetFilename(db->aDb[0].pBt)) db 58881 third_party/sqlite/amalgamation/sqlite3.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 58882 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 58893 third_party/sqlite/amalgamation/sqlite3.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 58894 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 58900 third_party/sqlite/amalgamation/sqlite3.c sqlite3VtabCommit(db); db 58910 third_party/sqlite/amalgamation/sqlite3.c sqlite3_vfs *pVfs = db->pVfs; db 58913 third_party/sqlite/amalgamation/sqlite3.c char const *zMainFile = sqlite3BtreeGetFilename(db->aDb[0].pBt); db 58921 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zMaster); db 58923 third_party/sqlite/amalgamation/sqlite3.c zMaster = sqlite3MPrintf(db, "%s-mj%08X", zMainFile, iRandom&0x7fffffff); db 58937 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zMaster); db 58947 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 58948 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 58963 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zMaster); db 58978 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zMaster); db 58992 third_party/sqlite/amalgamation/sqlite3.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 58993 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 59001 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zMaster); db 59010 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zMaster); db 59025 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 59026 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 59034 third_party/sqlite/amalgamation/sqlite3.c sqlite3VtabCommit(db); db 59051 third_party/sqlite/amalgamation/sqlite3.c static void checkActiveVdbeCnt(sqlite3 *db){ db 59055 third_party/sqlite/amalgamation/sqlite3.c p = db->pVdbe; db 59063 third_party/sqlite/amalgamation/sqlite3.c assert( cnt==db->activeVdbeCnt ); db 59064 third_party/sqlite/amalgamation/sqlite3.c assert( nWrite==db->writeVdbeCnt ); db 59086 third_party/sqlite/amalgamation/sqlite3.c static void invalidateCursorsOnModifiedBtrees(sqlite3 *db){ db 59088 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 59089 third_party/sqlite/amalgamation/sqlite3.c Btree *p = db->aDb[i].pBt; db 59107 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *const db = p->db; db 59115 third_party/sqlite/amalgamation/sqlite3.c if( db->nStatement && p->iStatement ){ db 59120 third_party/sqlite/amalgamation/sqlite3.c assert( db->nStatement>0 ); db 59121 third_party/sqlite/amalgamation/sqlite3.c assert( p->iStatement==(db->nStatement+db->nSavepoint) ); db 59123 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 59125 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 59138 third_party/sqlite/amalgamation/sqlite3.c db->nStatement--; db 59145 third_party/sqlite/amalgamation/sqlite3.c db->nDeferredCons = p->nStmtDefCons; db 59163 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 59164 third_party/sqlite/amalgamation/sqlite3.c if( (deferred && db->nDeferredCons>0) || (!deferred && p->nFkConstraint>0) ){ db 59167 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "foreign key constraint failed"); db 59189 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 59207 third_party/sqlite/amalgamation/sqlite3.c if( p->db->mallocFailed ){ db 59214 third_party/sqlite/amalgamation/sqlite3.c checkActiveVdbeCnt(db); db 59250 third_party/sqlite/amalgamation/sqlite3.c invalidateCursorsOnModifiedBtrees(db); db 59251 third_party/sqlite/amalgamation/sqlite3.c sqlite3RollbackAll(db); db 59252 third_party/sqlite/amalgamation/sqlite3.c sqlite3CloseSavepoints(db); db 59253 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 1; db 59269 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3VtabInSync(db) db 59270 third_party/sqlite/amalgamation/sqlite3.c && db->autoCommit db 59271 third_party/sqlite/amalgamation/sqlite3.c && db->writeVdbeCnt==(p->readOnly==0) db 59286 third_party/sqlite/amalgamation/sqlite3.c rc = vdbeCommit(db, p); db 59293 third_party/sqlite/amalgamation/sqlite3.c sqlite3RollbackAll(db); db 59295 third_party/sqlite/amalgamation/sqlite3.c db->nDeferredCons = 0; db 59296 third_party/sqlite/amalgamation/sqlite3.c sqlite3CommitInternalChanges(db); db 59299 third_party/sqlite/amalgamation/sqlite3.c sqlite3RollbackAll(db); db 59301 third_party/sqlite/amalgamation/sqlite3.c db->nStatement = 0; db 59308 third_party/sqlite/amalgamation/sqlite3.c invalidateCursorsOnModifiedBtrees(db); db 59309 third_party/sqlite/amalgamation/sqlite3.c sqlite3RollbackAll(db); db 59310 third_party/sqlite/amalgamation/sqlite3.c sqlite3CloseSavepoints(db); db 59311 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 1; db 59332 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zErrMsg); db 59335 third_party/sqlite/amalgamation/sqlite3.c invalidateCursorsOnModifiedBtrees(db); db 59336 third_party/sqlite/amalgamation/sqlite3.c sqlite3RollbackAll(db); db 59337 third_party/sqlite/amalgamation/sqlite3.c sqlite3CloseSavepoints(db); db 59338 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 1; db 59347 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeSetChanges(db, p->nChange); db 59349 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeSetChanges(db, 0); db 59355 third_party/sqlite/amalgamation/sqlite3.c if( p->rc!=SQLITE_OK && db->flags&SQLITE_InternChanges ){ db 59356 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 59357 third_party/sqlite/amalgamation/sqlite3.c db->flags = (db->flags | SQLITE_InternChanges); db 59366 third_party/sqlite/amalgamation/sqlite3.c db->activeVdbeCnt--; db 59368 third_party/sqlite/amalgamation/sqlite3.c db->writeVdbeCnt--; db 59370 third_party/sqlite/amalgamation/sqlite3.c assert( db->activeVdbeCnt>=db->writeVdbeCnt ); db 59373 third_party/sqlite/amalgamation/sqlite3.c checkActiveVdbeCnt(db); db 59374 third_party/sqlite/amalgamation/sqlite3.c if( p->db->mallocFailed ){ db 59382 third_party/sqlite/amalgamation/sqlite3.c if( db->autoCommit ){ db 59383 third_party/sqlite/amalgamation/sqlite3.c sqlite3ConnectionUnlocked(db); db 59386 third_party/sqlite/amalgamation/sqlite3.c assert( db->activeVdbeCnt>0 || db->autoCommit==0 || db->nStatement==0 ); db 59411 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 59412 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 59428 third_party/sqlite/amalgamation/sqlite3.c sqlite3ValueSetStr(db->pErr,-1,p->zErrMsg,SQLITE_UTF8,SQLITE_TRANSIENT); db 59430 third_party/sqlite/amalgamation/sqlite3.c db->errCode = p->rc; db 59431 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zErrMsg); db 59434 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, p->rc, 0); db 59436 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_OK, 0); db 59444 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, p->rc, 0); db 59445 third_party/sqlite/amalgamation/sqlite3.c sqlite3ValueSetStr(db->pErr, -1, p->zErrMsg, SQLITE_UTF8, SQLITE_TRANSIENT); db 59446 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zErrMsg); db 59479 third_party/sqlite/amalgamation/sqlite3.c return p->rc & db->errMask; db 59490 third_party/sqlite/amalgamation/sqlite3.c assert( (rc & p->db->errMask)==rc ); db 59521 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3VdbeDeleteObject(sqlite3 *db, Vdbe *p){ db 59523 third_party/sqlite/amalgamation/sqlite3.c assert( p->db==0 || p->db==db ); db 59528 third_party/sqlite/amalgamation/sqlite3.c vdbeFreeOpArray(db, pSub->aOp, pSub->nOp); db 59529 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pSub); db 59531 third_party/sqlite/amalgamation/sqlite3.c vdbeFreeOpArray(db, p->aOp, p->nOp); db 59532 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->aLabel); db 59533 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->aColName); db 59534 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zSql); db 59535 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->pFree); db 59536 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 59543 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 59546 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 59550 third_party/sqlite/amalgamation/sqlite3.c assert( db->pVdbe==p ); db 59551 third_party/sqlite/amalgamation/sqlite3.c db->pVdbe = p->pNext; db 59557 third_party/sqlite/amalgamation/sqlite3.c p->db = 0; db 59558 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeDeleteObject(db, p); db 59680 third_party/sqlite/amalgamation/sqlite3.c assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) ); db 59956 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3DbMallocRaw(pKeyInfo->db, nByte); db 59975 third_party/sqlite/amalgamation/sqlite3.c pMem->db = pKeyInfo->db; db 60005 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(p->pKeyInfo->db, p); db 60051 third_party/sqlite/amalgamation/sqlite3.c mem1.db = pKeyInfo->db; db 60144 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){ db 60152 third_party/sqlite/amalgamation/sqlite3.c UNUSED_PARAMETER(db); db 60258 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3VdbeSetChanges(sqlite3 *db, int nChange){ db 60259 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 60260 third_party/sqlite/amalgamation/sqlite3.c db->nChange = nChange; db 60261 third_party/sqlite/amalgamation/sqlite3.c db->nTotalChange += nChange; db 60282 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ExpirePreparedStatements(sqlite3 *db){ db 60284 third_party/sqlite/amalgamation/sqlite3.c for(p = db->pVdbe; p; p=p->pNext){ db 60293 third_party/sqlite/amalgamation/sqlite3.c return v->db; db 60309 third_party/sqlite/amalgamation/sqlite3.c sqlite3_value *pRet = sqlite3ValueNew(v->db); db 60374 third_party/sqlite/amalgamation/sqlite3.c if( p->db==0 ){ db 60407 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = v->db; db 60413 third_party/sqlite/amalgamation/sqlite3.c mutex = v->db->mutex; db 60417 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 60437 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(v->db->mutex); db 60440 third_party/sqlite/amalgamation/sqlite3.c assert( (rc & (v->db->errMask))==rc ); db 60441 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(v->db, rc); db 60442 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(v->db->mutex); db 60455 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex; db 60544 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60548 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60552 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60558 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60564 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60568 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60572 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60581 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60591 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60600 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60609 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60614 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60618 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60631 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60639 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60642 third_party/sqlite/amalgamation/sqlite3.c pCtx->s.db->mallocFailed = 1; db 60649 third_party/sqlite/amalgamation/sqlite3.c static int doWalCallbacks(sqlite3 *db){ db 60653 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 60654 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 60657 third_party/sqlite/amalgamation/sqlite3.c if( db->xWalCallback && nEntry>0 && rc==SQLITE_OK ){ db 60658 third_party/sqlite/amalgamation/sqlite3.c rc = db->xWalCallback(db->pWalArg, db, db->aDb[i].zName, nEntry); db 60676 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 60709 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 60710 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 60725 third_party/sqlite/amalgamation/sqlite3.c if( db->activeVdbeCnt==0 ){ db 60726 third_party/sqlite/amalgamation/sqlite3.c db->u1.isInterrupted = 0; db 60729 third_party/sqlite/amalgamation/sqlite3.c assert( db->writeVdbeCnt>0 || db->autoCommit==0 || db->nDeferredCons==0 ); db 60732 third_party/sqlite/amalgamation/sqlite3.c if( db->xProfile && !db->init.busy ){ db 60733 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsCurrentTimeInt64(db->pVfs, &p->startTime); db 60737 third_party/sqlite/amalgamation/sqlite3.c db->activeVdbeCnt++; db 60738 third_party/sqlite/amalgamation/sqlite3.c if( p->readOnly==0 ) db->writeVdbeCnt++; db 60747 third_party/sqlite/amalgamation/sqlite3.c db->vdbeExecCnt++; db 60749 third_party/sqlite/amalgamation/sqlite3.c db->vdbeExecCnt--; db 60755 third_party/sqlite/amalgamation/sqlite3.c if( rc!=SQLITE_ROW && db->xProfile && !db->init.busy && p->zSql ){ db 60757 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsCurrentTimeInt64(db->pVfs, &iNow); db 60758 third_party/sqlite/amalgamation/sqlite3.c db->xProfile(db->pProfileArg, p->zSql, (iNow - p->startTime)*1000000); db 60764 third_party/sqlite/amalgamation/sqlite3.c p->rc = doWalCallbacks(db); db 60770 third_party/sqlite/amalgamation/sqlite3.c db->errCode = rc; db 60771 third_party/sqlite/amalgamation/sqlite3.c if( SQLITE_NOMEM==sqlite3ApiExit(p->db, p->rc) ){ db 60791 third_party/sqlite/amalgamation/sqlite3.c rc = db->errCode = p->rc; db 60793 third_party/sqlite/amalgamation/sqlite3.c return (rc&db->errMask); db 60806 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection */ db 60811 third_party/sqlite/amalgamation/sqlite3.c db = v->db; db 60812 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 60819 third_party/sqlite/amalgamation/sqlite3.c if( rc2!=SQLITE_OK && ALWAYS(v->isPrepareV2) && ALWAYS(db->pErr) ){ db 60828 third_party/sqlite/amalgamation/sqlite3.c const char *zErr = (const char *)sqlite3_value_text(db->pErr); db 60829 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, v->zErrMsg); db 60830 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed ){ db 60831 third_party/sqlite/amalgamation/sqlite3.c v->zErrMsg = sqlite3DbStrDup(db, zErr); db 60838 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 60839 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 60864 third_party/sqlite/amalgamation/sqlite3.c return p->s.db; db 60897 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(p->s.db->mutex) ); db 60924 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60947 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 60952 third_party/sqlite/amalgamation/sqlite3.c pVdbeFunc = sqlite3DbRealloc(pCtx->s.db, pVdbeFunc, nMalloc); db 61023 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(pVm->db->mutex); db 61047 third_party/sqlite/amalgamation/sqlite3.c if( pVm && ALWAYS(pVm->db) ){ db 61048 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(pVm->db->mutex); db 61049 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(pVm->db, SQLITE_RANGE, 0); db 61083 third_party/sqlite/amalgamation/sqlite3.c p->rc = sqlite3ApiExit(p->db, p->rc); db 61084 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61186 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 61188 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 61192 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 61193 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed==0 ); db 61198 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 61199 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 0; db 61202 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 61319 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(p->db->mutex); db 61321 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(p->db, SQLITE_MISUSE, 0); db 61322 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61328 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(p->db, SQLITE_RANGE, 0); db 61329 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61336 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(p->db, SQLITE_OK, 0); db 61376 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3VdbeChangeEncoding(pVar, ENC(p->db)); db 61378 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(p->db, rc, 0); db 61379 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(p->db, rc); db 61381 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61407 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61420 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61429 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61490 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61513 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(p->db->mutex); db 61526 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(p->db->mutex); db 61577 third_party/sqlite/amalgamation/sqlite3.c assert( pTo->db==pFrom->db ); db 61579 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(pTo->db->mutex); db 61583 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(pTo->db->mutex); db 61623 third_party/sqlite/amalgamation/sqlite3.c return pStmt ? ((Vdbe*)pStmt)->db : 0; db 61730 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection */ db 61740 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 61742 third_party/sqlite/amalgamation/sqlite3.c db->aLimit[SQLITE_LIMIT_LENGTH]); db 61743 third_party/sqlite/amalgamation/sqlite3.c out.db = db; db 61744 third_party/sqlite/amalgamation/sqlite3.c if( db->vdbeExecCnt>1 ){ db 61786 third_party/sqlite/amalgamation/sqlite3.c u8 enc = ENC(db); db 61790 third_party/sqlite/amalgamation/sqlite3.c utf8.db = db; db 62383 third_party/sqlite/amalgamation/sqlite3.c if( db->u1.isInterrupted ) goto abort_due_to_interrupt; db 62397 third_party/sqlite/amalgamation/sqlite3.c static int checkSavepointCount(sqlite3 *db){ db 62400 third_party/sqlite/amalgamation/sqlite3.c for(p=db->pSavepoint; p; p=p->pNext) n++; db 62401 third_party/sqlite/amalgamation/sqlite3.c assert( n==(db->nSavepoint + db->isTransactionSavepoint) ); db 62412 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 62413 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zErrMsg); db 62414 third_party/sqlite/amalgamation/sqlite3.c p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg); db 62458 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; /* The database */ db 62460 third_party/sqlite/amalgamation/sqlite3.c u8 encoding = ENC(db); /* The database encoding */ db 62896 third_party/sqlite/amalgamation/sqlite3.c db->busyHandler.nBusy = 0; db 62900 third_party/sqlite/amalgamation/sqlite3.c checkProgress = db->xProgress!=0; db 62904 third_party/sqlite/amalgamation/sqlite3.c if( p->pc==0 && (p->db->flags & SQLITE_VdbeListing)!=0 ){ db 62916 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) goto no_mem; db 62943 third_party/sqlite/amalgamation/sqlite3.c sqlite3_interrupt(db); db 62956 third_party/sqlite/amalgamation/sqlite3.c if( db->nProgressOps==nProgressOps ){ db 62958 third_party/sqlite/amalgamation/sqlite3.c prc = db->xProgress(db->pProgressArg); db 63148 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeSetChanges(db, p->nChange); db 63168 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "%s", pOp->p4.z); db 63181 third_party/sqlite/amalgamation/sqlite3.c assert( rc==SQLITE_OK || db->nDeferredCons>0 ); db 63242 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pOp->p4.z); db 63249 third_party/sqlite/amalgamation/sqlite3.c if( pOp->p1>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 63415 third_party/sqlite/amalgamation/sqlite3.c assert( db->flags&SQLITE_CountRows ); db 63435 third_party/sqlite/amalgamation/sqlite3.c assert( p->iStatement==0 || db->flags&SQLITE_CountRows ); db 63458 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) goto no_mem; db 63496 third_party/sqlite/amalgamation/sqlite3.c if( u.ae.nByte>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 63704 third_party/sqlite/amalgamation/sqlite3.c u.ag.ctx.s.db = db; db 63723 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 63744 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3_value_text(&u.ag.ctx.s)); db 63923 third_party/sqlite/amalgamation/sqlite3.c assert( pIn1->flags & MEM_Str || db->mallocFailed ); db 63943 third_party/sqlite/amalgamation/sqlite3.c assert( pIn1->flags & MEM_Str || db->mallocFailed ); db 64124 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) goto no_mem; db 64514 third_party/sqlite/amalgamation/sqlite3.c assert( db->aLimit[SQLITE_LIMIT_LENGTH]>=0 ); db 64515 third_party/sqlite/amalgamation/sqlite3.c if( u.am.payloadSize > (u32)db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 64600 third_party/sqlite/amalgamation/sqlite3.c u.am.sMem.db = 0; db 64827 third_party/sqlite/amalgamation/sqlite3.c if( u.ao.nByte>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 64913 third_party/sqlite/amalgamation/sqlite3.c assert( db->pSavepoint==0 || db->autoCommit==0 ); db 64915 third_party/sqlite/amalgamation/sqlite3.c assert( db->pSavepoint || db->isTransactionSavepoint==0 ); db 64916 third_party/sqlite/amalgamation/sqlite3.c assert( checkSavepointCount(db) ); db 64919 third_party/sqlite/amalgamation/sqlite3.c if( db->writeVdbeCnt>0 ){ db 64923 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "cannot open savepoint - " db 64930 third_party/sqlite/amalgamation/sqlite3.c u.aq.pNew = sqlite3DbMallocRaw(db, sizeof(Savepoint)+u.aq.nName+1); db 64937 third_party/sqlite/amalgamation/sqlite3.c if( db->autoCommit ){ db 64938 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 0; db 64939 third_party/sqlite/amalgamation/sqlite3.c db->isTransactionSavepoint = 1; db 64941 third_party/sqlite/amalgamation/sqlite3.c db->nSavepoint++; db 64945 third_party/sqlite/amalgamation/sqlite3.c u.aq.pNew->pNext = db->pSavepoint; db 64946 third_party/sqlite/amalgamation/sqlite3.c db->pSavepoint = u.aq.pNew; db 64947 third_party/sqlite/amalgamation/sqlite3.c u.aq.pNew->nDeferredCons = db->nDeferredCons; db 64956 third_party/sqlite/amalgamation/sqlite3.c u.aq.pSavepoint = db->pSavepoint; db 64963 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "no such savepoint: %s", u.aq.zName); db 64966 third_party/sqlite/amalgamation/sqlite3.c db->writeVdbeCnt>0 || (u.aq.p1==SAVEPOINT_ROLLBACK && db->activeVdbeCnt>1) db 64972 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, db 64983 third_party/sqlite/amalgamation/sqlite3.c int isTransaction = u.aq.pSavepoint->pNext==0 && db->isTransactionSavepoint; db 64988 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 1; db 64991 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 0; db 64995 third_party/sqlite/amalgamation/sqlite3.c db->isTransactionSavepoint = 0; db 64998 third_party/sqlite/amalgamation/sqlite3.c u.aq.iSavepoint = db->nSavepoint - u.aq.iSavepoint - 1; db 64999 third_party/sqlite/amalgamation/sqlite3.c for(u.aq.ii=0; u.aq.ii<db->nDb; u.aq.ii++){ db 65000 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3BtreeSavepoint(db->aDb[u.aq.ii].pBt, u.aq.p1, u.aq.iSavepoint); db 65005 third_party/sqlite/amalgamation/sqlite3.c if( u.aq.p1==SAVEPOINT_ROLLBACK && (db->flags&SQLITE_InternChanges)!=0 ){ db 65006 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 65007 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 65008 third_party/sqlite/amalgamation/sqlite3.c db->flags = (db->flags | SQLITE_InternChanges); db 65014 third_party/sqlite/amalgamation/sqlite3.c while( db->pSavepoint!=u.aq.pSavepoint ){ db 65015 third_party/sqlite/amalgamation/sqlite3.c u.aq.pTmp = db->pSavepoint; db 65016 third_party/sqlite/amalgamation/sqlite3.c db->pSavepoint = u.aq.pTmp->pNext; db 65017 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, u.aq.pTmp); db 65018 third_party/sqlite/amalgamation/sqlite3.c db->nSavepoint--; db 65026 third_party/sqlite/amalgamation/sqlite3.c assert( u.aq.pSavepoint==db->pSavepoint ); db 65027 third_party/sqlite/amalgamation/sqlite3.c db->pSavepoint = u.aq.pSavepoint->pNext; db 65028 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, u.aq.pSavepoint); db 65030 third_party/sqlite/amalgamation/sqlite3.c db->nSavepoint--; db 65033 third_party/sqlite/amalgamation/sqlite3.c db->nDeferredCons = u.aq.pSavepoint->nDeferredCons; db 65059 third_party/sqlite/amalgamation/sqlite3.c u.ar.turnOnAC = u.ar.desiredAutoCommit && !db->autoCommit; db 65062 third_party/sqlite/amalgamation/sqlite3.c assert( db->activeVdbeCnt>0 ); /* At least this one VM is active */ db 65064 third_party/sqlite/amalgamation/sqlite3.c if( u.ar.turnOnAC && u.ar.iRollback && db->activeVdbeCnt>1 ){ db 65069 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "cannot rollback transaction - " db 65072 third_party/sqlite/amalgamation/sqlite3.c }else if( u.ar.turnOnAC && !u.ar.iRollback && db->writeVdbeCnt>0 ){ db 65076 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "cannot commit transaction - " db 65079 third_party/sqlite/amalgamation/sqlite3.c }else if( u.ar.desiredAutoCommit!=db->autoCommit ){ db 65082 third_party/sqlite/amalgamation/sqlite3.c sqlite3RollbackAll(db); db 65083 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 1; db 65087 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = (u8)u.ar.desiredAutoCommit; db 65090 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = (u8)(1-u.ar.desiredAutoCommit); db 65095 third_party/sqlite/amalgamation/sqlite3.c assert( db->nStatement==0 ); db 65096 third_party/sqlite/amalgamation/sqlite3.c sqlite3CloseSavepoints(db); db 65104 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, db 65150 third_party/sqlite/amalgamation/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 65152 third_party/sqlite/amalgamation/sqlite3.c u.as.pBt = db->aDb[pOp->p1].pBt; db 65166 third_party/sqlite/amalgamation/sqlite3.c && (db->autoCommit==0 || db->activeVdbeCnt>1) db 65170 third_party/sqlite/amalgamation/sqlite3.c assert( db->nStatement>=0 && db->nSavepoint>=0 ); db 65171 third_party/sqlite/amalgamation/sqlite3.c db->nStatement++; db 65172 third_party/sqlite/amalgamation/sqlite3.c p->iStatement = db->nSavepoint + db->nStatement; db 65179 third_party/sqlite/amalgamation/sqlite3.c p->nStmtDefCons = db->nDeferredCons; db 65207 third_party/sqlite/amalgamation/sqlite3.c assert( u.at.iDb>=0 && u.at.iDb<db->nDb ); db 65208 third_party/sqlite/amalgamation/sqlite3.c assert( db->aDb[u.at.iDb].pBt!=0 ); db 65211 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeGetMeta(db->aDb[u.at.iDb].pBt, u.at.iCookie, (u32 *)&u.at.iMeta); db 65231 third_party/sqlite/amalgamation/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 65233 third_party/sqlite/amalgamation/sqlite3.c u.au.pDb = &db->aDb[pOp->p1]; db 65235 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, pOp->p1, 0) ); db 65243 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_InternChanges; db 65251 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 65282 third_party/sqlite/amalgamation/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 65284 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, pOp->p1, 0) ); db 65285 third_party/sqlite/amalgamation/sqlite3.c u.av.pBt = db->aDb[pOp->p1].pBt; db 65288 third_party/sqlite/amalgamation/sqlite3.c u.av.iGen = db->aDb[pOp->p1].pSchema->iGeneration; db 65293 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zErrMsg); db 65294 third_party/sqlite/amalgamation/sqlite3.c p->zErrMsg = sqlite3DbStrDup(db, "database schema has changed"); db 65308 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[pOp->p1].pSchema->schema_cookie!=u.av.iMeta ){ db 65309 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, pOp->p1); db 65389 third_party/sqlite/amalgamation/sqlite3.c assert( u.aw.iDb>=0 && u.aw.iDb<db->nDb ); db 65391 third_party/sqlite/amalgamation/sqlite3.c u.aw.pDb = &db->aDb[u.aw.iDb]; db 65396 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, u.aw.iDb, 0) ); db 65422 third_party/sqlite/amalgamation/sqlite3.c u.aw.pKeyInfo->enc = ENC(p->db); db 65495 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3BtreeOpen(0, db, &u.ax.pCx->pBt, db 65515 third_party/sqlite/amalgamation/sqlite3.c u.ax.pCx->pKeyInfo->enc = ENC(p->db); db 66169 third_party/sqlite/amalgamation/sqlite3.c u.be.v = db->lastRowid; db 66281 third_party/sqlite/amalgamation/sqlite3.c if( pOp->p5 & OPFLAG_LASTROWID ) db->lastRowid = u.bf.iKey; db 66304 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_OK && db->xUpdateCallback && pOp->p4.z ){ db 66305 third_party/sqlite/amalgamation/sqlite3.c u.bf.zDb = db->aDb[u.bf.pC->iDb].zName; db 66309 third_party/sqlite/amalgamation/sqlite3.c db->xUpdateCallback(db->pUpdateArg, u.bf.op, u.bf.zDb, u.bf.zTbl, u.bf.iKey); db 66350 third_party/sqlite/amalgamation/sqlite3.c if( db->xUpdateCallback && pOp->p4.z ){ db 66372 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_OK && db->xUpdateCallback && pOp->p4.z ){ db 66373 third_party/sqlite/amalgamation/sqlite3.c const char *zDb = db->aDb[u.bg.pC->iDb].zName; db 66375 third_party/sqlite/amalgamation/sqlite3.c db->xUpdateCallback(db->pUpdateArg, SQLITE_DELETE, zDb, zTbl, u.bg.iKey); db 66389 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeSetChanges(db, p->nChange); db 66451 third_party/sqlite/amalgamation/sqlite3.c if( u.bh.n64>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 66458 third_party/sqlite/amalgamation/sqlite3.c if( u.bh.n>(u32)db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 66806 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3VdbeIdxRowid(db, u.bp.pCrsr, &u.bp.rowid); db 66913 third_party/sqlite/amalgamation/sqlite3.c for(u.br.pVdbe=db->pVdbe; u.br.pVdbe; u.br.pVdbe = u.br.pVdbe->pNext){ db 66919 third_party/sqlite/amalgamation/sqlite3.c u.br.iCnt = db->activeVdbeCnt; db 66929 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3BtreeDropTable(db->aDb[u.br.iDb].pBt, pOp->p1, &u.br.iMoved); db 66934 third_party/sqlite/amalgamation/sqlite3.c sqlite3RootPageMoved(db, u.br.iDb, u.br.iMoved, pOp->p1); db 66970 third_party/sqlite/amalgamation/sqlite3.c db->aDb[pOp->p2].pBt, pOp->p1, (pOp->p3 ? &u.bs.nChange : 0) db 67014 third_party/sqlite/amalgamation/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 67016 third_party/sqlite/amalgamation/sqlite3.c u.bt.pDb = &db->aDb[pOp->p1]; db 67050 third_party/sqlite/amalgamation/sqlite3.c for(u.bu.iDb=0; u.bu.iDb<db->nDb; u.bu.iDb++){ db 67051 third_party/sqlite/amalgamation/sqlite3.c assert( u.bu.iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[u.bu.iDb].pBt) ); db 67056 third_party/sqlite/amalgamation/sqlite3.c assert( u.bu.iDb>=0 && u.bu.iDb<db->nDb ); db 67057 third_party/sqlite/amalgamation/sqlite3.c assert( DbHasProperty(db, u.bu.iDb, DB_SchemaLoaded) ); db 67060 third_party/sqlite/amalgamation/sqlite3.c u.bu.initData.db = db; db 67063 third_party/sqlite/amalgamation/sqlite3.c u.bu.zSql = sqlite3MPrintf(db, db 67065 third_party/sqlite/amalgamation/sqlite3.c db->aDb[u.bu.iDb].zName, u.bu.zMaster, pOp->p4.z); db 67069 third_party/sqlite/amalgamation/sqlite3.c assert( db->init.busy==0 ); db 67070 third_party/sqlite/amalgamation/sqlite3.c db->init.busy = 1; db 67072 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 67073 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(db, u.bu.zSql, sqlite3InitCallback, &u.bu.initData, 0); db 67075 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, u.bu.zSql); db 67076 third_party/sqlite/amalgamation/sqlite3.c db->init.busy = 0; db 67093 third_party/sqlite/amalgamation/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 67094 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3AnalysisLoad(db, pOp->p1); db 67107 third_party/sqlite/amalgamation/sqlite3.c sqlite3UnlinkAndDeleteTable(db, pOp->p1, pOp->p4.z); db 67119 third_party/sqlite/amalgamation/sqlite3.c sqlite3UnlinkAndDeleteIndex(db, pOp->p1, pOp->p4.z); db 67131 third_party/sqlite/amalgamation/sqlite3.c sqlite3UnlinkAndDeleteTrigger(db, pOp->p1, pOp->p4.z); db 67169 third_party/sqlite/amalgamation/sqlite3.c u.bv.aRoot = sqlite3DbMallocRaw(db, sizeof(int)*(u.bv.nRoot+1) ); db 67180 third_party/sqlite/amalgamation/sqlite3.c assert( pOp->p5<db->nDb ); db 67182 third_party/sqlite/amalgamation/sqlite3.c u.bv.z = sqlite3BtreeIntegrityCheck(db->aDb[pOp->p5].pBt, u.bv.aRoot, u.bv.nRoot, db 67184 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, u.bv.aRoot); db 67353 third_party/sqlite/amalgamation/sqlite3.c if( p->nFrame>=db->aLimit[SQLITE_LIMIT_TRIGGER_DEPTH] ){ db 67355 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "too many levels of trigger recursion"); db 67373 third_party/sqlite/amalgamation/sqlite3.c u.by.pFrame = sqlite3DbMallocZero(db, u.by.nByte); db 67396 third_party/sqlite/amalgamation/sqlite3.c u.by.pMem->db = db; db 67407 third_party/sqlite/amalgamation/sqlite3.c u.by.pFrame->lastRowid = db->lastRowid; db 67457 third_party/sqlite/amalgamation/sqlite3.c db->nDeferredCons += pOp->p2; db 67477 third_party/sqlite/amalgamation/sqlite3.c if( db->nDeferredCons==0 ) pc = pOp->p2-1; db 67607 third_party/sqlite/amalgamation/sqlite3.c u.cb.ctx.s.db = db; db 67618 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3_value_text(&u.cb.ctx.s)); db 67648 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3_value_text(u.cc.pMem)); db 67683 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Checkpoint(db, pOp->p1, pOp->p2, &u.cd.aRes[1], &u.cd.aRes[2]); db 67725 third_party/sqlite/amalgamation/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 67727 third_party/sqlite/amalgamation/sqlite3.c u.ce.pBt = db->aDb[pOp->p1].pBt; db 67749 third_party/sqlite/amalgamation/sqlite3.c if( !db->autoCommit || db->activeVdbeCnt>1 ){ db 67751 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, db 67808 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3RunVacuum(&p->zErrMsg, db); db 67825 third_party/sqlite/amalgamation/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 67827 third_party/sqlite/amalgamation/sqlite3.c u.cf.pBt = db->aDb[pOp->p1].pBt; db 67848 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 67872 third_party/sqlite/amalgamation/sqlite3.c if( isWriteLock || 0==(db->flags&SQLITE_ReadUncommitted) ){ db 67874 third_party/sqlite/amalgamation/sqlite3.c assert( p1>=0 && p1<db->nDb ); db 67877 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3BtreeLockTable(db->aDb[p1].pBt, pOp->p2, isWriteLock); db 67880 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "database table is locked: %s", z); db 67902 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3VtabBegin(db, u.cg.pVTab); db 67915 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3VtabCallCreate(db, pOp->p1, pOp->p4.z, &p->zErrMsg); db 67928 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3VtabCallDestroy(db, pOp->p1, pOp->p4.z); db 67966 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 68236 third_party/sqlite/amalgamation/sqlite3.c db->lastRowid = u.cm.rowid; db 68250 third_party/sqlite/amalgamation/sqlite3.c pOut->u.i = sqlite3BtreeLastPage(db->aDb[pOp->p1].pBt); db 68269 third_party/sqlite/amalgamation/sqlite3.c pBt = db->aDb[pOp->p1].pBt; db 68294 third_party/sqlite/amalgamation/sqlite3.c if( db->xTrace ){ db 68296 third_party/sqlite/amalgamation/sqlite3.c db->xTrace(db->pTraceArg, z); db 68297 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, z); db 68300 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags & SQLITE_SqlTrace)!=0 ){ db 68378 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_IOERR_NOMEM ) db->mallocFailed = 1; db 68381 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, resetSchemaOnFault-1); db 68395 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "string or blob too big"); db 68402 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 68403 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "out of memory"); db 68412 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) rc = SQLITE_NOMEM; db 68414 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3ErrStr(rc)); db 68422 third_party/sqlite/amalgamation/sqlite3.c assert( db->u1.isInterrupted ); db 68425 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3ErrStr(rc)); db 68460 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The associated database */ db 68497 third_party/sqlite/amalgamation/sqlite3.c zErr = sqlite3MPrintf(p->db, "cannot open value of type %s", db 68519 third_party/sqlite/amalgamation/sqlite3.c zErr = sqlite3MPrintf(p->db, "no such rowid: %lld", iRow); db 68522 third_party/sqlite/amalgamation/sqlite3.c zErr = sqlite3MPrintf(p->db, "%s", sqlite3_errmsg(p->db)); db 68537 third_party/sqlite/amalgamation/sqlite3.c sqlite3* db, /* The database connection */ db 68590 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 68592 third_party/sqlite/amalgamation/sqlite3.c pBlob = (Incrblob *)sqlite3DbMallocZero(db, sizeof(Incrblob)); db 68594 third_party/sqlite/amalgamation/sqlite3.c pParse = sqlite3StackAllocRaw(db, sizeof(*pParse)); db 68599 third_party/sqlite/amalgamation/sqlite3.c pParse->db = db; db 68600 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErr); db 68603 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeEnterAll(db); db 68617 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErr); db 68622 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 68633 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErr); db 68634 third_party/sqlite/amalgamation/sqlite3.c zErr = sqlite3MPrintf(db, "no such column: \"%s\"", zColumn); db 68636 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 68648 third_party/sqlite/amalgamation/sqlite3.c if( db->flags&SQLITE_ForeignKeys ){ db 68673 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErr); db 68674 third_party/sqlite/amalgamation/sqlite3.c zErr = sqlite3MPrintf(db, "cannot open %s column for writing", zFault); db 68676 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 68681 third_party/sqlite/amalgamation/sqlite3.c pBlob->pStmt = (sqlite3_stmt *)sqlite3VdbeCreate(db); db 68682 third_party/sqlite/amalgamation/sqlite3.c assert( pBlob->pStmt || db->mallocFailed ); db 68685 third_party/sqlite/amalgamation/sqlite3.c int iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 68727 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed ){ db 68734 third_party/sqlite/amalgamation/sqlite3.c pBlob->db = db; db 68735 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 68736 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 68744 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_OK && db->mallocFailed==0 ){ db 68748 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pBlob); db 68750 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, (zErr ? "%s" : 0), zErr); db 68751 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErr); db 68752 third_party/sqlite/amalgamation/sqlite3.c sqlite3StackFree(db, pParse); db 68753 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 68754 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 68765 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 68768 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 68769 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 68771 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 68772 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 68792 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 68795 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 68796 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 68802 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_ERROR, 0); db 68812 third_party/sqlite/amalgamation/sqlite3.c assert( db == v->db ); db 68820 third_party/sqlite/amalgamation/sqlite3.c db->errCode = rc; db 68824 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 68825 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 68867 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 68870 third_party/sqlite/amalgamation/sqlite3.c db = p->db; db 68871 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 68882 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, (zErr ? "%s" : 0), zErr); db 68883 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErr); db 68888 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 68890 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 69588 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection */ db 69594 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 69596 third_party/sqlite/amalgamation/sqlite3.c pDup = sqlite3ExprDup(db, pOrig, 0); db 69604 third_party/sqlite/amalgamation/sqlite3.c pDup = sqlite3ExprDup(db, pOrig, 0); db 69610 third_party/sqlite/amalgamation/sqlite3.c pDup = sqlite3ExprDup(db, pOrig, 0); db 69615 third_party/sqlite/amalgamation/sqlite3.c pDup->u.zToken = sqlite3DbStrDup(db, zToken); db 69627 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pExpr); db 69629 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pDup); db 69670 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 69699 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 69710 third_party/sqlite/amalgamation/sqlite3.c if( zDb!=0 && sqlite3StrICmp(db->aDb[iDb].zName, zDb)!=0 ){ db 69913 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pExpr->pLeft); db 69915 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pExpr->pRight); db 69940 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){ db 69941 third_party/sqlite/amalgamation/sqlite3.c Expr *p = sqlite3ExprAlloc(db, TK_COLUMN, 0, 0); db 70054 third_party/sqlite/amalgamation/sqlite3.c u8 enc = ENC(pParse->db); /* The database encoding */ db 70060 third_party/sqlite/amalgamation/sqlite3.c pDef = sqlite3FindFunction(pParse->db, zId, nId, n, enc, 0); db 70062 third_party/sqlite/amalgamation/sqlite3.c pDef = sqlite3FindFunction(pParse->db, zId, nId, -1, enc, 0); db 70139 third_party/sqlite/amalgamation/sqlite3.c return (pParse->nErr || pParse->db->mallocFailed) ? WRC_Abort : WRC_Continue; db 70201 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Database connection */ db 70216 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 70217 third_party/sqlite/amalgamation/sqlite3.c savedSuppErr = db->suppressErr; db 70218 third_party/sqlite/amalgamation/sqlite3.c db->suppressErr = 1; db 70220 third_party/sqlite/amalgamation/sqlite3.c db->suppressErr = savedSuppErr; db 70273 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 70278 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 70280 third_party/sqlite/amalgamation/sqlite3.c if( pOrderBy->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){ db 70311 third_party/sqlite/amalgamation/sqlite3.c pDup = sqlite3ExprDup(db, pE, 0); db 70312 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed ){ db 70316 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pDup); db 70322 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pE); db 70323 third_party/sqlite/amalgamation/sqlite3.c pItem->pExpr = pE = sqlite3Expr(db, TK_INTEGER, 0); db 70363 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 70367 third_party/sqlite/amalgamation/sqlite3.c if( pOrderBy==0 || pParse->db->mallocFailed ) return 0; db 70369 third_party/sqlite/amalgamation/sqlite3.c if( pOrderBy->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){ db 70466 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Database connection */ db 70475 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 70487 third_party/sqlite/amalgamation/sqlite3.c return (pParse->nErr || db->mallocFailed) ? WRC_Abort : WRC_Prune; db 70534 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ) return WRC_Abort; db 70585 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 70595 third_party/sqlite/amalgamation/sqlite3.c if( resolveOrderGroupBy(&sNC, p, pGroupBy, "GROUP") || db->mallocFailed ){ db 70817 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 70818 third_party/sqlite/amalgamation/sqlite3.c zColl = sqlite3NameFromToken(db, pCollName); db 70821 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zColl); db 70845 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 70847 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3FindCollSeq(db, ENC(db), zColl, 0); db 71006 third_party/sqlite/amalgamation/sqlite3.c int mxHeight = pParse->db->aLimit[SQLITE_LIMIT_EXPR_DEPTH]; db 71116 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */ db 71132 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocZero(db, sizeof(Expr)+nExtra); db 71164 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */ db 71171 third_party/sqlite/amalgamation/sqlite3.c return sqlite3ExprAlloc(db, op, &x, 0); db 71181 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 71187 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed ); db 71188 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pLeft); db 71189 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pRight); db 71223 third_party/sqlite/amalgamation/sqlite3.c Expr *p = sqlite3ExprAlloc(pParse->db, op, pToken, 1); db 71224 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight); db 71235 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){ db 71241 third_party/sqlite/amalgamation/sqlite3.c Expr *pNew = sqlite3ExprAlloc(db, TK_AND, 0, 0); db 71242 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprAttachSubtrees(db, pNew, pLeft, pRight); db 71253 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 71255 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3ExprAlloc(db, TK_FUNCTION, pToken, 1); db 71257 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pList); /* Avoid memory leak when malloc fails */ db 71283 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 71303 third_party/sqlite/amalgamation/sqlite3.c testcase( i==db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER]-1 ); db 71304 third_party/sqlite/amalgamation/sqlite3.c testcase( i==db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER] ); db 71305 third_party/sqlite/amalgamation/sqlite3.c if( bOk==0 || i<1 || i>db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER] ){ db 71307 third_party/sqlite/amalgamation/sqlite3.c db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER]); db 71332 third_party/sqlite/amalgamation/sqlite3.c db, db 71337 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed ){ db 71343 third_party/sqlite/amalgamation/sqlite3.c if( !pParse->nErr && pParse->nVar>db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER] ){ db 71351 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ExprDelete(sqlite3 *db, Expr *p){ db 71356 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pLeft); db 71357 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pRight); db 71359 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->u.zToken); db 71362 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, p->x.pSelect); db 71364 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, p->x.pList); db 71368 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 71481 third_party/sqlite/amalgamation/sqlite3.c static Expr *exprDup(sqlite3 *db, Expr *p, int flags, u8 **pzBuffer){ db 71495 third_party/sqlite/amalgamation/sqlite3.c zAlloc = sqlite3DbMallocRaw(db, dupedExprSize(p, flags)); db 71538 third_party/sqlite/amalgamation/sqlite3.c pNew->x.pSelect = sqlite3SelectDup(db, p->x.pSelect, isReduced); db 71540 third_party/sqlite/amalgamation/sqlite3.c pNew->x.pList = sqlite3ExprListDup(db, p->x.pList, isReduced); db 71548 third_party/sqlite/amalgamation/sqlite3.c pNew->pLeft = exprDup(db, p->pLeft, EXPRDUP_REDUCE, &zAlloc); db 71549 third_party/sqlite/amalgamation/sqlite3.c pNew->pRight = exprDup(db, p->pRight, EXPRDUP_REDUCE, &zAlloc); db 71557 third_party/sqlite/amalgamation/sqlite3.c pNew->pLeft = sqlite3ExprDup(db, p->pLeft, 0); db 71558 third_party/sqlite/amalgamation/sqlite3.c pNew->pRight = sqlite3ExprDup(db, p->pRight, 0); db 71584 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Expr *sqlite3ExprDup(sqlite3 *db, Expr *p, int flags){ db 71585 third_party/sqlite/amalgamation/sqlite3.c return exprDup(db, p, flags, 0); db 71587 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){ db 71592 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocRaw(db, sizeof(*pNew) ); db 71596 third_party/sqlite/amalgamation/sqlite3.c pNew->a = pItem = sqlite3DbMallocRaw(db, p->nExpr*sizeof(p->a[0]) ); db 71598 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pNew); db 71604 third_party/sqlite/amalgamation/sqlite3.c pItem->pExpr = sqlite3ExprDup(db, pOldExpr, flags); db 71605 third_party/sqlite/amalgamation/sqlite3.c pItem->zName = sqlite3DbStrDup(db, pOldItem->zName); db 71606 third_party/sqlite/amalgamation/sqlite3.c pItem->zSpan = sqlite3DbStrDup(db, pOldItem->zSpan); db 71623 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){ db 71629 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocRaw(db, nByte ); db 71636 third_party/sqlite/amalgamation/sqlite3.c pNewItem->zDatabase = sqlite3DbStrDup(db, pOldItem->zDatabase); db 71637 third_party/sqlite/amalgamation/sqlite3.c pNewItem->zName = sqlite3DbStrDup(db, pOldItem->zName); db 71638 third_party/sqlite/amalgamation/sqlite3.c pNewItem->zAlias = sqlite3DbStrDup(db, pOldItem->zAlias); db 71642 third_party/sqlite/amalgamation/sqlite3.c pNewItem->zIndex = sqlite3DbStrDup(db, pOldItem->zIndex); db 71649 third_party/sqlite/amalgamation/sqlite3.c pNewItem->pSelect = sqlite3SelectDup(db, pOldItem->pSelect, flags); db 71650 third_party/sqlite/amalgamation/sqlite3.c pNewItem->pOn = sqlite3ExprDup(db, pOldItem->pOn, flags); db 71651 third_party/sqlite/amalgamation/sqlite3.c pNewItem->pUsing = sqlite3IdListDup(db, pOldItem->pUsing); db 71656 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3 *db, IdList *p){ db 71660 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocRaw(db, sizeof(*pNew) ); db 71663 third_party/sqlite/amalgamation/sqlite3.c pNew->a = sqlite3DbMallocRaw(db, p->nId*sizeof(p->a[0]) ); db 71665 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pNew); db 71671 third_party/sqlite/amalgamation/sqlite3.c pNewItem->zName = sqlite3DbStrDup(db, pOldItem->zName); db 71676 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){ db 71679 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocRaw(db, sizeof(*p) ); db 71681 third_party/sqlite/amalgamation/sqlite3.c pNew->pEList = sqlite3ExprListDup(db, p->pEList, flags); db 71682 third_party/sqlite/amalgamation/sqlite3.c pNew->pSrc = sqlite3SrcListDup(db, p->pSrc, flags); db 71683 third_party/sqlite/amalgamation/sqlite3.c pNew->pWhere = sqlite3ExprDup(db, p->pWhere, flags); db 71684 third_party/sqlite/amalgamation/sqlite3.c pNew->pGroupBy = sqlite3ExprListDup(db, p->pGroupBy, flags); db 71685 third_party/sqlite/amalgamation/sqlite3.c pNew->pHaving = sqlite3ExprDup(db, p->pHaving, flags); db 71686 third_party/sqlite/amalgamation/sqlite3.c pNew->pOrderBy = sqlite3ExprListDup(db, p->pOrderBy, flags); db 71688 third_party/sqlite/amalgamation/sqlite3.c pNew->pPrior = sqlite3SelectDup(db, p->pPrior, flags); db 71689 third_party/sqlite/amalgamation/sqlite3.c pNew->pLimit = sqlite3ExprDup(db, p->pLimit, flags); db 71690 third_party/sqlite/amalgamation/sqlite3.c pNew->pOffset = sqlite3ExprDup(db, p->pOffset, flags); db 71701 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){ db 71721 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 71723 third_party/sqlite/amalgamation/sqlite3.c pList = sqlite3DbMallocZero(db, sizeof(ExprList) ); db 71732 third_party/sqlite/amalgamation/sqlite3.c a = sqlite3DbRealloc(db, pList->a, n*sizeof(pList->a[0])); db 71737 third_party/sqlite/amalgamation/sqlite3.c pList->nAlloc = sqlite3DbMallocSize(db, a)/sizeof(a[0]); db 71749 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pExpr); db 71750 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pList); db 71768 third_party/sqlite/amalgamation/sqlite3.c assert( pList!=0 || pParse->db->mallocFailed!=0 ); db 71774 third_party/sqlite/amalgamation/sqlite3.c pItem->zName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n); db 71792 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 71793 third_party/sqlite/amalgamation/sqlite3.c assert( pList!=0 || db->mallocFailed!=0 ); db 71797 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed || pItem->pExpr==pSpan->pExpr ); db 71798 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pItem->zSpan); db 71799 third_party/sqlite/amalgamation/sqlite3.c pItem->zSpan = sqlite3DbStrNDup(db, (char*)pSpan->zStart, db 71813 third_party/sqlite/amalgamation/sqlite3.c int mx = pParse->db->aLimit[SQLITE_LIMIT_COLUMN]; db 71824 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){ db 71831 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pItem->pExpr); db 71832 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pItem->zName); db 71833 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pItem->zSpan); db 71835 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pList->a); db 71836 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pList); db 72179 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database connection */ db 72187 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 72224 third_party/sqlite/amalgamation/sqlite3.c && sqlite3FindCollSeq(db, ENC(db), pIdx->azColl[0], 0)==pReq db 72334 third_party/sqlite/amalgamation/sqlite3.c assert( testAddr>0 || pParse->db->mallocFailed ); db 72340 third_party/sqlite/amalgamation/sqlite3.c pParse->db, "EXECUTE %s%s SUBQUERY %d", testAddr?"":"CORRELATED ", db 72490 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(pParse->db, pSel->pLimit); db 72744 third_party/sqlite/amalgamation/sqlite3.c if( pParse->db->flags & SQLITE_ColumnCache ) return; db 73004 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 73008 third_party/sqlite/amalgamation/sqlite3.c assert( pParse->db->mallocFailed ); db 73271 third_party/sqlite/amalgamation/sqlite3.c u8 enc = ENC(db); /* The text encoding used by this database */ db 73286 third_party/sqlite/amalgamation/sqlite3.c pDef = sqlite3FindFunction(db, zId, nId, nFarg, enc, 0); db 73334 third_party/sqlite/amalgamation/sqlite3.c pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[1].pExpr); db 73336 third_party/sqlite/amalgamation/sqlite3.c pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[0].pExpr); db 73348 third_party/sqlite/amalgamation/sqlite3.c if( !pColl ) pColl = db->pDfltColl; db 73557 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed || pParse->nErr>0 db 73628 third_party/sqlite/amalgamation/sqlite3.c assert( pParse->pVdbe || pParse->db->mallocFailed ); db 73793 third_party/sqlite/amalgamation/sqlite3.c if( (pParse->db->flags & SQLITE_FactorOutConst)!=0 ) return; db 74232 third_party/sqlite/amalgamation/sqlite3.c static int addAggInfoColumn(sqlite3 *db, AggInfo *pInfo){ db 74235 third_party/sqlite/amalgamation/sqlite3.c db, db 74250 third_party/sqlite/amalgamation/sqlite3.c static int addAggInfoFunc(sqlite3 *db, AggInfo *pInfo){ db 74253 third_party/sqlite/amalgamation/sqlite3.c db, db 74304 third_party/sqlite/amalgamation/sqlite3.c && (k = addAggInfoColumn(pParse->db, pAggInfo))>=0 db 74362 third_party/sqlite/amalgamation/sqlite3.c u8 enc = ENC(pParse->db); db 74363 third_party/sqlite/amalgamation/sqlite3.c i = addAggInfoFunc(pParse->db, pAggInfo); db 74370 third_party/sqlite/amalgamation/sqlite3.c pItem->pFunc = sqlite3FindFunction(pParse->db, db 74545 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 74574 third_party/sqlite/amalgamation/sqlite3.c zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", ((u8*)tname.z) - zSql, zSql, db 74601 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 74622 third_party/sqlite/amalgamation/sqlite3.c zParent = sqlite3DbStrNDup(db, (const char *)z, n); db 74626 third_party/sqlite/amalgamation/sqlite3.c char *zOut = sqlite3MPrintf(db, "%s%.*s\"%w\"", db 74629 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zOutput); db 74633 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zParent); db 74637 third_party/sqlite/amalgamation/sqlite3.c zResult = sqlite3MPrintf(db, "%s%s", (zOutput?zOutput:""), zInput), db 74639 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zOutput); db 74665 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 74713 third_party/sqlite/amalgamation/sqlite3.c zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", ((u8*)tname.z) - zSql, zSql, db 74758 third_party/sqlite/amalgamation/sqlite3.c static char *whereOrName(sqlite3 *db, char *zWhere, char *zConstant){ db 74761 third_party/sqlite/amalgamation/sqlite3.c zNew = sqlite3MPrintf(db, "name=%Q", zConstant); db 74763 third_party/sqlite/amalgamation/sqlite3.c zNew = sqlite3MPrintf(db, "%s OR name=%Q", zWhere, zConstant); db 74764 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zWhere); db 74780 third_party/sqlite/amalgamation/sqlite3.c zWhere = whereOrName(pParse->db, zWhere, p->pFrom->zName); db 74795 third_party/sqlite/amalgamation/sqlite3.c const Schema *pTempSchema = pParse->db->aDb[1].pSchema; /* Temp db schema */ db 74803 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 74806 third_party/sqlite/amalgamation/sqlite3.c zWhere = whereOrName(db, zWhere, pTrig->zName); db 74811 third_party/sqlite/amalgamation/sqlite3.c char *zNew = sqlite3MPrintf(pParse->db, "type='trigger' AND (%s)", zWhere); db 74812 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pParse->db, zWhere); db 74836 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); db 74837 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 74843 third_party/sqlite/amalgamation/sqlite3.c int iTrigDb = sqlite3SchemaToIndex(pParse->db, pTrig->pSchema); db 74853 third_party/sqlite/amalgamation/sqlite3.c zWhere = sqlite3MPrintf(pParse->db, "tbl_name=%Q", zName); db 74896 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database connection */ db 74906 third_party/sqlite/amalgamation/sqlite3.c savedDbFlags = db->flags; db 74907 third_party/sqlite/amalgamation/sqlite3.c if( NEVER(db->mallocFailed) ) goto exit_rename_table; db 74909 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); db 74913 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 74914 third_party/sqlite/amalgamation/sqlite3.c zDb = db->aDb[iDb].zName; db 74915 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_PreferBuiltin; db 74918 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3NameFromToken(db, pName); db 74924 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindTable(db, zName, zDb) || sqlite3FindIndex(db, zName, zDb) ){ db 74959 third_party/sqlite/amalgamation/sqlite3.c pVTab = sqlite3GetVTable(db, pTab); db 74997 third_party/sqlite/amalgamation/sqlite3.c if( db->flags&SQLITE_ForeignKeys ){ db 75006 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zWhere); db 75040 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindTable(db, "sqlite_sequence", zDb) ){ db 75058 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zWhere); db 75063 third_party/sqlite/amalgamation/sqlite3.c if( db->flags&SQLITE_ForeignKeys ){ db 75078 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pSrc); db 75079 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zName); db 75080 third_party/sqlite/amalgamation/sqlite3.c db->flags = savedDbFlags; db 75126 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection; */ db 75128 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 75129 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ) return; db 75133 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 75134 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pNew->pSchema); db 75135 third_party/sqlite/amalgamation/sqlite3.c zDb = db->aDb[iDb].zName; db 75139 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, zTab, zDb); db 75169 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags&SQLITE_ForeignKeys) && pNew->pFKey && pDflt ){ db 75185 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3ValueFromExpr(db, pDflt, SQLITE_UTF8, SQLITE_AFF_NONE, &pVal) ){ db 75186 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 75197 third_party/sqlite/amalgamation/sqlite3.c zCol = sqlite3DbStrNDup(db, (char*)pColDef->z, pColDef->n); db 75200 third_party/sqlite/amalgamation/sqlite3.c int savedDbFlags = db->flags; db 75204 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_PreferBuiltin; db 75212 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zCol); db 75213 third_party/sqlite/amalgamation/sqlite3.c db->flags = savedDbFlags; db 75248 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 75252 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 75253 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) goto exit_begin_add_column; db 75274 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 75283 third_party/sqlite/amalgamation/sqlite3.c pNew = (Table*)sqlite3DbMallocZero(db, sizeof(Table)); db 75291 third_party/sqlite/amalgamation/sqlite3.c pNew->aCol = (Column*)sqlite3DbMallocZero(db, sizeof(Column)*nAlloc); db 75292 third_party/sqlite/amalgamation/sqlite3.c pNew->zName = sqlite3MPrintf(db, "sqlite_altertab_%s", pTab->zName); db 75294 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 75300 third_party/sqlite/amalgamation/sqlite3.c pCol->zName = sqlite3DbStrDup(db, pCol->zName); db 75306 third_party/sqlite/amalgamation/sqlite3.c pNew->pSchema = db->aDb[iDb].pSchema; db 75317 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pSrc); db 75376 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 75380 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 75381 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3VdbeDb(v)==db ); db 75382 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[iDb]; db 75387 third_party/sqlite/amalgamation/sqlite3.c if( (pStat = sqlite3FindTable(db, zTab, pDb->zName))==0 ){ db 75433 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database handle */ db 75471 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 75472 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 75474 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 75477 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName ) ){ db 75499 third_party/sqlite/amalgamation/sqlite3.c assert( iDb==sqlite3SchemaToIndex(db, pIdx->pSchema) ); db 75608 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 75705 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 75706 third_party/sqlite/amalgamation/sqlite3.c Schema *pSchema = db->aDb[iDb].pSchema; /* Schema of database iDb */ db 75716 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 75734 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); db 75735 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 75761 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 75771 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); db 75779 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 75785 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3FindDb(db, pName1); db 75789 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3NameFromToken(db, pName1); db 75791 third_party/sqlite/amalgamation/sqlite3.c if( (pIdx = sqlite3FindIndex(db, z, 0))!=0 ){ db 75796 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, z); db 75803 third_party/sqlite/amalgamation/sqlite3.c zDb = db->aDb[iDb].zName; db 75804 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3NameFromToken(db, pTableName); db 75806 third_party/sqlite/amalgamation/sqlite3.c if( (pIdx = sqlite3FindIndex(db, z, zDb))!=0 ){ db 75811 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, z); db 75823 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 75852 third_party/sqlite/amalgamation/sqlite3.c pTable = sqlite3FindTable(pInfo->db, argv[0], pInfo->zDatabase); db 75857 third_party/sqlite/amalgamation/sqlite3.c pIndex = sqlite3FindIndex(pInfo->db, argv[1], pInfo->zDatabase); db 75885 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx){ db 75892 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->u.z); db 75895 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pIdx->aSample); db 75898 third_party/sqlite/amalgamation/sqlite3.c UNUSED_PARAMETER(db); db 75923 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3AnalysisLoad(sqlite3 *db, int iDb){ db 75929 third_party/sqlite/amalgamation/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); db 75930 third_party/sqlite/amalgamation/sqlite3.c assert( db->aDb[iDb].pBt!=0 ); db 75933 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 75934 third_party/sqlite/amalgamation/sqlite3.c for(i=sqliteHashFirst(&db->aDb[iDb].pSchema->idxHash);i;i=sqliteHashNext(i)){ db 75937 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteIndexSamples(db, pIdx); db 75942 third_party/sqlite/amalgamation/sqlite3.c sInfo.db = db; db 75943 third_party/sqlite/amalgamation/sqlite3.c sInfo.zDatabase = db->aDb[iDb].zName; db 75944 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindTable(db, "sqlite_stat1", sInfo.zDatabase)==0 ){ db 75949 third_party/sqlite/amalgamation/sqlite3.c zSql = sqlite3MPrintf(db, db 75954 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(db, zSql, analysisLoader, &sInfo, 0); db 75955 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zSql); db 75961 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_OK && !sqlite3FindTable(db, "sqlite_stat2", sInfo.zDatabase) ){ db 75967 third_party/sqlite/amalgamation/sqlite3.c zSql = sqlite3MPrintf(db, db 75972 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0); db 75973 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zSql); db 75982 third_party/sqlite/amalgamation/sqlite3.c pIdx = zIndex ? sqlite3FindIndex(db, zIndex, sInfo.zDatabase) : 0; db 75992 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 76020 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 76035 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 76113 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 76132 third_party/sqlite/amalgamation/sqlite3.c if( db->nDb>=db->aLimit[SQLITE_LIMIT_ATTACHED]+2 ){ db 76133 third_party/sqlite/amalgamation/sqlite3.c zErrDyn = sqlite3MPrintf(db, "too many attached databases - max %d", db 76134 third_party/sqlite/amalgamation/sqlite3.c db->aLimit[SQLITE_LIMIT_ATTACHED] db 76138 third_party/sqlite/amalgamation/sqlite3.c if( !db->autoCommit ){ db 76139 third_party/sqlite/amalgamation/sqlite3.c zErrDyn = sqlite3MPrintf(db, "cannot ATTACH database within transaction"); db 76142 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 76143 third_party/sqlite/amalgamation/sqlite3.c char *z = db->aDb[i].zName; db 76146 third_party/sqlite/amalgamation/sqlite3.c zErrDyn = sqlite3MPrintf(db, "database %s is already in use", zName); db 76154 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb==db->aDbStatic ){ db 76155 third_party/sqlite/amalgamation/sqlite3.c aNew = sqlite3DbMallocRaw(db, sizeof(db->aDb[0])*3 ); db 76157 third_party/sqlite/amalgamation/sqlite3.c memcpy(aNew, db->aDb, sizeof(db->aDb[0])*2); db 76159 third_party/sqlite/amalgamation/sqlite3.c aNew = sqlite3DbRealloc(db, db->aDb, sizeof(db->aDb[0])*(db->nDb+1) ); db 76162 third_party/sqlite/amalgamation/sqlite3.c db->aDb = aNew; db 76163 third_party/sqlite/amalgamation/sqlite3.c aNew = &db->aDb[db->nDb]; db 76170 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3BtreeOpen(zFile, db, &aNew->pBt, 0, db 76171 third_party/sqlite/amalgamation/sqlite3.c db->openFlags | SQLITE_OPEN_MAIN_DB); db 76172 third_party/sqlite/amalgamation/sqlite3.c db->nDb++; db 76175 third_party/sqlite/amalgamation/sqlite3.c zErrDyn = sqlite3MPrintf(db, "database is already attached"); db 76178 third_party/sqlite/amalgamation/sqlite3.c aNew->pSchema = sqlite3SchemaGet(db, aNew->pBt); db 76181 third_party/sqlite/amalgamation/sqlite3.c }else if( aNew->pSchema->file_format && aNew->pSchema->enc!=ENC(db) ){ db 76182 third_party/sqlite/amalgamation/sqlite3.c zErrDyn = sqlite3MPrintf(db, db 76187 third_party/sqlite/amalgamation/sqlite3.c sqlite3PagerLockingMode(pPager, db->dfltLockMode); db 76189 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeSecureDelete(db->aDb[0].pBt,-1) ); db 76192 third_party/sqlite/amalgamation/sqlite3.c aNew->zName = sqlite3DbStrDup(db, zName); db 76208 third_party/sqlite/amalgamation/sqlite3.c zErrDyn = sqlite3DbStrDup(db, "Invalid key value"); db 76216 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3CodecAttach(db, db->nDb-1, zKey, nKey); db 76221 third_party/sqlite/amalgamation/sqlite3.c sqlite3CodecGetKey(db, 0, (void**)&zKey, &nKey); db 76222 third_party/sqlite/amalgamation/sqlite3.c if( nKey>0 || sqlite3BtreeGetReserve(db->aDb[0].pBt)>0 ){ db 76223 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3CodecAttach(db, db->nDb-1, zKey, nKey); db 76236 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeEnterAll(db); db 76237 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Init(db, &zErrDyn); db 76238 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 76241 third_party/sqlite/amalgamation/sqlite3.c int iDb = db->nDb - 1; db 76243 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[iDb].pBt ){ db 76244 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeClose(db->aDb[iDb].pBt); db 76245 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].pBt = 0; db 76246 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].pSchema = 0; db 76248 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 76249 third_party/sqlite/amalgamation/sqlite3.c db->nDb = iDb; db 76251 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 76252 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErrDyn); db 76253 third_party/sqlite/amalgamation/sqlite3.c zErrDyn = sqlite3MPrintf(db, "out of memory"); db 76255 third_party/sqlite/amalgamation/sqlite3.c zErrDyn = sqlite3MPrintf(db, "unable to open database: %s", zFile); db 76266 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErrDyn); db 76285 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 76293 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 76294 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[i]; db 76299 third_party/sqlite/amalgamation/sqlite3.c if( i>=db->nDb ){ db 76307 third_party/sqlite/amalgamation/sqlite3.c if( !db->autoCommit ){ db 76320 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 76343 third_party/sqlite/amalgamation/sqlite3.c sqlite3* db = pParse->db; db 76380 third_party/sqlite/amalgamation/sqlite3.c assert( v || db->mallocFailed ); db 76395 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pFilename); db 76396 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pDbname); db 76397 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pKey); db 76459 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 76462 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 76463 third_party/sqlite/amalgamation/sqlite3.c assert( db->nDb>iDb ); db 76465 third_party/sqlite/amalgamation/sqlite3.c pFix->zDb = db->aDb[iDb].zName; db 76497 third_party/sqlite/amalgamation/sqlite3.c pItem->zDatabase = sqlite3DbStrDup(pFix->pParse->db, zDb); db 76659 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 76663 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 76664 third_party/sqlite/amalgamation/sqlite3.c db->xAuth = xAuth; db 76665 third_party/sqlite/amalgamation/sqlite3.c db->pAuthArg = pArg; db 76666 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 76667 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 76695 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database handle */ db 76696 third_party/sqlite/amalgamation/sqlite3.c char *zDb = db->aDb[iDb].zName; /* Name of attached database */ db 76699 third_party/sqlite/amalgamation/sqlite3.c rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext); db 76701 third_party/sqlite/amalgamation/sqlite3.c if( db->nDb>2 || iDb!=0 ){ db 76728 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 76735 third_party/sqlite/amalgamation/sqlite3.c if( db->xAuth==0 ) return; db 76736 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pSchema); db 76767 third_party/sqlite/amalgamation/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); db 76786 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 76792 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy || IN_DECLARE_VTAB ){ db 76796 third_party/sqlite/amalgamation/sqlite3.c if( db->xAuth==0 ){ db 76799 third_party/sqlite/amalgamation/sqlite3.c rc = db->xAuth(db->pAuthArg, code, zArg1, zArg2, zArg3, pParse->zAuthContext); db 76920 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes); db 76929 third_party/sqlite/amalgamation/sqlite3.c pToplevel->db->mallocFailed = 1; db 76966 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 76969 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 76970 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) return; db 76993 third_party/sqlite/amalgamation/sqlite3.c for(iDb=0, mask=1; iDb<db->nDb; mask<<=1, iDb++){ db 76997 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy==0 ){ db 76998 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 77001 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].pSchema->iGeneration); db 77008 third_party/sqlite/amalgamation/sqlite3.c char *vtab = (char *)sqlite3GetVTable(db, pParse->apVtabLock[i]); db 77033 third_party/sqlite/amalgamation/sqlite3.c if( v && ALWAYS(pParse->nErr==0) && !db->mallocFailed ){ db 77035 third_party/sqlite/amalgamation/sqlite3.c FILE *trace = (db->flags & SQLITE_VdbeTrace)!=0 ? stdout : 0; db 77074 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 77081 third_party/sqlite/amalgamation/sqlite3.c zSql = sqlite3VMPrintf(db, zFormat, ap); db 77090 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErrMsg); db 77091 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zSql); db 77108 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase){ db 77115 third_party/sqlite/amalgamation/sqlite3.c assert( zDatabase!=0 || sqlite3BtreeHoldsAllMutexes(db) ); db 77116 third_party/sqlite/amalgamation/sqlite3.c for(i=OMIT_TEMPDB; i<db->nDb; i++){ db 77118 third_party/sqlite/amalgamation/sqlite3.c if( zDatabase!=0 && sqlite3StrICmp(zDatabase, db->aDb[j].zName) ) continue; db 77119 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); db 77120 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3HashFind(&db->aDb[j].pSchema->tblHash, zName, nName); db 77150 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3FindTable(pParse->db, zName, zDbase); db 77175 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){ db 77180 third_party/sqlite/amalgamation/sqlite3.c assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); db 77181 third_party/sqlite/amalgamation/sqlite3.c for(i=OMIT_TEMPDB; i<db->nDb; i++){ db 77183 third_party/sqlite/amalgamation/sqlite3.c Schema *pSchema = db->aDb[j].pSchema; db 77185 third_party/sqlite/amalgamation/sqlite3.c if( zDb && sqlite3StrICmp(zDb, db->aDb[j].zName) ) continue; db 77186 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); db 77196 third_party/sqlite/amalgamation/sqlite3.c static void freeIndex(sqlite3 *db, Index *p){ db 77198 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteIndexSamples(db, p); db 77200 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->zColAff); db 77201 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 77210 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName){ db 77215 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 77216 third_party/sqlite/amalgamation/sqlite3.c pHash = &db->aDb[iDb].pSchema->idxHash; db 77232 third_party/sqlite/amalgamation/sqlite3.c freeIndex(db, pIndex); db 77234 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_InternChanges; db 77248 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ResetInternalSchema(sqlite3 *db, int iDb){ db 77250 third_party/sqlite/amalgamation/sqlite3.c assert( iDb<db->nDb ); db 77254 third_party/sqlite/amalgamation/sqlite3.c Db *pDb = &db->aDb[iDb]; db 77255 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 77264 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[1]; db 77273 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeEnterAll(db); db 77274 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 77275 third_party/sqlite/amalgamation/sqlite3.c Db *pDb = &db->aDb[i]; db 77280 third_party/sqlite/amalgamation/sqlite3.c db->flags &= ~SQLITE_InternChanges; db 77281 third_party/sqlite/amalgamation/sqlite3.c sqlite3VtabUnlockList(db); db 77282 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 77290 third_party/sqlite/amalgamation/sqlite3.c for(i=j=2; i<db->nDb; i++){ db 77291 third_party/sqlite/amalgamation/sqlite3.c struct Db *pDb = &db->aDb[i]; db 77293 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pDb->zName); db 77298 third_party/sqlite/amalgamation/sqlite3.c db->aDb[j] = db->aDb[i]; db 77302 third_party/sqlite/amalgamation/sqlite3.c memset(&db->aDb[j], 0, (db->nDb-j)*sizeof(db->aDb[j])); db 77303 third_party/sqlite/amalgamation/sqlite3.c db->nDb = j; db 77304 third_party/sqlite/amalgamation/sqlite3.c if( db->nDb<=2 && db->aDb!=db->aDbStatic ){ db 77305 third_party/sqlite/amalgamation/sqlite3.c memcpy(db->aDbStatic, db->aDb, 2*sizeof(db->aDb[0])); db 77306 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, db->aDb); db 77307 third_party/sqlite/amalgamation/sqlite3.c db->aDb = db->aDbStatic; db 77314 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3CommitInternalChanges(sqlite3 *db){ db 77315 third_party/sqlite/amalgamation/sqlite3.c db->flags &= ~SQLITE_InternChanges; db 77322 third_party/sqlite/amalgamation/sqlite3.c static void sqliteDeleteColumnNames(sqlite3 *db, Table *pTable){ db 77328 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pCol->zName); db 77329 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pCol->pDflt); db 77330 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pCol->zDflt); db 77331 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pCol->zType); db 77332 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pCol->zColl); db 77334 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTable->aCol); db 77347 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3DeleteTable(sqlite3 *db, Table *pTable){ db 77354 third_party/sqlite/amalgamation/sqlite3.c if( ((!db || db->pnBytesFreed==0) && (--pTable->nRef)>0) ) return; db 77360 third_party/sqlite/amalgamation/sqlite3.c if( !db || db->pnBytesFreed==0 ){ db 77365 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) ); db 77368 third_party/sqlite/amalgamation/sqlite3.c freeIndex(db, pIndex); db 77372 third_party/sqlite/amalgamation/sqlite3.c sqlite3FkDelete(db, pTable); db 77376 third_party/sqlite/amalgamation/sqlite3.c sqliteDeleteColumnNames(db, pTable); db 77377 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTable->zName); db 77378 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTable->zColAff); db 77379 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pTable->pSelect); db 77381 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pTable->pCheck); db 77384 third_party/sqlite/amalgamation/sqlite3.c sqlite3VtabClear(db, pTable); db 77386 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTable); db 77393 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTable(sqlite3 *db, int iDb, const char *zTabName){ db 77397 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 77398 third_party/sqlite/amalgamation/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); db 77400 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 77402 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[iDb]; db 77405 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, p); db 77406 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_InternChanges; db 77422 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){ db 77425 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3DbStrNDup(db, (char*)pName->z, pName->n); db 77453 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *db, const char *zName){ db 77458 third_party/sqlite/amalgamation/sqlite3.c for(i=(db->nDb-1), pDb=&db->aDb[i]; i>=0; i--, pDb--){ db 77474 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){ db 77477 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3NameFromToken(db, pName); db 77478 third_party/sqlite/amalgamation/sqlite3.c i = sqlite3FindDbName(db, zName); db 77479 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zName); db 77506 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 77509 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy ) { db 77515 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3FindDb(db, pName1); db 77522 third_party/sqlite/amalgamation/sqlite3.c assert( db->init.iDb==0 || db->init.busy ); db 77523 third_party/sqlite/amalgamation/sqlite3.c iDb = db->init.iDb; db 77537 third_party/sqlite/amalgamation/sqlite3.c if( !pParse->db->init.busy && pParse->nested==0 db 77538 third_party/sqlite/amalgamation/sqlite3.c && (pParse->db->flags & SQLITE_WriteSchema)==0 db 77573 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 77606 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3NameFromToken(db, pName); db 77611 third_party/sqlite/amalgamation/sqlite3.c if( db->init.iDb==1 ) isTemp = 1; db 77616 third_party/sqlite/amalgamation/sqlite3.c char *zDb = db->aDb[iDb].zName; db 77647 third_party/sqlite/amalgamation/sqlite3.c char *zDb = db->aDb[iDb].zName; db 77651 third_party/sqlite/amalgamation/sqlite3.c pTable = sqlite3FindTable(db, zName, zDb); db 77656 third_party/sqlite/amalgamation/sqlite3.c assert( !db->init.busy ); db 77661 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindIndex(db, zName, zDb)!=0 ){ db 77667 third_party/sqlite/amalgamation/sqlite3.c pTable = sqlite3DbMallocZero(db, sizeof(Table)); db 77669 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 77676 third_party/sqlite/amalgamation/sqlite3.c pTable->pSchema = db->aDb[iDb].pSchema; db 77688 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 77701 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy && (v = sqlite3GetVdbe(pParse))!=0 ){ db 77722 third_party/sqlite/amalgamation/sqlite3.c fileFormat = (db->flags & SQLITE_LegacyFileFmt)!=0 ? db 77726 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeAddOp2(v, OP_Integer, ENC(db), reg3); db 77760 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zName); db 77790 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 77793 third_party/sqlite/amalgamation/sqlite3.c if( p->nCol+1>db->aLimit[SQLITE_LIMIT_COLUMN] ){ db 77798 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3NameFromToken(db, pName); db 77803 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, z); db 77809 third_party/sqlite/amalgamation/sqlite3.c aNew = sqlite3DbRealloc(db,p->aCol,(p->nCol+8)*sizeof(p->aCol[0])); db 77811 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, z); db 77919 third_party/sqlite/amalgamation/sqlite3.c pCol->zType = sqlite3NameFromToken(pParse->db, pType); db 77936 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 77948 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pCol->pDflt); db 77949 third_party/sqlite/amalgamation/sqlite3.c pCol->pDflt = sqlite3ExprDup(db, pSpan->pExpr, EXPRDUP_REDUCE); db 77950 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pCol->zDflt); db 77951 third_party/sqlite/amalgamation/sqlite3.c pCol->zDflt = sqlite3DbStrNDup(db, (char*)pSpan->zStart, db 77955 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pSpan->pExpr); db 78033 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(pParse->db, pList); db 78044 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 78048 third_party/sqlite/amalgamation/sqlite3.c pTab->pCheck = sqlite3ExprAnd(db, pTab->pCheck, pCheckExpr); db 78052 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pCheckExpr); db 78064 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 78068 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 78069 third_party/sqlite/amalgamation/sqlite3.c zColl = sqlite3NameFromToken(db, pToken); db 78087 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zColl); db 78112 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 78113 third_party/sqlite/amalgamation/sqlite3.c u8 enc = ENC(db); db 78114 third_party/sqlite/amalgamation/sqlite3.c u8 initbusy = db->init.busy; db 78117 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3FindCollSeq(db, enc, zName, initbusy); db 78119 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3GetCollSeq(db, enc, pColl, zName); db 78147 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 78149 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 78150 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeAddOp2(v, OP_Integer, db->aDb[iDb].pSchema->schema_cookie+1, r1); db 78212 third_party/sqlite/amalgamation/sqlite3.c static char *createTableStmt(sqlite3 *db, Table *p){ db 78234 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 78303 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 78306 third_party/sqlite/amalgamation/sqlite3.c if( (pEnd==0 && pSelect==0) || db->mallocFailed ){ db 78312 third_party/sqlite/amalgamation/sqlite3.c assert( !db->init.busy || !pSelect ); db 78314 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, p->pSchema); db 78344 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy ){ db 78345 third_party/sqlite/amalgamation/sqlite3.c p->tnum = db->init.newTnum; db 78354 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy ){ db 78413 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, pSelTab); db 78419 third_party/sqlite/amalgamation/sqlite3.c zStmt = createTableStmt(db, p); db 78422 third_party/sqlite/amalgamation/sqlite3.c zStmt = sqlite3MPrintf(db, db 78435 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), db 78443 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zStmt); db 78451 third_party/sqlite/amalgamation/sqlite3.c Db *pDb = &db->aDb[iDb]; db 78452 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 78464 third_party/sqlite/amalgamation/sqlite3.c sqlite3MPrintf(db, "tbl_name='%q'",p->zName), P4_DYNAMIC); db 78470 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy ){ db 78473 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 78478 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 78482 third_party/sqlite/amalgamation/sqlite3.c db->nTable++; db 78483 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_InternChanges; db 78520 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 78524 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 78530 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 78534 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, p->pSchema); db 78538 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 78547 third_party/sqlite/amalgamation/sqlite3.c p->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE); db 78548 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 78549 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 78552 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy ){ db 78587 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database connection for malloc errors */ db 78634 third_party/sqlite/amalgamation/sqlite3.c pSel = sqlite3SelectDup(db, pTable->pSelect, 0); db 78636 third_party/sqlite/amalgamation/sqlite3.c u8 enableLookaside = db->lookaside.bEnabled; db 78640 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bEnabled = 0; db 78642 third_party/sqlite/amalgamation/sqlite3.c xAuth = db->xAuth; db 78643 third_party/sqlite/amalgamation/sqlite3.c db->xAuth = 0; db 78645 third_party/sqlite/amalgamation/sqlite3.c db->xAuth = xAuth; db 78649 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bEnabled = enableLookaside; db 78657 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, pSelTab); db 78658 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pTable->pSchema) ); db 78664 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSel); db 78677 third_party/sqlite/amalgamation/sqlite3.c static void sqliteViewResetAll(sqlite3 *db, int idx){ db 78679 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, idx, 0) ); db 78680 third_party/sqlite/amalgamation/sqlite3.c if( !DbHasProperty(db, idx, DB_UnresetViews) ) return; db 78681 third_party/sqlite/amalgamation/sqlite3.c for(i=sqliteHashFirst(&db->aDb[idx].pSchema->tblHash); i;i=sqliteHashNext(i)){ db 78684 third_party/sqlite/amalgamation/sqlite3.c sqliteDeleteColumnNames(db, pTab); db 78689 third_party/sqlite/amalgamation/sqlite3.c DbClearProperty(db, idx, DB_UnresetViews); db 78713 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3RootPageMoved(sqlite3 *db, int iDb, int iFrom, int iTo){ db 78718 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 78719 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[iDb]; db 78760 third_party/sqlite/amalgamation/sqlite3.c pParse->db->aDb[iDb].zName, SCHEMA_TABLE(iDb), iTable, r1, r1); db 78774 third_party/sqlite/amalgamation/sqlite3.c int iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 78816 third_party/sqlite/amalgamation/sqlite3.c int iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 78831 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 78834 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 78839 third_party/sqlite/amalgamation/sqlite3.c if( noErr ) db->suppressErr++; db 78842 third_party/sqlite/amalgamation/sqlite3.c if( noErr ) db->suppressErr--; db 78848 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 78849 third_party/sqlite/amalgamation/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); db 78861 third_party/sqlite/amalgamation/sqlite3.c const char *zDb = db->aDb[iDb].zName; db 78875 third_party/sqlite/amalgamation/sqlite3.c zArg2 = sqlite3GetVTable(db, pTab)->pMod->zName; db 78917 third_party/sqlite/amalgamation/sqlite3.c Db *pDb = &db->aDb[iDb]; db 78934 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pSchema==db->aDb[1].pSchema ); db 78965 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindTable(db, "sqlite_stat1", db->aDb[iDb].zName) ){ db 78984 third_party/sqlite/amalgamation/sqlite3.c sqliteViewResetAll(db, iDb); db 78987 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pName); db 79013 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 79049 third_party/sqlite/amalgamation/sqlite3.c pFKey = sqlite3DbMallocZero(db, nByte ); db 79094 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, p->pSchema) ); db 79099 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 79114 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pFKey); db 79116 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pFromCol); db 79117 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pToCol); db 79158 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 79159 third_party/sqlite/amalgamation/sqlite3.c int iDb = sqlite3SchemaToIndex(db, pIndex->pSchema); db 79163 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName ) ){ db 79253 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 79264 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed || IN_DECLARE_VTAB ){ db 79289 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy ){ db 79291 third_party/sqlite/amalgamation/sqlite3.c if( pName2->n==0 && pTab && pTab->pSchema==db->aDb[1].pSchema ){ db 79306 third_party/sqlite/amalgamation/sqlite3.c if( !pTab || db->mallocFailed ) goto exit_create_index; db 79307 third_party/sqlite/amalgamation/sqlite3.c assert( db->aDb[iDb].pSchema==pTab->pSchema ); db 79312 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 79314 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[iDb]; db 79350 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3NameFromToken(db, pName); db 79355 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy ){ db 79356 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindTable(db, zName, 0)!=0 ){ db 79361 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindIndex(db, zName, pDb->zName)!=0 ){ db 79365 third_party/sqlite/amalgamation/sqlite3.c assert( !db->init.busy ); db 79374 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3MPrintf(db, "sqlite_autoindex_%s_%d", pTab->zName, n); db 79429 third_party/sqlite/amalgamation/sqlite3.c pIndex = sqlite3DbMallocZero(db, db 79438 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 79452 third_party/sqlite/amalgamation/sqlite3.c pIndex->pSchema = db->aDb[iDb].pSchema; db 79453 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 79506 third_party/sqlite/amalgamation/sqlite3.c zColl = db->pDfltColl->zName; db 79509 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy && !sqlite3LocateCollSeq(pParse, zColl) ){ db 79581 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy ){ db 79583 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) ); db 79589 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 79592 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_InternChanges; db 79594 third_party/sqlite/amalgamation/sqlite3.c pIndex->tnum = db->init.newTnum; db 79633 third_party/sqlite/amalgamation/sqlite3.c zStmt = sqlite3MPrintf(db, "CREATE%s INDEX %.*s", db 79647 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), db 79653 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zStmt); db 79662 third_party/sqlite/amalgamation/sqlite3.c sqlite3MPrintf(db, "name='%q' AND type='index'", pIndex->zName), db 79674 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy || pTblName==0 ){ db 79694 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pIndex->zColAff); db 79695 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pIndex); db 79697 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pList); db 79698 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pTblName); db 79699 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zName); db 79745 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 79749 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 79756 third_party/sqlite/amalgamation/sqlite3.c pIndex = sqlite3FindIndex(db, pName->a[0].zName, pName->a[0].zDatabase); db 79771 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pIndex->pSchema); db 79776 third_party/sqlite/amalgamation/sqlite3.c const char *zDb = db->aDb[iDb].zName; db 79794 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), db 79797 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindTable(db, "sqlite_stat1", db->aDb[iDb].zName) ){ db 79800 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName, pIndex->zName db 79809 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pName); db 79828 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Connection to notify of malloc failures */ db 79841 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbRealloc(db, pArray, newSize*szEntry); db 79846 third_party/sqlite/amalgamation/sqlite3.c *pnAlloc = sqlite3DbMallocSize(db, pNew)/szEntry; db 79862 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){ db 79865 third_party/sqlite/amalgamation/sqlite3.c pList = sqlite3DbMallocZero(db, sizeof(IdList) ); db 79870 third_party/sqlite/amalgamation/sqlite3.c db, db 79879 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pList); db 79882 third_party/sqlite/amalgamation/sqlite3.c pList->a[i].zName = sqlite3NameFromToken(db, pToken); db 79889 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){ db 79893 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pList->a[i].zName); db 79895 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pList->a); db 79896 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pList); db 79932 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection to notify of OOM errors */ db 79950 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbRealloc(db, pSrc, db 79953 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed ); db 79957 third_party/sqlite/amalgamation/sqlite3.c nGot = (sqlite3DbMallocSize(db, pNew) - sizeof(*pSrc))/sizeof(pSrc->a[0])+1; db 80014 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Connection to notify of malloc failures */ db 80022 third_party/sqlite/amalgamation/sqlite3.c pList = sqlite3DbMallocZero(db, sizeof(SrcList) ); db 80026 third_party/sqlite/amalgamation/sqlite3.c pList = sqlite3SrcListEnlarge(db, pList, 1, pList->nSrc); db 80027 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 80028 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pList); db 80040 third_party/sqlite/amalgamation/sqlite3.c pItem->zName = sqlite3NameFromToken(db, pTable); db 80041 third_party/sqlite/amalgamation/sqlite3.c pItem->zDatabase = sqlite3NameFromToken(db, pDatabase); db 80051 third_party/sqlite/amalgamation/sqlite3.c assert(pList || pParse->db->mallocFailed ); db 80066 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){ db 80071 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pItem->zDatabase); db 80072 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pItem->zName); db 80073 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pItem->zAlias); db 80074 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pItem->zIndex); db 80075 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, pItem->pTab); db 80076 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pItem->pSelect); db 80077 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pItem->pOn); db 80078 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pItem->pUsing); db 80080 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pList); db 80110 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 80117 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3SrcListAppend(db, p, pTable, pDatabase); db 80124 third_party/sqlite/amalgamation/sqlite3.c pItem->zAlias = sqlite3NameFromToken(db, pAlias); db 80133 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pOn); db 80134 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pUsing); db 80135 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSubquery); db 80153 third_party/sqlite/amalgamation/sqlite3.c pItem->zIndex = sqlite3NameFromToken(pParse->db, pIndexedBy); db 80187 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 80192 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 80193 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 80201 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 80213 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 80217 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 80218 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 80233 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 80237 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 80238 third_party/sqlite/amalgamation/sqlite3.c assert( db!=0 ); db 80254 third_party/sqlite/amalgamation/sqlite3.c char *zName = sqlite3NameFromToken(pParse->db, pName); db 80262 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pParse->db, zName); db 80274 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 80275 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[1].pBt==0 && !pParse->explain ){ db 80285 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3BtreeOpen(0, db, &pBt, 0, flags); db 80292 third_party/sqlite/amalgamation/sqlite3.c db->aDb[1].pBt = pBt; db 80293 third_party/sqlite/amalgamation/sqlite3.c assert( db->aDb[1].pSchema ); db 80294 third_party/sqlite/amalgamation/sqlite3.c if( SQLITE_NOMEM==sqlite3BtreeSetPageSize(pBt, db->nextPagesize, -1, 0) ){ db 80295 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 80333 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pToplevel->db; db 80336 third_party/sqlite/amalgamation/sqlite3.c assert( iDb<db->nDb ); db 80337 third_party/sqlite/amalgamation/sqlite3.c assert( db->aDb[iDb].pBt!=0 || iDb==1 ); db 80339 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 80343 third_party/sqlite/amalgamation/sqlite3.c pToplevel->cookieValue[iDb] = db->aDb[iDb].pSchema->schema_cookie; db 80356 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 80358 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 80359 third_party/sqlite/amalgamation/sqlite3.c Db *pDb = &db->aDb[i]; db 80461 third_party/sqlite/amalgamation/sqlite3.c int iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 80478 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 80482 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); /* Needed for schema access */ db 80483 third_party/sqlite/amalgamation/sqlite3.c for(iDb=0, pDb=db->aDb; iDb<db->nDb; iDb++, pDb++){ db 80514 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 80529 third_party/sqlite/amalgamation/sqlite3.c zColl = sqlite3NameFromToken(pParse->db, pName1); db 80531 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3FindCollSeq(db, ENC(db), zColl, 0); db 80534 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zColl); db 80537 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zColl); db 80541 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3NameFromToken(db, pObjName); db 80543 third_party/sqlite/amalgamation/sqlite3.c zDb = db->aDb[iDb].zName; db 80544 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, z, zDb); db 80547 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, z); db 80550 third_party/sqlite/amalgamation/sqlite3.c pIndex = sqlite3FindIndex(db, z, zDb); db 80551 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, z); db 80575 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 80576 third_party/sqlite/amalgamation/sqlite3.c KeyInfo *pKey = (KeyInfo *)sqlite3DbMallocZero(db, nBytes); db 80579 third_party/sqlite/amalgamation/sqlite3.c pKey->db = pParse->db; db 80592 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pKey); db 80621 third_party/sqlite/amalgamation/sqlite3.c static void callCollNeeded(sqlite3 *db, int enc, const char *zName){ db 80622 third_party/sqlite/amalgamation/sqlite3.c assert( !db->xCollNeeded || !db->xCollNeeded16 ); db 80623 third_party/sqlite/amalgamation/sqlite3.c if( db->xCollNeeded ){ db 80624 third_party/sqlite/amalgamation/sqlite3.c char *zExternal = sqlite3DbStrDup(db, zName); db 80626 third_party/sqlite/amalgamation/sqlite3.c db->xCollNeeded(db->pCollNeededArg, db, enc, zExternal); db 80627 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zExternal); db 80630 third_party/sqlite/amalgamation/sqlite3.c if( db->xCollNeeded16 ){ db 80632 third_party/sqlite/amalgamation/sqlite3.c sqlite3_value *pTmp = sqlite3ValueNew(db); db 80636 third_party/sqlite/amalgamation/sqlite3.c db->xCollNeeded16(db->pCollNeededArg, db, (int)ENC(db), zExternal); db 80650 third_party/sqlite/amalgamation/sqlite3.c static int synthCollSeq(sqlite3 *db, CollSeq *pColl){ db 80656 third_party/sqlite/amalgamation/sqlite3.c pColl2 = sqlite3FindCollSeq(db, aEnc[i], z, 0); db 80681 third_party/sqlite/amalgamation/sqlite3.c sqlite3* db, /* The database connection */ db 80690 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3FindCollSeq(db, enc, zName, 0); db 80696 third_party/sqlite/amalgamation/sqlite3.c callCollNeeded(db, enc, zName); db 80697 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3FindCollSeq(db, enc, zName, 0); db 80699 third_party/sqlite/amalgamation/sqlite3.c if( p && !p->xCmp && synthCollSeq(db, p) ){ db 80720 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 80721 third_party/sqlite/amalgamation/sqlite3.c CollSeq *p = sqlite3GetCollSeq(db, ENC(db), pColl, zName); db 80748 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection */ db 80754 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3HashFind(&db->aCollSeq, zName, nName); db 80757 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3DbMallocZero(db, 3*sizeof(*pColl) + nName + 1 ); db 80768 third_party/sqlite/amalgamation/sqlite3.c pDel = sqlite3HashInsert(&db->aCollSeq, pColl[0].zName, nName, pColl); db 80776 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 80777 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pDel); db 80801 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 80808 third_party/sqlite/amalgamation/sqlite3.c pColl = findCollSeqEntry(db, zName, create); db 80810 third_party/sqlite/amalgamation/sqlite3.c pColl = db->pDfltColl; db 80924 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* An open database */ db 80938 third_party/sqlite/amalgamation/sqlite3.c h = (sqlite3UpperToLower[(u8)zName[0]] + nName) % ArraySize(db->aFunc.a); db 80942 third_party/sqlite/amalgamation/sqlite3.c p = functionSearch(&db->aFunc, h, zName, nName); db 80964 third_party/sqlite/amalgamation/sqlite3.c if( !createFlag && (pBest==0 || (db->flags & SQLITE_PreferBuiltin)!=0) ){ db 80983 third_party/sqlite/amalgamation/sqlite3.c (pBest = sqlite3DbMallocZero(db, sizeof(*pBest)+nName+1))!=0 ){ db 80989 third_party/sqlite/amalgamation/sqlite3.c sqlite3FuncDefInsert(&db->aFunc, pBest); db 81038 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE Schema *sqlite3SchemaGet(sqlite3 *db, Btree *pBt){ db 81046 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 81093 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(pParse->db, pItem->pTab); db 81121 third_party/sqlite/amalgamation/sqlite3.c && sqlite3GetVTable(pParse->db, pTab)->pMod->pModule->xUpdate==0 ) db 81123 third_party/sqlite/amalgamation/sqlite3.c && (pParse->db->flags & SQLITE_WriteSchema)==0 db 81154 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 81156 third_party/sqlite/amalgamation/sqlite3.c pDup = sqlite3SelectDup(db, pView->pSelect, 0); db 81160 third_party/sqlite/amalgamation/sqlite3.c pWhere = sqlite3ExprDup(db, pWhere, 0); db 81161 third_party/sqlite/amalgamation/sqlite3.c pFrom = sqlite3SrcListAppend(db, 0, 0, 0); db 81164 third_party/sqlite/amalgamation/sqlite3.c pFrom->a[0].zAlias = sqlite3DbStrDup(db, pView->zName); db 81169 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pDup); db 81175 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pDup); db 81237 third_party/sqlite/amalgamation/sqlite3.c pSelectSrc = sqlite3SrcListDup(pParse->db, pSrc, 0); db 81239 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(pParse->db, pEList); db 81261 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(pParse->db, pSelect); db 81265 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(pParse->db, pWhere); db 81266 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(pParse->db, pOrderBy); db 81267 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(pParse->db, pLimit); db 81268 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(pParse->db, pOffset); db 81293 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Main database structure */ db 81306 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 81307 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ){ db 81344 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 81345 third_party/sqlite/amalgamation/sqlite3.c assert( iDb<db->nDb ); db 81346 third_party/sqlite/amalgamation/sqlite3.c zDb = db->aDb[iDb].zName; db 81398 third_party/sqlite/amalgamation/sqlite3.c if( db->flags & SQLITE_CountRows ){ db 81435 third_party/sqlite/amalgamation/sqlite3.c if( db->flags & SQLITE_CountRows ){ db 81458 third_party/sqlite/amalgamation/sqlite3.c const char *pVTab = (const char *)sqlite3GetVTable(db, pTab); db 81494 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags&SQLITE_CountRows) && !pParse->nested && !pParse->pTriggerTab ){ db 81502 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pTabList); db 81503 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhere); db 82003 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 82005 third_party/sqlite/amalgamation/sqlite3.c testcase( nByte==db->aLimit[SQLITE_LIMIT_LENGTH] ); db 82006 third_party/sqlite/amalgamation/sqlite3.c testcase( nByte==db->aLimit[SQLITE_LIMIT_LENGTH]+1 ); db 82007 third_party/sqlite/amalgamation/sqlite3.c if( nByte>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 82150 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 82155 third_party/sqlite/amalgamation/sqlite3.c sqlite3_result_int64(context, sqlite3_last_insert_rowid(db)); db 82170 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 82172 third_party/sqlite/amalgamation/sqlite3.c sqlite3_result_int(context, sqlite3_changes(db)); db 82184 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 82188 third_party/sqlite/amalgamation/sqlite3.c sqlite3_result_int(context, sqlite3_total_changes(db)); db 82388 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 82397 third_party/sqlite/amalgamation/sqlite3.c testcase( nPat==db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH] ); db 82398 third_party/sqlite/amalgamation/sqlite3.c testcase( nPat==db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]+1 ); db 82399 third_party/sqlite/amalgamation/sqlite3.c if( nPat > db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH] ){ db 82639 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 82643 third_party/sqlite/amalgamation/sqlite3.c testcase( n==db->aLimit[SQLITE_LIMIT_LENGTH] ); db 82644 third_party/sqlite/amalgamation/sqlite3.c testcase( n==db->aLimit[SQLITE_LIMIT_LENGTH]+1 ); db 82645 third_party/sqlite/amalgamation/sqlite3.c if( n>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 82709 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 82711 third_party/sqlite/amalgamation/sqlite3.c testcase( nOut-1==db->aLimit[SQLITE_LIMIT_LENGTH] ); db 82712 third_party/sqlite/amalgamation/sqlite3.c testcase( nOut-2==db->aLimit[SQLITE_LIMIT_LENGTH] ); db 82713 third_party/sqlite/amalgamation/sqlite3.c if( nOut-1>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 82890 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 82898 third_party/sqlite/amalgamation/sqlite3.c if( zFile && sqlite3_load_extension(db, zFile, zProc, &zErrMsg) ){ db 83076 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 83079 third_party/sqlite/amalgamation/sqlite3.c pAccum->mxAlloc = db->aLimit[SQLITE_LIMIT_LENGTH]; db 83115 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3RegisterBuiltinFunctions(sqlite3 *db){ db 83116 third_party/sqlite/amalgamation/sqlite3.c int rc = sqlite3_overload_function(db, "MATCH", 2); db 83119 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 83126 third_party/sqlite/amalgamation/sqlite3.c static void setLikeOptFlag(sqlite3 *db, const char *zName, u8 flagVal){ db 83128 third_party/sqlite/amalgamation/sqlite3.c pDef = sqlite3FindFunction(db, zName, sqlite3Strlen30(zName), db 83140 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3RegisterLikeFunctions(sqlite3 *db, int caseSensitive){ db 83147 third_party/sqlite/amalgamation/sqlite3.c sqlite3CreateFunc(db, "like", 2, SQLITE_UTF8, pInfo, likeFunc, 0, 0, 0); db 83148 third_party/sqlite/amalgamation/sqlite3.c sqlite3CreateFunc(db, "like", 3, SQLITE_UTF8, pInfo, likeFunc, 0, 0, 0); db 83149 third_party/sqlite/amalgamation/sqlite3.c sqlite3CreateFunc(db, "glob", 2, SQLITE_UTF8, db 83151 third_party/sqlite/amalgamation/sqlite3.c setLikeOptFlag(db, "glob", SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE); db 83152 third_party/sqlite/amalgamation/sqlite3.c setLikeOptFlag(db, "like", db 83163 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3IsLikeFunction(sqlite3 *db, Expr *pExpr, int *pIsNocase, char *aWc){ db 83172 third_party/sqlite/amalgamation/sqlite3.c pDef = sqlite3FindFunction(db, pExpr->u.zToken, db 83512 third_party/sqlite/amalgamation/sqlite3.c aiCol = (int *)sqlite3DbMallocRaw(pParse->db, nCol*sizeof(int)); db 83572 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pParse->db, aiCol); db 83759 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database handle */ db 83788 third_party/sqlite/amalgamation/sqlite3.c pLeft = sqlite3Expr(db, TK_REGISTER, 0); db 83808 third_party/sqlite/amalgamation/sqlite3.c pRight = sqlite3Expr(db, TK_ID, zCol); db 83810 third_party/sqlite/amalgamation/sqlite3.c pWhere = sqlite3ExprAnd(db, pWhere, pEq); db 83821 third_party/sqlite/amalgamation/sqlite3.c pLeft = sqlite3Expr(db, TK_REGISTER, 0); db 83822 third_party/sqlite/amalgamation/sqlite3.c pRight = sqlite3Expr(db, TK_COLUMN, 0); db 83830 third_party/sqlite/amalgamation/sqlite3.c pWhere = sqlite3ExprAnd(db, pWhere, pEq); db 83853 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhere); db 83915 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 83916 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags&SQLITE_ForeignKeys) && !IsVirtual(pTab) && !pTab->pSelect ){ db 83937 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteFrom(pParse, sqlite3SrcListDup(db, pName, 0), 0); db 83981 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database handle */ db 83991 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags&SQLITE_ForeignKeys)==0 ) return; db 83993 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 83994 third_party/sqlite/amalgamation/sqlite3.c zDb = db->aDb[iDb].zName; db 84012 third_party/sqlite/amalgamation/sqlite3.c pTo = sqlite3FindTable(db, pFKey->zTo, zDb); db 84017 third_party/sqlite/amalgamation/sqlite3.c if( !isIgnoreErrors || db->mallocFailed ) return; db 84036 third_party/sqlite/amalgamation/sqlite3.c if( db->xAuth ){ db 84063 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aiFree); db 84080 third_party/sqlite/amalgamation/sqlite3.c if( !isIgnoreErrors || db->mallocFailed ) return; db 84088 third_party/sqlite/amalgamation/sqlite3.c pSrc = sqlite3SrcListAppend(db, 0, 0, 0); db 84109 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pSrc); db 84111 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aiCol); db 84126 third_party/sqlite/amalgamation/sqlite3.c if( pParse->db->flags&SQLITE_ForeignKeys ){ db 84163 third_party/sqlite/amalgamation/sqlite3.c if( pParse->db->flags&SQLITE_ForeignKeys ){ db 84238 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database handle */ db 84289 third_party/sqlite/amalgamation/sqlite3.c pWhere = sqlite3ExprAnd(db, pWhere, pEq); db 84307 third_party/sqlite/amalgamation/sqlite3.c pWhen = sqlite3ExprAnd(db, pWhen, pEq); db 84320 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3ExprDup(db, pDflt, 0); db 84331 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aiCol); db 84342 third_party/sqlite/amalgamation/sqlite3.c pRaise = sqlite3Expr(db, TK_RAISE, "foreign key constraint failed"); db 84348 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListAppend(db, 0, &tFrom, 0), db 84356 third_party/sqlite/amalgamation/sqlite3.c enableLookaside = db->lookaside.bEnabled; db 84357 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bEnabled = 0; db 84359 third_party/sqlite/amalgamation/sqlite3.c pTrigger = (Trigger *)sqlite3DbMallocZero(db, db 84370 third_party/sqlite/amalgamation/sqlite3.c pStep->pWhere = sqlite3ExprDup(db, pWhere, EXPRDUP_REDUCE); db 84371 third_party/sqlite/amalgamation/sqlite3.c pStep->pExprList = sqlite3ExprListDup(db, pList, EXPRDUP_REDUCE); db 84372 third_party/sqlite/amalgamation/sqlite3.c pStep->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE); db 84375 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); db 84380 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bEnabled = enableLookaside; db 84382 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhere); db 84383 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhen); db 84384 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pList); db 84385 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 84386 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed==1 ){ db 84387 third_party/sqlite/amalgamation/sqlite3.c fkTriggerDelete(db, pTrigger); db 84427 third_party/sqlite/amalgamation/sqlite3.c if( pParse->db->flags&SQLITE_ForeignKeys ){ db 84445 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3FkDelete(sqlite3 *db, Table *pTab){ db 84449 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pTab->pSchema) ); db 84453 third_party/sqlite/amalgamation/sqlite3.c if( !db || db->pnBytesFreed==0 ){ db 84473 third_party/sqlite/amalgamation/sqlite3.c fkTriggerDelete(db, pFKey->apTrigger[0]); db 84474 third_party/sqlite/amalgamation/sqlite3.c fkTriggerDelete(db, pFKey->apTrigger[1]); db 84478 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pFKey); db 84552 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3VdbeDb(v); db 84555 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 84593 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3VdbeDb(v); db 84597 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 84624 third_party/sqlite/amalgamation/sqlite3.c VTable *pVTab = IsVirtual(pTab) ? sqlite3GetVTable(p->db, pTab) : 0; db 84687 third_party/sqlite/amalgamation/sqlite3.c pInfo = sqlite3DbMallocRaw(pParse->db, sizeof(*pInfo)); db 84708 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 84721 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[p->iDb]; db 84723 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) ); db 84764 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 84768 third_party/sqlite/amalgamation/sqlite3.c Db *pDb = &db->aDb[p->iDb]; db 84774 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) ); db 84924 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The main database structure */ db 84962 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 84964 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ){ db 84977 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 84978 third_party/sqlite/amalgamation/sqlite3.c assert( iDb<db->nDb ); db 84979 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[iDb]; db 85089 third_party/sqlite/amalgamation/sqlite3.c if( rc || NEVER(pParse->nErr) || db->mallocFailed ){ db 85231 third_party/sqlite/amalgamation/sqlite3.c if( db->flags & SQLITE_CountRows ){ db 85242 third_party/sqlite/amalgamation/sqlite3.c aRegIdx = sqlite3DbMallocRaw(db, sizeof(int)*(nIdx+1)); db 85452 third_party/sqlite/amalgamation/sqlite3.c const char *pVTab = (const char *)sqlite3GetVTable(db, pTab); db 85472 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags & SQLITE_CountRows)!=0 ){ db 85517 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags&SQLITE_CountRows) && !pParse->nested && !pParse->pTriggerTab ){ db 85524 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pTabList); db 85525 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pList); db 85526 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 85527 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pColumn); db 85528 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aRegIdx); db 85676 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MPrintf(pParse->db, "%s.%s may not be NULL", db 85698 third_party/sqlite/amalgamation/sqlite3.c if( pTab->pCheck && (pParse->db->flags & SQLITE_IgnoreChecks)==0 ){ db 85765 third_party/sqlite/amalgamation/sqlite3.c if( pParse->db->flags&SQLITE_RecTriggers ){ db 85854 third_party/sqlite/amalgamation/sqlite3.c errMsg.db = pParse->db; db 85866 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(errMsg.db, zErr); db 85878 third_party/sqlite/amalgamation/sqlite3.c if( pParse->db->flags&SQLITE_RecTriggers ){ db 85978 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 86232 third_party/sqlite/amalgamation/sqlite3.c iDbSrc = sqlite3SchemaToIndex(pParse->db, pSrc->pSchema); db 86346 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* The database on which the SQL executes */ db 86359 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT; db 86362 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 86363 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_OK, 0); db 86369 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare(db, zSql, -1, &pStmt, &zLeftover); db 86390 third_party/sqlite/amalgamation/sqlite3.c && db->flags&SQLITE_NullCallback)) ){ db 86392 third_party/sqlite/amalgamation/sqlite3.c azCols = sqlite3DbMallocZero(db, 2*nCol*sizeof(const char*) + 1); db 86409 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 86418 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_ABORT, 0); db 86435 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, azCols); db 86441 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, azCols); db 86443 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 86444 third_party/sqlite/amalgamation/sqlite3.c if( rc!=SQLITE_OK && ALWAYS(rc==sqlite3_errcode(db)) && pzErrMsg ){ db 86445 third_party/sqlite/amalgamation/sqlite3.c int nErrMsg = 1 + sqlite3Strlen30(sqlite3_errmsg(db)); db 86448 third_party/sqlite/amalgamation/sqlite3.c memcpy(*pzErrMsg, sqlite3_errmsg(db), nErrMsg); db 86451 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_NOMEM, 0); db 86457 third_party/sqlite/amalgamation/sqlite3.c assert( (rc&db->errMask)==rc ); db 86458 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 86569 third_party/sqlite/amalgamation/sqlite3.c int (*errcode)(sqlite3*db); db 87274 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Load the extension into this database connection */ db 87279 third_party/sqlite/amalgamation/sqlite3.c sqlite3_vfs *pVfs = db->pVfs; db 87294 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags & SQLITE_LoadExtension)==0 ){ db 87330 third_party/sqlite/amalgamation/sqlite3.c }else if( xInit(db, &zErrmsg, &sqlite3Apis) ){ db 87340 third_party/sqlite/amalgamation/sqlite3.c aHandle = sqlite3DbMallocZero(db, sizeof(handle)*(db->nExtension+1)); db 87344 third_party/sqlite/amalgamation/sqlite3.c if( db->nExtension>0 ){ db 87345 third_party/sqlite/amalgamation/sqlite3.c memcpy(aHandle, db->aExtension, sizeof(handle)*db->nExtension); db 87347 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, db->aExtension); db 87348 third_party/sqlite/amalgamation/sqlite3.c db->aExtension = aHandle; db 87350 third_party/sqlite/amalgamation/sqlite3.c db->aExtension[db->nExtension++] = handle; db 87354 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Load the extension into this database connection */ db 87360 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 87361 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3LoadExtension(db, zFile, zProc, pzErrMsg); db 87362 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 87363 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 87371 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3CloseExtensions(sqlite3 *db){ db 87373 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 87374 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nExtension; i++){ db 87375 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsDlClose(db->pVfs, db->aExtension[i]); db 87377 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, db->aExtension); db 87384 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff){ db 87385 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 87387 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_LoadExtension; db 87389 third_party/sqlite/amalgamation/sqlite3.c db->flags &= ~SQLITE_LoadExtension; db 87391 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 87502 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3AutoLoadExtensions(sqlite3 *db){ db 87527 third_party/sqlite/amalgamation/sqlite3.c if( xInit && xInit(db, &zErrmsg, &sqlite3Apis) ){ db 87528 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_ERROR, db 87645 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 87646 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[1].pBt!=0 ){ db 87647 third_party/sqlite/amalgamation/sqlite3.c if( !db->autoCommit || sqlite3BtreeIsInReadTrans(db->aDb[1].pBt) ){ db 87652 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeClose(db->aDb[1].pBt); db 87653 third_party/sqlite/amalgamation/sqlite3.c db->aDb[1].pBt = 0; db 87654 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 87668 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 87669 third_party/sqlite/amalgamation/sqlite3.c if( db->temp_store==ts ) return SQLITE_OK; db 87673 third_party/sqlite/amalgamation/sqlite3.c db->temp_store = (u8)ts; db 87684 third_party/sqlite/amalgamation/sqlite3.c i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value)); db 87743 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 87749 third_party/sqlite/amalgamation/sqlite3.c returnSingleInt(pParse, p->zName, (db->flags & p->mask)!=0 ); db 87752 third_party/sqlite/amalgamation/sqlite3.c if( db->autoCommit==0 ){ db 87759 third_party/sqlite/amalgamation/sqlite3.c db->flags |= mask; db 87761 third_party/sqlite/amalgamation/sqlite3.c db->flags &= ~mask; db 87849 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 87851 third_party/sqlite/amalgamation/sqlite3.c Vdbe *v = pParse->pVdbe = sqlite3VdbeCreate(db); db 87860 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[iDb]; db 87869 third_party/sqlite/amalgamation/sqlite3.c zLeft = sqlite3NameFromToken(db, pId); db 87872 third_party/sqlite/amalgamation/sqlite3.c zRight = sqlite3MPrintf(db, "-%T", pValue); db 87874 third_party/sqlite/amalgamation/sqlite3.c zRight = sqlite3NameFromToken(db, pValue); db 87927 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 87952 third_party/sqlite/amalgamation/sqlite3.c db->nextPagesize = sqlite3Atoi(zRight); db 87953 third_party/sqlite/amalgamation/sqlite3.c if( SQLITE_NOMEM==sqlite3BtreeSetPageSize(pBt, db->nextPagesize, -1, 0) ){ db 87954 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 87976 third_party/sqlite/amalgamation/sqlite3.c for(ii=0; ii<db->nDb; ii++){ db 87977 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeSecureDelete(db->aDb[ii].pBt, b); db 88027 third_party/sqlite/amalgamation/sqlite3.c eMode = db->dfltLockMode; db 88040 third_party/sqlite/amalgamation/sqlite3.c assert(pDb==&db->aDb[0]); db 88041 third_party/sqlite/amalgamation/sqlite3.c for(ii=2; ii<db->nDb; ii++){ db 88042 third_party/sqlite/amalgamation/sqlite3.c pPager = sqlite3BtreePager(db->aDb[ii].pBt); db 88045 third_party/sqlite/amalgamation/sqlite3.c db->dfltLockMode = (u8)eMode; db 88100 third_party/sqlite/amalgamation/sqlite3.c for(ii=db->nDb-1; ii>=0; ii--){ db 88101 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[ii].pBt && (ii==iDb || pId2->n==0) ){ db 88153 third_party/sqlite/amalgamation/sqlite3.c db->nextAutovac = (u8)eAuto; db 88230 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 88253 third_party/sqlite/amalgamation/sqlite3.c returnSingleInt(pParse, "temp_store", db->temp_store); db 88283 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE, &res); db 88290 third_party/sqlite/amalgamation/sqlite3.c || (SQLITE_TEMP_STORE==1 && db->temp_store<=1) db 88291 third_party/sqlite/amalgamation/sqlite3.c || (SQLITE_TEMP_STORE==2 && db->temp_store==1) db 88369 third_party/sqlite/amalgamation/sqlite3.c if( !db->autoCommit ){ db 88402 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, zRight, zDb); db 88441 third_party/sqlite/amalgamation/sqlite3.c pIdx = sqlite3FindIndex(db, zRight, zDb); db 88465 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, zRight, zDb); db 88496 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 88497 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[i].pBt==0 ) continue; db 88498 third_party/sqlite/amalgamation/sqlite3.c assert( db->aDb[i].zName!=0 ); db 88500 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeAddOp4(v, OP_String8, 0, 2, 0, db->aDb[i].zName, 0); db 88502 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeGetFilename(db->aDb[i].pBt), 0); db 88514 third_party/sqlite/amalgamation/sqlite3.c for(p=sqliteHashFirst(&db->aCollSeq); p; p=sqliteHashNext(p)){ db 88528 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, zRight, zDb); db 88586 third_party/sqlite/amalgamation/sqlite3.c sqlite3RegisterLikeFunctions(db, getBoolean(zRight)); db 88634 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 88651 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 88652 third_party/sqlite/amalgamation/sqlite3.c pTbls = &db->aDb[i].pSchema->tblHash; db 88674 third_party/sqlite/amalgamation/sqlite3.c sqlite3MPrintf(db, "*** in database %s ***\n", db->aDb[i].zName), db 88805 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeChangeP4(v, -1, encnames[ENC(pParse->db)].zName, P4_STATIC); db 88814 third_party/sqlite/amalgamation/sqlite3.c !(DbHasProperty(db, 0, DB_SchemaLoaded)) || db 88815 third_party/sqlite/amalgamation/sqlite3.c DbHasProperty(db, 0, DB_Empty) db 88819 third_party/sqlite/amalgamation/sqlite3.c ENC(pParse->db) = pEnc->enc ? pEnc->enc : SQLITE_UTF16NATIVE; db 88961 third_party/sqlite/amalgamation/sqlite3.c sqlite3_wal_autocheckpoint(db, sqlite3Atoi(zRight)); db 88964 third_party/sqlite/amalgamation/sqlite3.c db->xWalCallback==sqlite3WalDefaultHook ? db 88965 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PTR_TO_INT(db->pWalArg) : 0); db 88982 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 88987 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[i].zName==0 ) continue; db 88988 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeAddOp4(v, OP_String8, 0, 1, 0, db->aDb[i].zName, P4_STATIC); db 88989 third_party/sqlite/amalgamation/sqlite3.c pBt = db->aDb[i].pBt; db 88992 third_party/sqlite/amalgamation/sqlite3.c }else if( sqlite3_file_control(db, i ? db->aDb[i].zName : 0, db 89005 third_party/sqlite/amalgamation/sqlite3.c sqlite3_key(db, zRight, sqlite3Strlen30(zRight)); db 89008 third_party/sqlite/amalgamation/sqlite3.c sqlite3_rekey(db, zRight, sqlite3Strlen30(zRight)); db 89020 third_party/sqlite/amalgamation/sqlite3.c sqlite3_key(db, zKey, i/2); db 89022 third_party/sqlite/amalgamation/sqlite3.c sqlite3_rekey(db, zKey, i/2); db 89049 third_party/sqlite/amalgamation/sqlite3.c if( db->autoCommit ){ db 89051 third_party/sqlite/amalgamation/sqlite3.c (db->flags&SQLITE_FullFSync)!=0, db 89052 third_party/sqlite/amalgamation/sqlite3.c (db->flags&SQLITE_CkptFullFSync)!=0); db 89056 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zLeft); db 89057 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zRight); db 89089 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pData->db; db 89090 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed && (db->flags & SQLITE_RecoveryMode)==0 ){ db 89092 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(pData->pzErrMsg, db, db 89095 third_party/sqlite/amalgamation/sqlite3.c *pData->pzErrMsg = sqlite3MAppendf(db, *pData->pzErrMsg, db 89099 third_party/sqlite/amalgamation/sqlite3.c pData->rc = db->mallocFailed ? SQLITE_NOMEM : SQLITE_CORRUPT_BKPT; db 89116 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pData->db; db 89121 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 89122 third_party/sqlite/amalgamation/sqlite3.c DbClearProperty(db, iDb, DB_Empty); db 89123 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 89128 third_party/sqlite/amalgamation/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); db 89142 third_party/sqlite/amalgamation/sqlite3.c assert( db->init.busy ); db 89143 third_party/sqlite/amalgamation/sqlite3.c db->init.iDb = iDb; db 89144 third_party/sqlite/amalgamation/sqlite3.c db->init.newTnum = sqlite3Atoi(argv[1]); db 89145 third_party/sqlite/amalgamation/sqlite3.c db->init.orphanTrigger = 0; db 89146 third_party/sqlite/amalgamation/sqlite3.c TESTONLY(rcp = ) sqlite3_prepare(db, argv[2], -1, &pStmt, 0); db 89147 third_party/sqlite/amalgamation/sqlite3.c rc = db->errCode; db 89149 third_party/sqlite/amalgamation/sqlite3.c db->init.iDb = 0; db 89151 third_party/sqlite/amalgamation/sqlite3.c if( db->init.orphanTrigger ){ db 89156 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 89158 third_party/sqlite/amalgamation/sqlite3.c corruptSchema(pData, argv[0], sqlite3_errmsg(db)); db 89173 third_party/sqlite/amalgamation/sqlite3.c pIndex = sqlite3FindIndex(db, argv[0], db->aDb[iDb].zName); db 89196 third_party/sqlite/amalgamation/sqlite3.c static int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg){ db 89235 third_party/sqlite/amalgamation/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); db 89236 third_party/sqlite/amalgamation/sqlite3.c assert( db->aDb[iDb].pSchema ); db 89237 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 89238 third_party/sqlite/amalgamation/sqlite3.c assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) ); db 89256 third_party/sqlite/amalgamation/sqlite3.c initData.db = db; db 89265 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, zMasterName, db->aDb[iDb].zName); db 89272 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[iDb]; db 89275 third_party/sqlite/amalgamation/sqlite3.c DbSetProperty(db, 1, DB_SchemaLoaded); db 89287 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(pzErrMsg, db, "%s", sqlite3ErrStr(rc)); db 89326 third_party/sqlite/amalgamation/sqlite3.c ENC(db) = encoding; db 89327 third_party/sqlite/amalgamation/sqlite3.c db->pDfltColl = sqlite3FindCollSeq(db, SQLITE_UTF8, "BINARY", 0); db 89330 third_party/sqlite/amalgamation/sqlite3.c if( meta[BTREE_TEXT_ENCODING-1]!=ENC(db) ){ db 89331 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(pzErrMsg, db, "attached databases must use the same" db 89338 third_party/sqlite/amalgamation/sqlite3.c DbSetProperty(db, iDb, DB_Empty); db 89340 third_party/sqlite/amalgamation/sqlite3.c pDb->pSchema->enc = ENC(db); db 89360 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(pzErrMsg, db, "unsupported file format"); db 89371 third_party/sqlite/amalgamation/sqlite3.c db->flags &= ~SQLITE_LegacyFileFmt; db 89376 third_party/sqlite/amalgamation/sqlite3.c assert( db->init.busy ); db 89379 third_party/sqlite/amalgamation/sqlite3.c zSql = sqlite3MPrintf(db, db 89381 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName, zMasterName); db 89385 third_party/sqlite/amalgamation/sqlite3.c xAuth = db->xAuth; db 89386 third_party/sqlite/amalgamation/sqlite3.c db->xAuth = 0; db 89388 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(db, zSql, sqlite3InitCallback, &initData, 0); db 89390 third_party/sqlite/amalgamation/sqlite3.c db->xAuth = xAuth; db 89394 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zSql); db 89397 third_party/sqlite/amalgamation/sqlite3.c sqlite3AnalysisLoad(db, iDb); db 89401 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 89403 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 89405 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_OK || (db->flags&SQLITE_RecoveryMode)){ db 89414 third_party/sqlite/amalgamation/sqlite3.c DbSetProperty(db, iDb, DB_SchemaLoaded); db 89430 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 89445 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3Init(sqlite3 *db, char **pzErrMsg){ db 89447 third_party/sqlite/amalgamation/sqlite3.c int commit_internal = !(db->flags&SQLITE_InternChanges); db 89449 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 89451 third_party/sqlite/amalgamation/sqlite3.c db->init.busy = 1; db 89452 third_party/sqlite/amalgamation/sqlite3.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 89453 third_party/sqlite/amalgamation/sqlite3.c if( DbHasProperty(db, i, DB_SchemaLoaded) || i==1 ) continue; db 89454 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3InitOne(db, i, pzErrMsg); db 89456 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, i); db 89465 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_OK && ALWAYS(db->nDb>1) db 89466 third_party/sqlite/amalgamation/sqlite3.c && !DbHasProperty(db, 1, DB_SchemaLoaded) ){ db 89467 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3InitOne(db, 1, pzErrMsg); db 89469 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, 1); db 89474 third_party/sqlite/amalgamation/sqlite3.c db->init.busy = 0; db 89476 third_party/sqlite/amalgamation/sqlite3.c sqlite3CommitInternalChanges(db); db 89488 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 89489 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 89490 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy ){ db 89491 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Init(db, &pParse->zErrMsg); db 89507 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 89513 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 89514 third_party/sqlite/amalgamation/sqlite3.c for(iDb=0; iDb<db->nDb; iDb++){ db 89516 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[iDb].pBt; /* Btree database to read cookie from */ db 89525 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 89535 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 89536 third_party/sqlite/amalgamation/sqlite3.c if( cookie!=db->aDb[iDb].pSchema->schema_cookie ){ db 89537 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, iDb); db 89555 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){ db 89568 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 89570 third_party/sqlite/amalgamation/sqlite3.c for(i=0; ALWAYS(i<db->nDb); i++){ db 89571 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[i].pSchema==pSchema ){ db 89575 third_party/sqlite/amalgamation/sqlite3.c assert( i>=0 && i<db->nDb ); db 89584 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle. */ db 89598 third_party/sqlite/amalgamation/sqlite3.c pParse = sqlite3StackAllocZero(db, sizeof(*pParse)); db 89605 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 89606 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 89631 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++) { db 89632 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[i].pBt; db 89637 third_party/sqlite/amalgamation/sqlite3.c const char *zDb = db->aDb[i].zName; db 89638 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, "database schema is locked: %s", zDb); db 89639 third_party/sqlite/amalgamation/sqlite3.c testcase( db->flags & SQLITE_ReadUncommitted ); db 89645 third_party/sqlite/amalgamation/sqlite3.c sqlite3VtabUnlockList(db); db 89647 third_party/sqlite/amalgamation/sqlite3.c pParse->db = db; db 89651 third_party/sqlite/amalgamation/sqlite3.c int mxLen = db->aLimit[SQLITE_LIMIT_SQL_LENGTH]; db 89655 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_TOOBIG, "statement too long"); db 89656 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, SQLITE_TOOBIG); db 89659 third_party/sqlite/amalgamation/sqlite3.c zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes); db 89662 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zSqlCopy); db 89672 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 89679 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 89710 third_party/sqlite/amalgamation/sqlite3.c assert( db->init.busy==0 || saveSqlFlag==0 ); db 89711 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy==0 ){ db 89715 third_party/sqlite/amalgamation/sqlite3.c if( pParse->pVdbe && (rc!=SQLITE_OK || db->mallocFailed) ){ db 89723 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, "%s", zErrMsg); db 89724 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErrMsg); db 89726 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, 0); db 89733 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pT); db 89738 third_party/sqlite/amalgamation/sqlite3.c sqlite3StackFree(db, pParse); db 89739 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 89740 third_party/sqlite/amalgamation/sqlite3.c assert( (rc&db->errMask)==rc ); db 89744 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle. */ db 89755 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3SafetyCheckOk(db) ){ db 89758 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 89759 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeEnterAll(db); db 89760 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail); db 89763 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail); db 89765 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 89766 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 89782 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 89787 third_party/sqlite/amalgamation/sqlite3.c db = sqlite3VdbeDb(p); db 89788 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 89789 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3LockAndPrepare(db, zSql, -1, 0, p, &pNew, 0); db 89792 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 89816 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle. */ db 89823 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail); db 89828 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle. */ db 89835 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3LockAndPrepare(db,zSql,nBytes,1,0,ppStmt,pzTail); db 89846 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle. */ db 89863 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3SafetyCheckOk(db) ){ db 89866 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 89867 third_party/sqlite/amalgamation/sqlite3.c zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE); db 89869 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3LockAndPrepare(db, zSql8, -1, saveSqlFlag, 0, ppStmt, &zTail8); db 89881 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zSql8); db 89882 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 89883 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 89896 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle. */ db 89903 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail); db 89908 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle. */ db 89915 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Prepare16(db,zSql,nBytes,1,ppStmt,pzTail); db 89944 third_party/sqlite/amalgamation/sqlite3.c static void clearSelect(sqlite3 *db, Select *p){ db 89945 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, p->pEList); db 89946 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, p->pSrc); db 89947 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pWhere); db 89948 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, p->pGroupBy); db 89949 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pHaving); db 89950 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, p->pOrderBy); db 89951 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, p->pPrior); db 89952 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pLimit); db 89953 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pOffset); db 89986 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 89987 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocZero(db, sizeof(*pNew) ); db 89988 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed || !pOffset || pLimit ); /* OFFSET implies LIMIT */ db 89994 third_party/sqlite/amalgamation/sqlite3.c pEList = sqlite3ExprListAppend(pParse, 0, sqlite3Expr(db,TK_ALL,0)); db 90010 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) { db 90011 third_party/sqlite/amalgamation/sqlite3.c clearSelect(db, pNew); db 90012 third_party/sqlite/amalgamation/sqlite3.c if( pNew!=&standin ) sqlite3DbFree(db, pNew); db 90021 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3SelectDelete(sqlite3 *db, Select *p){ db 90023 third_party/sqlite/amalgamation/sqlite3.c clearSelect(db, p); db 90024 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 90168 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 90178 third_party/sqlite/amalgamation/sqlite3.c pE1 = sqlite3CreateColumnExpr(db, pSrc, iLeft, iColLeft); db 90179 third_party/sqlite/amalgamation/sqlite3.c pE2 = sqlite3CreateColumnExpr(db, pSrc, iRight, iColRight); db 90188 third_party/sqlite/amalgamation/sqlite3.c *ppWhere = sqlite3ExprAnd(db, *ppWhere, pEq); db 90294 third_party/sqlite/amalgamation/sqlite3.c p->pWhere = sqlite3ExprAnd(pParse->db, p->pWhere, pRight->pOn); db 90670 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 90677 third_party/sqlite/amalgamation/sqlite3.c pInfo = sqlite3DbMallocZero(db, sizeof(*pInfo) + nExpr*(sizeof(CollSeq*)+1) ); db 90681 third_party/sqlite/amalgamation/sqlite3.c pInfo->enc = ENC(db); db 90682 third_party/sqlite/amalgamation/sqlite3.c pInfo->db = db; db 90687 third_party/sqlite/amalgamation/sqlite3.c pColl = db->pDfltColl; db 90726 third_party/sqlite/amalgamation/sqlite3.c char *zMsg = sqlite3MPrintf(pParse->db, "USE TEMP B-TREE FOR %s", zUsage); db 90772 third_party/sqlite/amalgamation/sqlite3.c pParse->db, "COMPOUND SUBQUERIES %d AND %d %s(%s)", iSub1, iSub2, db 90988 third_party/sqlite/amalgamation/sqlite3.c int iDb = sqlite3SchemaToIndex(pNC->pParse->db, pTab->pSchema); db 90989 third_party/sqlite/amalgamation/sqlite3.c zOriginDb = pNC->pParse->db->aDb[iDb].zName; db 91073 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 91083 third_party/sqlite/amalgamation/sqlite3.c if( pParse->colNamesSet || NEVER(v==0) || db->mallocFailed ) return; db 91085 third_party/sqlite/amalgamation/sqlite3.c fullNames = (db->flags & SQLITE_FullColNames)!=0; db 91086 third_party/sqlite/amalgamation/sqlite3.c shortNames = (db->flags & SQLITE_ShortColNames)!=0; db 91113 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbStrDup(db, pEList->a[i].zSpan), SQLITE_DYNAMIC); db 91116 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3MPrintf(db, "%s.%s", pTab->zName, zCol); db 91123 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbStrDup(db, pEList->a[i].zSpan), SQLITE_DYNAMIC); db 91148 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database connection */ db 91158 third_party/sqlite/amalgamation/sqlite3.c aCol = *paCol = sqlite3DbMallocZero(db, sizeof(aCol[0])*nCol); db 91168 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3DbStrDup(db, zName); db 91178 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3MPrintf(db, "%s", db 91182 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3MPrintf(db, "%s", pColExpr->u.zToken); db 91185 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3MPrintf(db, "%s", pEList->a[i].zSpan); db 91188 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 91189 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zName); db 91201 third_party/sqlite/amalgamation/sqlite3.c zNewName = sqlite3MPrintf(db, "%s:%d", zName, ++cnt); db 91202 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zName); db 91210 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 91212 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aCol[j].zName); db 91214 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aCol); db 91239 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 91249 third_party/sqlite/amalgamation/sqlite3.c assert( nCol==pSelect->pEList->nExpr || db->mallocFailed ); db 91250 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) return; db 91256 third_party/sqlite/amalgamation/sqlite3.c pCol->zType = sqlite3DbStrDup(db, columnType(&sNC, p, 0, 0, 0)); db 91261 third_party/sqlite/amalgamation/sqlite3.c pCol->zColl = sqlite3DbStrDup(db, pColl->zName); db 91272 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 91275 third_party/sqlite/amalgamation/sqlite3.c savedFlags = db->flags; db 91276 third_party/sqlite/amalgamation/sqlite3.c db->flags &= ~SQLITE_FullColNames; db 91277 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_ShortColNames; db 91281 third_party/sqlite/amalgamation/sqlite3.c db->flags = savedFlags; db 91282 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3DbMallocZero(db, sizeof(Table) ); db 91288 third_party/sqlite/amalgamation/sqlite3.c assert( db->lookaside.bEnabled==0 ); db 91295 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 91296 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, pTab); db 91309 third_party/sqlite/amalgamation/sqlite3.c v = pParse->pVdbe = sqlite3VdbeCreate(pParse->db); db 91463 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Database connection */ db 91473 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 91623 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, p->pOrderBy); db 91628 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pLimit); db 91708 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pLimit); db 91760 third_party/sqlite/amalgamation/sqlite3.c pKeyInfo = sqlite3DbMallocZero(db, db 91767 third_party/sqlite/amalgamation/sqlite3.c pKeyInfo->enc = ENC(db); db 91773 third_party/sqlite/amalgamation/sqlite3.c *apColl = db->pDfltColl; db 91791 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pKeyInfo); db 91797 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pDelete); db 91852 third_party/sqlite/amalgamation/sqlite3.c if( pParse->db->mallocFailed ) return 0; db 92081 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Database connection */ db 92092 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 92113 third_party/sqlite/amalgamation/sqlite3.c for(i=1; db->mallocFailed==0 && i<=p->pEList->nExpr; i++){ db 92120 third_party/sqlite/amalgamation/sqlite3.c Expr *pNew = sqlite3Expr(db, TK_INTEGER, 0); db 92137 third_party/sqlite/amalgamation/sqlite3.c aPermute = sqlite3DbMallocRaw(db, sizeof(int)*nOrderBy); db 92145 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbMallocRaw(db, sizeof(*pKeyMerge)+nOrderBy*(sizeof(CollSeq*)+1)); db 92149 third_party/sqlite/amalgamation/sqlite3.c pKeyMerge->enc = ENC(db); db 92171 third_party/sqlite/amalgamation/sqlite3.c pPrior->pOrderBy = sqlite3ExprListDup(pParse->db, pOrderBy, 0); db 92181 third_party/sqlite/amalgamation/sqlite3.c assert( nOrderBy>=nExpr || db->mallocFailed ); db 92184 third_party/sqlite/amalgamation/sqlite3.c pKeyDup = sqlite3DbMallocZero(db, db 92189 third_party/sqlite/amalgamation/sqlite3.c pKeyDup->enc = ENC(db); db 92216 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pLimit); db 92218 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p->pOffset); db 92384 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, p->pPrior); db 92414 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Report malloc errors to this connection */ db 92427 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3ExprDup(db, pEList->a[pExpr->iColumn].pExpr, 0); db 92431 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pExpr); db 92435 third_party/sqlite/amalgamation/sqlite3.c pExpr->pLeft = substExpr(db, pExpr->pLeft, iTable, pEList); db 92436 third_party/sqlite/amalgamation/sqlite3.c pExpr->pRight = substExpr(db, pExpr->pRight, iTable, pEList); db 92438 third_party/sqlite/amalgamation/sqlite3.c substSelect(db, pExpr->x.pSelect, iTable, pEList); db 92440 third_party/sqlite/amalgamation/sqlite3.c substExprList(db, pExpr->x.pList, iTable, pEList); db 92446 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Report malloc errors here */ db 92454 third_party/sqlite/amalgamation/sqlite3.c pList->a[i].pExpr = substExpr(db, pList->a[i].pExpr, iTable, pEList); db 92458 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Report malloc errors here */ db 92467 third_party/sqlite/amalgamation/sqlite3.c substExprList(db, p->pEList, iTable, pEList); db 92468 third_party/sqlite/amalgamation/sqlite3.c substExprList(db, p->pGroupBy, iTable, pEList); db 92469 third_party/sqlite/amalgamation/sqlite3.c substExprList(db, p->pOrderBy, iTable, pEList); db 92470 third_party/sqlite/amalgamation/sqlite3.c p->pHaving = substExpr(db, p->pHaving, iTable, pEList); db 92471 third_party/sqlite/amalgamation/sqlite3.c p->pWhere = substExpr(db, p->pWhere, iTable, pEList); db 92472 third_party/sqlite/amalgamation/sqlite3.c substSelect(db, p->pPrior, iTable, pEList); db 92477 third_party/sqlite/amalgamation/sqlite3.c substSelect(db, pItem->pSelect, iTable, pEList); db 92612 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 92618 third_party/sqlite/amalgamation/sqlite3.c if( db->flags & SQLITE_QueryFlattener ) return 0; db 92773 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3SelectDup(db, p, 0); db 92786 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) return 1; db 92797 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pSubitem->zDatabase); db 92798 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pSubitem->zName); db 92799 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pSubitem->zAlias); db 92849 third_party/sqlite/amalgamation/sqlite3.c pSrc = pParent->pSrc = sqlite3SrcListAppend(db, 0, 0, 0); db 92851 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed ); db 92872 third_party/sqlite/amalgamation/sqlite3.c pParent->pSrc = pSrc = sqlite3SrcListEnlarge(db, pSrc, nSubSrc-1,iFrom+1); db 92873 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 92882 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pSrc->a[i+iFrom].pUsing); db 92905 third_party/sqlite/amalgamation/sqlite3.c pList->a[i].zName = sqlite3DbStrDup(db, zSpan); db 92909 third_party/sqlite/amalgamation/sqlite3.c substExprList(db, pParent->pEList, iParent, pSub->pEList); db 92911 third_party/sqlite/amalgamation/sqlite3.c substExprList(db, pParent->pGroupBy, iParent, pSub->pEList); db 92912 third_party/sqlite/amalgamation/sqlite3.c pParent->pHaving = substExpr(db, pParent->pHaving, iParent, pSub->pEList); db 92919 third_party/sqlite/amalgamation/sqlite3.c substExprList(db, pParent->pOrderBy, iParent, pSub->pEList); db 92922 third_party/sqlite/amalgamation/sqlite3.c pWhere = sqlite3ExprDup(db, pSub->pWhere, 0); db 92930 third_party/sqlite/amalgamation/sqlite3.c pParent->pHaving = substExpr(db, pParent->pHaving, iParent, pSub->pEList); db 92931 third_party/sqlite/amalgamation/sqlite3.c pParent->pHaving = sqlite3ExprAnd(db, pParent->pHaving, db 92932 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDup(db, pSub->pHaving, 0)); db 92934 third_party/sqlite/amalgamation/sqlite3.c pParent->pGroupBy = sqlite3ExprListDup(db, pSub->pGroupBy, 0); db 92936 third_party/sqlite/amalgamation/sqlite3.c pParent->pWhere = substExpr(db, pParent->pWhere, iParent, pSub->pEList); db 92937 third_party/sqlite/amalgamation/sqlite3.c pParent->pWhere = sqlite3ExprAnd(db, pParent->pWhere, pWhere); db 92960 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSub1); db 93087 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 93089 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 93123 third_party/sqlite/amalgamation/sqlite3.c pFrom->pTab = pTab = sqlite3DbMallocZero(db, sizeof(Table)); db 93126 third_party/sqlite/amalgamation/sqlite3.c pTab->zName = sqlite3MPrintf(db, "sqlite_subquery_%p_", (void*)pTab); db 93145 third_party/sqlite/amalgamation/sqlite3.c pFrom->pSelect = sqlite3SelectDup(db, pTab->pSelect, 0); db 93159 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed || sqliteProcessJoin(pParse, p) ){ db 93188 third_party/sqlite/amalgamation/sqlite3.c int flags = pParse->db->flags; db 93224 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) break; db 93259 third_party/sqlite/amalgamation/sqlite3.c pRight = sqlite3Expr(db, TK_ID, zName); db 93264 third_party/sqlite/amalgamation/sqlite3.c pLeft = sqlite3Expr(db, TK_ID, zTabName); db 93267 third_party/sqlite/amalgamation/sqlite3.c zColname = sqlite3MPrintf(db, "%s.%s", zTabName, zName); db 93277 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zToFree); db 93289 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pEList); db 93293 third_party/sqlite/amalgamation/sqlite3.c if( p->pEList && p->pEList->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){ db 93412 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 93414 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 93417 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ) return; db 93419 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ) return; db 93514 third_party/sqlite/amalgamation/sqlite3.c pColl = pParse->db->pDfltColl; db 93558 third_party/sqlite/amalgamation/sqlite3.c char *zEqp = sqlite3MPrintf(pParse->db, "SCAN TABLE %s %s%s(~%d rows)", db 93648 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection */ db 93655 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 93656 third_party/sqlite/amalgamation/sqlite3.c if( p==0 || db->mallocFailed || pParse->nErr ){ db 93667 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, p->pOrderBy); db 93675 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ){ db 93731 third_party/sqlite/amalgamation/sqlite3.c if( /*pParse->nErr ||*/ db->mallocFailed ){ db 93760 third_party/sqlite/amalgamation/sqlite3.c mxSelect = db->aLimit[SQLITE_LIMIT_COMPOUND_SELECT]; db 93777 third_party/sqlite/amalgamation/sqlite3.c p->pGroupBy = sqlite3ExprListDup(db, p->pEList, 0); db 93790 third_party/sqlite/amalgamation/sqlite3.c && (db->flags & SQLITE_GroupByOrder)==0 ){ db 93920 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) goto select_end; db 94146 third_party/sqlite/amalgamation/sqlite3.c const int iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 94217 third_party/sqlite/amalgamation/sqlite3.c pMinMax = sqlite3ExprListDup(db, p->pEList->a[0].pExpr->x.pList,0); db 94219 third_party/sqlite/amalgamation/sqlite3.c if( pMinMax && !db->mallocFailed ){ db 94232 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pDel); db 94249 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pDel); db 94288 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, sAggInfo.aCol); db 94289 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, sAggInfo.aFunc); db 94506 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* The database on which the SQL executes */ db 94528 third_party/sqlite/amalgamation/sqlite3.c db->errCode = SQLITE_NOMEM; db 94532 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg); db 94544 third_party/sqlite/amalgamation/sqlite3.c db->errCode = res.rc; /* Assume 32-bit assignment is atomic */ db 94557 third_party/sqlite/amalgamation/sqlite3.c db->errCode = SQLITE_NOMEM; db 94605 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){ db 94610 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pTmp->pWhere); db 94611 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pTmp->pExprList); db 94612 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pTmp->pSelect); db 94613 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pTmp->pIdList); db 94615 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTmp); db 94634 third_party/sqlite/amalgamation/sqlite3.c Schema * const pTmpSchema = pParse->db->aDb[1].pSchema; db 94643 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(pParse->db, 0, pTmpSchema) ); db 94681 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 94712 third_party/sqlite/amalgamation/sqlite3.c if( !pTableName || db->mallocFailed ){ db 94716 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy==0 && pName2->n==0 && pTab db 94717 third_party/sqlite/amalgamation/sqlite3.c && pTab->pSchema==db->aDb[1].pSchema ){ db 94722 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) goto trigger_cleanup; db 94731 third_party/sqlite/amalgamation/sqlite3.c if( db->init.iDb==1 ){ db 94740 third_party/sqlite/amalgamation/sqlite3.c db->init.orphanTrigger = 1; db 94751 third_party/sqlite/amalgamation/sqlite3.c zName = sqlite3NameFromToken(db, pName); db 94755 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 94756 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3HashFind(&(db->aDb[iDb].pSchema->trigHash), db 94761 third_party/sqlite/amalgamation/sqlite3.c assert( !db->init.busy ); db 94787 third_party/sqlite/amalgamation/sqlite3.c iTabDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 94792 third_party/sqlite/amalgamation/sqlite3.c const char *zDb = db->aDb[iTabDb].zName; db 94793 third_party/sqlite/amalgamation/sqlite3.c const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb; db 94814 third_party/sqlite/amalgamation/sqlite3.c pTrigger = (Trigger*)sqlite3DbMallocZero(db, sizeof(Trigger)); db 94818 third_party/sqlite/amalgamation/sqlite3.c pTrigger->table = sqlite3DbStrDup(db, pTableName->a[0].zName); db 94819 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pSchema = db->aDb[iDb].pSchema; db 94823 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); db 94824 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pColumns = sqlite3IdListDup(db, pColumns); db 94829 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zName); db 94830 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pTableName); db 94831 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pColumns); db 94832 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhen); db 94834 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTrigger(db, pTrigger); db 94851 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database */ db 94859 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTrig->pSchema); db 94875 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy ){ db 94883 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3DbStrNDup(db, (char*)pAll->z, pAll->n); db 94886 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), zName, db 94888 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, z); db 94891 third_party/sqlite/amalgamation/sqlite3.c db, "type='trigger' AND name='%q'", zName), P4_DYNAMIC db 94895 third_party/sqlite/amalgamation/sqlite3.c if( db->init.busy ){ db 94897 third_party/sqlite/amalgamation/sqlite3.c Hash *pHash = &db->aDb[iDb].pSchema->trigHash; db 94898 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 94901 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 94913 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTrigger(db, pTrig); db 94915 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTriggerStep(db, pStepList); db 94925 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){ db 94926 third_party/sqlite/amalgamation/sqlite3.c TriggerStep *pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep)); db 94928 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 94944 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection */ db 94950 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep) + pName->n); db 94969 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* The database connection */ db 94979 third_party/sqlite/amalgamation/sqlite3.c assert(pEList != 0 || pSelect != 0 || db->mallocFailed); db 94981 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep = triggerStepAllocate(db, TK_INSERT, pTableName); db 94983 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE); db 94985 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep->pExprList = sqlite3ExprListDup(db, pEList, EXPRDUP_REDUCE); db 94988 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pColumn); db 94990 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pEList); db 94991 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 95002 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* The database connection */ db 95010 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep = triggerStepAllocate(db, TK_UPDATE, pTableName); db 95012 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep->pExprList = sqlite3ExprListDup(db, pEList, EXPRDUP_REDUCE); db 95013 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep->pWhere = sqlite3ExprDup(db, pWhere, EXPRDUP_REDUCE); db 95016 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pEList); db 95017 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhere); db 95027 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection */ db 95033 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep = triggerStepAllocate(db, TK_DELETE, pTableName); db 95035 third_party/sqlite/amalgamation/sqlite3.c pTriggerStep->pWhere = sqlite3ExprDup(db, pWhere, EXPRDUP_REDUCE); db 95038 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhere); db 95045 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3 *db, Trigger *pTrigger){ db 95047 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTriggerStep(db, pTrigger->step_list); db 95048 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTrigger->zName); db 95049 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTrigger->table); db 95050 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pTrigger->pWhen); db 95051 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pTrigger->pColumns); db 95052 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTrigger); db 95069 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 95071 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) goto drop_trigger_cleanup; db 95080 third_party/sqlite/amalgamation/sqlite3.c assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); db 95081 third_party/sqlite/amalgamation/sqlite3.c for(i=OMIT_TEMPDB; i<db->nDb; i++){ db 95083 third_party/sqlite/amalgamation/sqlite3.c if( zDb && sqlite3StrICmp(db->aDb[j].zName, zDb) ) continue; db 95084 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); db 95085 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3HashFind(&(db->aDb[j].pSchema->trigHash), zName, nName); db 95100 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pName); db 95119 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 95122 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTrigger->pSchema); db 95123 third_party/sqlite/amalgamation/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); db 95130 third_party/sqlite/amalgamation/sqlite3.c const char *zDb = db->aDb[iDb].zName; db 95174 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTrigger(sqlite3 *db, int iDb, const char *zName){ db 95178 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 95179 third_party/sqlite/amalgamation/sqlite3.c pHash = &(db->aDb[iDb].pSchema->trigHash); db 95188 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTrigger(db, pTrigger); db 95189 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_InternChanges; db 95228 third_party/sqlite/amalgamation/sqlite3.c if( (pParse->db->flags & SQLITE_EnableTrigger)!=0 ){ db 95260 third_party/sqlite/amalgamation/sqlite3.c pSrc = sqlite3SrcListAppend(pParse->db, 0, &pStep->target, 0); db 95264 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pStep->pTrig->pSchema); db 95266 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 95267 third_party/sqlite/amalgamation/sqlite3.c assert( iDb<pParse->db->nDb ); db 95268 third_party/sqlite/amalgamation/sqlite3.c pSrc->a[pSrc->nSrc-1].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zName); db 95285 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 95310 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDup(db, pStep->pExprList, 0), db 95311 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDup(db, pStep->pWhere, 0), db 95319 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDup(db, pStep->pExprList, 0), db 95320 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDup(db, pStep->pSelect, 0), db 95321 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDup(db, pStep->pIdList), db 95329 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDup(db, pStep->pWhere, 0) db 95335 third_party/sqlite/amalgamation/sqlite3.c Select *pSelect = sqlite3SelectDup(db, pStep->pSelect, 0); db 95338 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 95380 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pFrom->db, pFrom->zErrMsg); db 95395 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database handle */ db 95410 third_party/sqlite/amalgamation/sqlite3.c pPrg = sqlite3DbMallocZero(db, sizeof(TriggerPrg)); db 95414 third_party/sqlite/amalgamation/sqlite3.c pPrg->pProgram = pProgram = sqlite3DbMallocZero(db, sizeof(SubProgram)); db 95424 third_party/sqlite/amalgamation/sqlite3.c pSubParse = sqlite3StackAllocZero(db, sizeof(Parse)); db 95428 third_party/sqlite/amalgamation/sqlite3.c pSubParse->db = db; db 95447 third_party/sqlite/amalgamation/sqlite3.c sqlite3MPrintf(db, "-- TRIGGER %s", pTrigger->zName), P4_DYNAMIC db 95455 third_party/sqlite/amalgamation/sqlite3.c pWhen = sqlite3ExprDup(db, pTrigger->pWhen, 0); db 95457 third_party/sqlite/amalgamation/sqlite3.c && db->mallocFailed==0 db 95462 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhen); db 95476 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed==0 ){ db 95489 third_party/sqlite/amalgamation/sqlite3.c sqlite3StackFree(db, pSubParse); db 95545 third_party/sqlite/amalgamation/sqlite3.c assert( pPrg || pParse->nErr || pParse->db->mallocFailed ); db 95550 third_party/sqlite/amalgamation/sqlite3.c int bRecursive = (p->zName && 0==(pParse->db->flags&SQLITE_RecTriggers)); db 95631 third_party/sqlite/amalgamation/sqlite3.c || p->pSchema==pParse->db->aDb[1].pSchema ); db 95802 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database structure */ db 95832 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 95833 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ){ db 95842 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 95867 third_party/sqlite/amalgamation/sqlite3.c aXRef = sqlite3DbMallocRaw(db, sizeof(int) * pTab->nCol ); db 95921 third_party/sqlite/amalgamation/sqlite3.c pTab->aCol[j].zName, db->aDb[iDb].zName); db 95940 third_party/sqlite/amalgamation/sqlite3.c aRegIdx = sqlite3DbMallocRaw(db, sizeof(Index*) * nIdx ); db 96030 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags & SQLITE_CountRows) && !pParse->pTriggerTab ){ db 96213 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags & SQLITE_CountRows) && !pParse->pTriggerTab){ db 96247 third_party/sqlite/amalgamation/sqlite3.c if( (db->flags&SQLITE_CountRows) && !pParse->pTriggerTab && !pParse->nested ){ db 96255 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aRegIdx); db 96256 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, aXRef); db 96257 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(db, pTabList); db 96258 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pChanges); db 96259 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pWhere); db 96309 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database connection */ db 96310 third_party/sqlite/amalgamation/sqlite3.c const char *pVTab = (const char*)sqlite3GetVTable(db, pTab); db 96316 third_party/sqlite/amalgamation/sqlite3.c pEList = sqlite3ExprListAppend(pParse, 0, sqlite3Expr(db, TK_ID, "_rowid_")); db 96319 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDup(db, pRowid, 0)); db 96324 third_party/sqlite/amalgamation/sqlite3.c pExpr = sqlite3ExprDup(db, pChanges->a[aXRef[i]].pExpr, 0); db 96326 third_party/sqlite/amalgamation/sqlite3.c pExpr = sqlite3Expr(db, TK_ID, pTab->aCol[i].zName); db 96362 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(db, pSelect); db 96390 third_party/sqlite/amalgamation/sqlite3.c static int vacuumFinalize(sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg){ db 96394 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(pzErrMsg, db, sqlite3_errmsg(db)); db 96402 third_party/sqlite/amalgamation/sqlite3.c static int execSql(sqlite3 *db, char **pzErrMsg, const char *zSql){ db 96408 third_party/sqlite/amalgamation/sqlite3.c if( SQLITE_OK!=sqlite3_prepare(db, zSql, -1, &pStmt, 0) ){ db 96409 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(pzErrMsg, db, sqlite3_errmsg(db)); db 96410 third_party/sqlite/amalgamation/sqlite3.c return sqlite3_errcode(db); db 96414 third_party/sqlite/amalgamation/sqlite3.c return vacuumFinalize(db, pStmt, pzErrMsg); db 96421 third_party/sqlite/amalgamation/sqlite3.c static int execExecSql(sqlite3 *db, char **pzErrMsg, const char *zSql){ db 96425 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0); db 96429 third_party/sqlite/amalgamation/sqlite3.c rc = execSql(db, pzErrMsg, (char*)sqlite3_column_text(pStmt, 0)); db 96431 third_party/sqlite/amalgamation/sqlite3.c vacuumFinalize(db, pStmt, pzErrMsg); db 96436 third_party/sqlite/amalgamation/sqlite3.c return vacuumFinalize(db, pStmt, pzErrMsg); db 96460 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3RunVacuum(char **pzErrMsg, sqlite3 *db){ db 96474 third_party/sqlite/amalgamation/sqlite3.c if( !db->autoCommit ){ db 96475 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(pzErrMsg, db, "cannot VACUUM from within a transaction"); db 96478 third_party/sqlite/amalgamation/sqlite3.c if( db->activeVdbeCnt>1 ){ db 96479 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(pzErrMsg, db,"cannot VACUUM - SQL statements in progress"); db 96486 third_party/sqlite/amalgamation/sqlite3.c saved_flags = db->flags; db 96487 third_party/sqlite/amalgamation/sqlite3.c saved_nChange = db->nChange; db 96488 third_party/sqlite/amalgamation/sqlite3.c saved_nTotalChange = db->nTotalChange; db 96489 third_party/sqlite/amalgamation/sqlite3.c saved_xTrace = db->xTrace; db 96490 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_WriteSchema | SQLITE_IgnoreChecks | SQLITE_PreferBuiltin; db 96491 third_party/sqlite/amalgamation/sqlite3.c db->flags &= ~(SQLITE_ForeignKeys | SQLITE_ReverseOrder); db 96492 third_party/sqlite/amalgamation/sqlite3.c db->xTrace = 0; db 96494 third_party/sqlite/amalgamation/sqlite3.c pMain = db->aDb[0].pBt; db 96511 third_party/sqlite/amalgamation/sqlite3.c nDb = db->nDb; db 96512 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3TempInMemory(db) ){ db 96517 third_party/sqlite/amalgamation/sqlite3.c rc = execSql(db, pzErrMsg, zSql); db 96518 third_party/sqlite/amalgamation/sqlite3.c if( db->nDb>nDb ){ db 96519 third_party/sqlite/amalgamation/sqlite3.c pDb = &db->aDb[db->nDb-1]; db 96523 third_party/sqlite/amalgamation/sqlite3.c pTemp = db->aDb[db->nDb-1].pBt; db 96535 third_party/sqlite/amalgamation/sqlite3.c if( db->nextPagesize ){ db 96539 third_party/sqlite/amalgamation/sqlite3.c sqlite3CodecGetKey(db, 0, (void**)&zKey, &nKey); db 96540 third_party/sqlite/amalgamation/sqlite3.c if( nKey ) db->nextPagesize = 0; db 96547 third_party/sqlite/amalgamation/sqlite3.c db->nextPagesize = 0; db 96551 third_party/sqlite/amalgamation/sqlite3.c || (!isMemDb && sqlite3BtreeSetPageSize(pTemp, db->nextPagesize, nRes, 0)) db 96552 third_party/sqlite/amalgamation/sqlite3.c || NEVER(db->mallocFailed) db 96557 third_party/sqlite/amalgamation/sqlite3.c rc = execSql(db, pzErrMsg, "PRAGMA vacuum_db.synchronous=OFF"); db 96563 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeSetAutoVacuum(pTemp, db->nextAutovac>=0 ? db->nextAutovac : db 96568 third_party/sqlite/amalgamation/sqlite3.c rc = execSql(db, pzErrMsg, "BEGIN EXCLUSIVE;"); db 96574 third_party/sqlite/amalgamation/sqlite3.c rc = execExecSql(db, pzErrMsg, db 96580 third_party/sqlite/amalgamation/sqlite3.c rc = execExecSql(db, pzErrMsg, db 96584 third_party/sqlite/amalgamation/sqlite3.c rc = execExecSql(db, pzErrMsg, db 96593 third_party/sqlite/amalgamation/sqlite3.c rc = execExecSql(db, pzErrMsg, db 96604 third_party/sqlite/amalgamation/sqlite3.c rc = execExecSql(db, pzErrMsg, db 96609 third_party/sqlite/amalgamation/sqlite3.c rc = execExecSql(db, pzErrMsg, db 96622 third_party/sqlite/amalgamation/sqlite3.c rc = execSql(db, pzErrMsg, db 96682 third_party/sqlite/amalgamation/sqlite3.c db->flags = saved_flags; db 96683 third_party/sqlite/amalgamation/sqlite3.c db->nChange = saved_nChange; db 96684 third_party/sqlite/amalgamation/sqlite3.c db->nTotalChange = saved_nTotalChange; db 96685 third_party/sqlite/amalgamation/sqlite3.c db->xTrace = saved_xTrace; db 96695 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 1; db 96705 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 96735 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database in which module is registered */ db 96744 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 96746 third_party/sqlite/amalgamation/sqlite3.c pMod = (Module *)sqlite3DbMallocRaw(db, sizeof(Module) + nName + 1); db 96755 third_party/sqlite/amalgamation/sqlite3.c pDel = (Module *)sqlite3HashInsert(&db->aModule, zCopy, nName, (void*)pMod); db 96759 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pDel); db 96761 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 96763 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 96767 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, SQLITE_OK); db 96768 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 96777 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database in which module is registered */ db 96782 third_party/sqlite/amalgamation/sqlite3.c return createModule(db, zName, pModule, pAux, 0); db 96789 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database in which module is registered */ db 96795 third_party/sqlite/amalgamation/sqlite3.c return createModule(db, zName, pModule, pAux, xDestroy); db 96816 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE VTable *sqlite3GetVTable(sqlite3 *db, Table *pTab){ db 96819 third_party/sqlite/amalgamation/sqlite3.c for(pVtab=pTab->pVTable; pVtab && pVtab->db!=db; pVtab=pVtab->pNext); db 96828 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pVTab->db; db 96830 third_party/sqlite/amalgamation/sqlite3.c assert( db ); db 96832 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SafetyCheckOk(db) ); db 96840 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pVTab); db 96851 third_party/sqlite/amalgamation/sqlite3.c static VTable *vtabDisconnectAll(sqlite3 *db, Table *p){ db 96862 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, p->pSchema) ); db 96865 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db2 = pVTable->db; db 96868 third_party/sqlite/amalgamation/sqlite3.c if( db2==db ){ db 96879 third_party/sqlite/amalgamation/sqlite3.c assert( !db || pRet ); db 96904 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3 *db){ db 96905 third_party/sqlite/amalgamation/sqlite3.c VTable *p = db->pDisconnect; db 96906 third_party/sqlite/amalgamation/sqlite3.c db->pDisconnect = 0; db 96908 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 96909 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 96912 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 96935 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3VtabClear(sqlite3 *db, Table *p){ db 96936 third_party/sqlite/amalgamation/sqlite3.c if( !db || db->pnBytesFreed==0 ) vtabDisconnectAll(0, p); db 96940 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->azModuleArg[i]); db 96942 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p->azModuleArg); db 96952 third_party/sqlite/amalgamation/sqlite3.c static void addModuleArgument(sqlite3 *db, Table *pTable, char *zArg){ db 96956 third_party/sqlite/amalgamation/sqlite3.c azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes); db 96960 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTable->azModuleArg[j]); db 96962 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zArg); db 96963 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTable->azModuleArg); db 96985 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Database connection */ db 96992 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 96993 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTable->pSchema); db 96998 third_party/sqlite/amalgamation/sqlite3.c addModuleArgument(db, pTable, sqlite3NameFromToken(db, pModuleName)); db 96999 third_party/sqlite/amalgamation/sqlite3.c addModuleArgument(db, pTable, sqlite3DbStrDup(db, db->aDb[iDb].zName)); db 97000 third_party/sqlite/amalgamation/sqlite3.c addModuleArgument(db, pTable, sqlite3DbStrDup(db, pTable->zName)); db 97011 third_party/sqlite/amalgamation/sqlite3.c pTable->azModuleArg[0], pParse->db->aDb[iDb].zName); db 97025 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 97026 third_party/sqlite/amalgamation/sqlite3.c addModuleArgument(db, pParse->pNewTable, sqlite3DbStrNDup(db, z, n)); db 97036 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 97049 third_party/sqlite/amalgamation/sqlite3.c if( !db->init.busy ){ db 97059 third_party/sqlite/amalgamation/sqlite3.c zStmt = sqlite3MPrintf(db, "CREATE VIRTUAL TABLE %T", &pParse->sNameToken); db 97069 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 97074 third_party/sqlite/amalgamation/sqlite3.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), db 97080 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zStmt); db 97085 third_party/sqlite/amalgamation/sqlite3.c zWhere = sqlite3MPrintf(db, "name='%q' AND type='table'", pTab->zName); db 97101 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pSchema) ); db 97104 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 97143 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 97154 third_party/sqlite/amalgamation/sqlite3.c char *zModuleName = sqlite3MPrintf(db, "%s", pTab->zName); db 97160 third_party/sqlite/amalgamation/sqlite3.c pVTable = sqlite3DbMallocZero(db, sizeof(VTable)); db 97162 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zModuleName); db 97165 third_party/sqlite/amalgamation/sqlite3.c pVTable->db = db; db 97168 third_party/sqlite/amalgamation/sqlite3.c assert( !db->pVTab ); db 97170 third_party/sqlite/amalgamation/sqlite3.c db->pVTab = pTab; db 97173 third_party/sqlite/amalgamation/sqlite3.c rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr); db 97174 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_NOMEM ) db->mallocFailed = 1; db 97178 third_party/sqlite/amalgamation/sqlite3.c *pzErr = sqlite3MPrintf(db, "vtable constructor failed: %s", zModuleName); db 97180 third_party/sqlite/amalgamation/sqlite3.c *pzErr = sqlite3MPrintf(db, "%s", zErr); db 97183 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pVTable); db 97189 third_party/sqlite/amalgamation/sqlite3.c if( db->pVTab ){ db 97191 third_party/sqlite/amalgamation/sqlite3.c *pzErr = sqlite3MPrintf(db, zFormat, pTab->zName); db 97236 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zModuleName); db 97237 third_party/sqlite/amalgamation/sqlite3.c db->pVTab = 0; db 97249 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 97255 third_party/sqlite/amalgamation/sqlite3.c if( (pTab->tabFlags & TF_Virtual)==0 || sqlite3GetVTable(db, pTab) ){ db 97261 third_party/sqlite/amalgamation/sqlite3.c pMod = (Module*)sqlite3HashFind(&db->aModule, zMod, sqlite3Strlen30(zMod)); db 97269 third_party/sqlite/amalgamation/sqlite3.c rc = vtabCallConstructor(db, pTab, pMod, pMod->pModule->xConnect, &zErr); db 97273 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErr); db 97282 third_party/sqlite/amalgamation/sqlite3.c static int addToVTrans(sqlite3 *db, VTable *pVTab){ db 97286 third_party/sqlite/amalgamation/sqlite3.c if( (db->nVTrans%ARRAY_INCR)==0 ){ db 97288 third_party/sqlite/amalgamation/sqlite3.c int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR); db 97289 third_party/sqlite/amalgamation/sqlite3.c aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes); db 97293 third_party/sqlite/amalgamation/sqlite3.c memset(&aVTrans[db->nVTrans], 0, sizeof(sqlite3_vtab *)*ARRAY_INCR); db 97294 third_party/sqlite/amalgamation/sqlite3.c db->aVTrans = aVTrans; db 97298 third_party/sqlite/amalgamation/sqlite3.c db->aVTrans[db->nVTrans++] = pVTab; db 97311 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabCallCreate(sqlite3 *db, int iDb, const char *zTab, char **pzErr){ db 97317 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, zTab, db->aDb[iDb].zName); db 97322 third_party/sqlite/amalgamation/sqlite3.c pMod = (Module*)sqlite3HashFind(&db->aModule, zMod, sqlite3Strlen30(zMod)); db 97329 third_party/sqlite/amalgamation/sqlite3.c *pzErr = sqlite3MPrintf(db, "no such module: %s", zMod); db 97332 third_party/sqlite/amalgamation/sqlite3.c rc = vtabCallConstructor(db, pTab, pMod, pMod->pModule->xCreate, pzErr); db 97337 third_party/sqlite/amalgamation/sqlite3.c if( rc==SQLITE_OK && ALWAYS(sqlite3GetVTable(db, pTab)) ){ db 97338 third_party/sqlite/amalgamation/sqlite3.c rc = addToVTrans(db, sqlite3GetVTable(db, pTab)); db 97349 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){ db 97356 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 97357 third_party/sqlite/amalgamation/sqlite3.c pTab = db->pVTab; db 97359 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_MISUSE, 0); db 97360 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 97365 third_party/sqlite/amalgamation/sqlite3.c pParse = sqlite3StackAllocZero(db, sizeof(*pParse)); db 97370 third_party/sqlite/amalgamation/sqlite3.c pParse->db = db; db 97375 third_party/sqlite/amalgamation/sqlite3.c && !db->mallocFailed db 97385 third_party/sqlite/amalgamation/sqlite3.c db->pVTab = 0; db 97387 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_ERROR, (zErr ? "%s" : 0), zErr); db 97388 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErr); db 97396 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, pParse->pNewTable); db 97397 third_party/sqlite/amalgamation/sqlite3.c sqlite3StackFree(db, pParse); db 97401 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 97402 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 97413 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabCallDestroy(sqlite3 *db, int iDb, const char *zTab){ db 97417 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, zTab, db->aDb[iDb].zName); db 97419 third_party/sqlite/amalgamation/sqlite3.c VTable *p = vtabDisconnectAll(db, pTab); db 97444 third_party/sqlite/amalgamation/sqlite3.c static void callFinaliser(sqlite3 *db, int offset){ db 97446 third_party/sqlite/amalgamation/sqlite3.c if( db->aVTrans ){ db 97447 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nVTrans; i++){ db 97448 third_party/sqlite/amalgamation/sqlite3.c VTable *pVTab = db->aVTrans[i]; db 97457 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, db->aVTrans); db 97458 third_party/sqlite/amalgamation/sqlite3.c db->nVTrans = 0; db 97459 third_party/sqlite/amalgamation/sqlite3.c db->aVTrans = 0; db 97471 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, char **pzErrmsg){ db 97474 third_party/sqlite/amalgamation/sqlite3.c VTable **aVTrans = db->aVTrans; db 97476 third_party/sqlite/amalgamation/sqlite3.c db->aVTrans = 0; db 97477 third_party/sqlite/amalgamation/sqlite3.c for(i=0; rc==SQLITE_OK && i<db->nVTrans; i++){ db 97482 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, *pzErrmsg); db 97483 third_party/sqlite/amalgamation/sqlite3.c *pzErrmsg = sqlite3DbStrDup(db, pVtab->zErrMsg); db 97487 third_party/sqlite/amalgamation/sqlite3.c db->aVTrans = aVTrans; db 97495 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db){ db 97496 third_party/sqlite/amalgamation/sqlite3.c callFinaliser(db, offsetof(sqlite3_module,xRollback)); db 97504 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db){ db 97505 third_party/sqlite/amalgamation/sqlite3.c callFinaliser(db, offsetof(sqlite3_module,xCommit)); db 97517 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){ db 97526 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3VtabInSync(db) ){ db 97539 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nVTrans; i++){ db 97540 third_party/sqlite/amalgamation/sqlite3.c if( db->aVTrans[i]==pVTab ){ db 97548 third_party/sqlite/amalgamation/sqlite3.c rc = addToVTrans(db, pVTab); db 97568 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection for reporting malloc problems */ db 97590 third_party/sqlite/amalgamation/sqlite3.c pVtab = sqlite3GetVTable(db, pTab)->pVtab; db 97599 third_party/sqlite/amalgamation/sqlite3.c zLowerName = sqlite3DbStrDup(db, pDef->zName); db 97605 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zLowerName); db 97613 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3DbMallocZero(db, sizeof(*pNew) db 97648 third_party/sqlite/amalgamation/sqlite3.c pToplevel->db->mallocFailed = 1; db 97933 third_party/sqlite/amalgamation/sqlite3.c static void whereOrInfoDelete(sqlite3 *db, WhereOrInfo *p){ db 97935 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 97941 third_party/sqlite/amalgamation/sqlite3.c static void whereAndInfoDelete(sqlite3 *db, WhereAndInfo *p){ db 97943 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 97953 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pWC->pParse->db; db 97956 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, a->pExpr); db 97959 third_party/sqlite/amalgamation/sqlite3.c whereOrInfoDelete(db, a->u.pOrInfo); db 97961 third_party/sqlite/amalgamation/sqlite3.c whereAndInfoDelete(db, a->u.pAndInfo); db 97965 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pWC->a); db 97994 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pWC->pParse->db; db 97995 third_party/sqlite/amalgamation/sqlite3.c pWC->a = sqlite3DbMallocRaw(db, sizeof(pWC->a[0])*pWC->nSlot*2 ); db 97998 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, p); db 98005 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pOld); db 98007 third_party/sqlite/amalgamation/sqlite3.c pWC->nSlot = sqlite3DbMallocSize(db, pWC->a)/sizeof(pWC->a[0]); db 98307 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database connection */ db 98311 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3IsLikeFunction(db, pExpr, pnoCase, wc) ){ db 98351 third_party/sqlite/amalgamation/sqlite3.c pPrefix = sqlite3Expr(db, TK_STRING, z); db 98503 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database connection */ db 98521 third_party/sqlite/amalgamation/sqlite3.c pTerm->u.pOrInfo = pOrInfo = sqlite3DbMallocZero(db, sizeof(*pOrInfo)); db 98528 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) return; db 98542 third_party/sqlite/amalgamation/sqlite3.c pAndInfo = sqlite3DbMallocRaw(db, sizeof(*pAndInfo)); db 98555 third_party/sqlite/amalgamation/sqlite3.c testcase( db->mallocFailed ); db 98556 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed ){ db 98703 third_party/sqlite/amalgamation/sqlite3.c pDup = sqlite3ExprDup(db, pOrTerm->pExpr->pRight, 0); db 98708 third_party/sqlite/amalgamation/sqlite3.c pDup = sqlite3ExprDup(db, pLeft, 0); db 98722 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(db, pList); db 98765 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database connection */ db 98767 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 98811 third_party/sqlite/amalgamation/sqlite3.c pDup = sqlite3ExprDup(db, pExpr, 0); db 98812 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 98813 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pDup); db 98864 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDup(db, pExpr->pLeft, 0), db 98865 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDup(db, pList->a[i].pExpr, 0), 0); db 98910 third_party/sqlite/amalgamation/sqlite3.c pStr2 = sqlite3ExprDup(db, pStr1, 0); db 98911 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed ){ db 98929 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3FindCollSeq(db, SQLITE_UTF8, noCase ? "NOCASE" : "BINARY",0); db 98931 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprSetColl(sqlite3ExprDup(db,pLeft,0), pColl), db 98937 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprSetColl(sqlite3ExprDup(db,pLeft,0), pColl), db 98971 third_party/sqlite/amalgamation/sqlite3.c 0, sqlite3ExprDup(db, pRight, 0), 0); db 99009 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDup(db, pLeft, 0), db 99088 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 99123 third_party/sqlite/amalgamation/sqlite3.c pColl = db->pDfltColl; db 99403 third_party/sqlite/amalgamation/sqlite3.c if( (pParse->db->flags & SQLITE_AutoIndex)==0 ){ db 99532 third_party/sqlite/amalgamation/sqlite3.c pIdx = sqlite3DbMallocZero(pParse->db, nByte); db 99651 third_party/sqlite/amalgamation/sqlite3.c pIdxInfo = sqlite3DbMallocZero(pParse->db, sizeof(*pIdxInfo) db 99720 third_party/sqlite/amalgamation/sqlite3.c sqlite3_vtab *pVtab = sqlite3GetVTable(pParse->db, pTab)->pVtab; db 99731 third_party/sqlite/amalgamation/sqlite3.c pParse->db->mallocFailed = 1; db 99817 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3GetVTable(pParse->db, pTab) ); db 99960 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 99970 third_party/sqlite/amalgamation/sqlite3.c pColl = db->pDfltColl; db 99973 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3GetCollSeq(db, SQLITE_UTF8, 0, *pIdx->azColl); db 99996 third_party/sqlite/amalgamation/sqlite3.c db, pColl->enc, aSample[i].u.z, aSample[i].nByte, &nSample db 99999 third_party/sqlite/amalgamation/sqlite3.c assert( db->mallocFailed ); db 100003 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zSample); db 100051 third_party/sqlite/amalgamation/sqlite3.c return sqlite3ValueFromExpr(pParse->db, pExpr, SQLITE_UTF8, aff, pp); db 100210 third_party/sqlite/amalgamation/sqlite3.c pRhs = sqlite3ValueNew(pParse->db); db 100775 third_party/sqlite/amalgamation/sqlite3.c if( !pOrderBy && pParse->db->flags & SQLITE_ReverseOrder ){ db 100818 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pParse->db, p); db 100881 third_party/sqlite/amalgamation/sqlite3.c assert( pParse->db->mallocFailed ); db 100951 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbReallocOrFree(pParse->db, pLevel->u.in.aInLoop, db 101039 third_party/sqlite/amalgamation/sqlite3.c zAff = sqlite3DbStrDup(pParse->db, sqlite3IndexAffinityStr(v, pIdx)); db 101041 third_party/sqlite/amalgamation/sqlite3.c pParse->db->mallocFailed = 1; db 101124 third_party/sqlite/amalgamation/sqlite3.c static char *explainIndexRange(sqlite3 *db, WhereLevel *pLevel, Table *pTab){ db 101137 third_party/sqlite/amalgamation/sqlite3.c txt.db = db; db 101172 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* Database handle */ db 101184 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MPrintf(db, "%s", isSearch?"SEARCH":"SCAN"); db 101186 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s SUBQUERY %d", zMsg,pItem->iSelectId); db 101188 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s TABLE %s", zMsg, pItem->zName); db 101192 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s AS %s", zMsg, pItem->zAlias); db 101195 third_party/sqlite/amalgamation/sqlite3.c char *zWhere = explainIndexRange(db, pLevel, pItem->pTab); db 101196 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s USING %s%sINDEX%s%s%s", zMsg, db 101203 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zWhere); db 101205 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s USING INTEGER PRIMARY KEY", zMsg); db 101208 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s (rowid=?)", zMsg); db 101210 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s (rowid>? AND rowid<?)", zMsg); db 101212 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s (rowid>?)", zMsg); db 101214 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s (rowid<?)", zMsg); db 101220 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s VIRTUAL TABLE INDEX %d:%s", zMsg, db 101230 third_party/sqlite/amalgamation/sqlite3.c zMsg = sqlite3MAppendf(db, zMsg, "%s (~%lld rows)", zMsg, nRow); db 101544 third_party/sqlite/amalgamation/sqlite3.c zEndAff = sqlite3DbStrDup(pParse->db, zStartAff); db 101627 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pParse->db, zStartAff); db 101628 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(pParse->db, zEndAff); db 101747 third_party/sqlite/amalgamation/sqlite3.c pOrTab = sqlite3StackAllocRaw(pParse->db, db 101817 third_party/sqlite/amalgamation/sqlite3.c if( pWInfo->nLevel>1 ) sqlite3StackFree(pParse->db, pOrTab); db 101906 third_party/sqlite/amalgamation/sqlite3.c static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo){ db 101916 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pInfo); db 101921 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pIdx->zColAff); db 101922 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pIdx); db 101927 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pWInfo); db 102039 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Database connection */ db 102064 third_party/sqlite/amalgamation/sqlite3.c db = pParse->db; db 102066 third_party/sqlite/amalgamation/sqlite3.c pWInfo = sqlite3DbMallocZero(db, db 102071 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 102072 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pWInfo); db 102148 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 102354 third_party/sqlite/amalgamation/sqlite3.c if( pParse->nErr || db->mallocFailed ){ db 102390 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 102396 third_party/sqlite/amalgamation/sqlite3.c const char *pVTab = (const char *)sqlite3GetVTable(db, pTab); db 102437 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ) goto whereBeginError; db 102509 third_party/sqlite/amalgamation/sqlite3.c whereInfoFree(db, pWInfo); db 102524 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 102545 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pLevel->u.in.aInLoop); db 102606 third_party/sqlite/amalgamation/sqlite3.c if( (pLevel->plan.wsFlags & WHERE_INDEXED)!=0 && !db->mallocFailed){ db 102637 third_party/sqlite/amalgamation/sqlite3.c whereInfoFree(db, pWInfo); db 102753 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; db 102754 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed==0 && pY->op==TK_NULL ){ db 102756 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pA->pRight); db 104028 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(pParse->db, (yypminor->yy387)); db 104034 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(pParse->db, (yypminor->yy118).pExpr); db 104050 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(pParse->db, (yypminor->yy322)); db 104058 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(pParse->db, (yypminor->yy259)); db 104070 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(pParse->db, (yypminor->yy314)); db 104077 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(pParse->db, (yypminor->yy384)); db 104083 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTriggerStep(pParse->db, (yypminor->yy203)); db 104088 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(pParse->db, (yypminor->yy90).b); db 104771 third_party/sqlite/amalgamation/sqlite3.c pParse->db->lookaside.bEnabled = 0; db 104807 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(pParse->db, yymsp[0].minor.yy387); db 105000 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(pParse->db, yymsp[0].minor.yy387); db 105012 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(pParse->db, yymsp[-2].minor.yy387); db 105045 third_party/sqlite/amalgamation/sqlite3.c Expr *p = sqlite3Expr(pParse->db, TK_ALL, 0); db 105061 third_party/sqlite/amalgamation/sqlite3.c {yygotominor.yy259 = sqlite3DbMallocZero(pParse->db, sizeof(*yygotominor.yy259));} db 105106 third_party/sqlite/amalgamation/sqlite3.c {yygotominor.yy259 = sqlite3SrcListAppend(pParse->db,0,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy0);} db 105231 third_party/sqlite/amalgamation/sqlite3.c {yygotominor.yy384 = sqlite3IdListAppend(pParse->db,yymsp[-2].minor.yy384,&yymsp[0].minor.yy0);} db 105234 third_party/sqlite/amalgamation/sqlite3.c {yygotominor.yy384 = sqlite3IdListAppend(pParse->db,0,&yymsp[0].minor.yy0);} db 105306 third_party/sqlite/amalgamation/sqlite3.c if( yymsp[-1].minor.yy322 && yymsp[-1].minor.yy322->nExpr>pParse->db->aLimit[SQLITE_LIMIT_FUNCTION_ARG] ){ db 105412 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(pParse->db, pList); db 105431 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(pParse->db, yymsp[-4].minor.yy118.pExpr); db 105438 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(pParse->db, yymsp[-1].minor.yy322); db 105454 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(pParse->db, yymsp[-1].minor.yy387); db 105468 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(pParse->db, yymsp[-1].minor.yy387); db 105477 third_party/sqlite/amalgamation/sqlite3.c SrcList *pSrc = sqlite3SrcListAppend(pParse->db, 0,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy0); db 105484 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListDelete(pParse->db, pSrc); db 105499 third_party/sqlite/amalgamation/sqlite3.c sqlite3SelectDelete(pParse->db, yymsp[-1].minor.yy387); db 105512 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprListDelete(pParse->db, yymsp[-2].minor.yy322); db 105533 third_party/sqlite/amalgamation/sqlite3.c sqlite3SrcListAppend(pParse->db,0,&yymsp[-3].minor.yy0,0), yymsp[-1].minor.yy322, yymsp[-9].minor.yy4, db 105548 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3Expr(pParse->db, TK_COLUMN, 0); db 105672 third_party/sqlite/amalgamation/sqlite3.c { yygotominor.yy203 = sqlite3TriggerUpdateStep(pParse->db, &yymsp[-4].minor.yy0, yymsp[-1].minor.yy322, yymsp[0].minor.yy314, yymsp[-5].minor.yy210); } db 105675 third_party/sqlite/amalgamation/sqlite3.c {yygotominor.yy203 = sqlite3TriggerInsertStep(pParse->db, &yymsp[-5].minor.yy0, yymsp[-4].minor.yy384, yymsp[-1].minor.yy322, 0, yymsp[-7].minor.yy210);} db 105678 third_party/sqlite/amalgamation/sqlite3.c {yygotominor.yy203 = sqlite3TriggerInsertStep(pParse->db, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy384, 0, yymsp[0].minor.yy387, yymsp[-4].minor.yy210);} db 105681 third_party/sqlite/amalgamation/sqlite3.c {yygotominor.yy203 = sqlite3TriggerDeleteStep(pParse->db, &yymsp[-2].minor.yy0, yymsp[0].minor.yy314);} db 105684 third_party/sqlite/amalgamation/sqlite3.c {yygotominor.yy203 = sqlite3TriggerSelectStep(pParse->db, yymsp[0].minor.yy387); } db 105751 third_party/sqlite/amalgamation/sqlite3.c pParse->db->lookaside.bEnabled = 0; db 106738 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = pParse->db; /* The database connection */ db 106742 third_party/sqlite/amalgamation/sqlite3.c mxSqlLen = db->aLimit[SQLITE_LIMIT_SQL_LENGTH]; db 106743 third_party/sqlite/amalgamation/sqlite3.c if( db->activeVdbeCnt==0 ){ db 106744 third_party/sqlite/amalgamation/sqlite3.c db->u1.isInterrupted = 0; db 106752 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 1; db 106761 third_party/sqlite/amalgamation/sqlite3.c enableLookaside = db->lookaside.bEnabled; db 106762 third_party/sqlite/amalgamation/sqlite3.c if( db->lookaside.pStart ) db->lookaside.bEnabled = 1; db 106763 third_party/sqlite/amalgamation/sqlite3.c while( !db->mallocFailed && zSql[i]!=0 ){ db 106774 third_party/sqlite/amalgamation/sqlite3.c if( db->u1.isInterrupted ){ db 106782 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, *pzErrMsg); db 106783 third_party/sqlite/amalgamation/sqlite3.c *pzErrMsg = sqlite3MPrintf(db, "unrecognized token: \"%T\"", db 106816 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bEnabled = enableLookaside; db 106817 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 106821 third_party/sqlite/amalgamation/sqlite3.c sqlite3SetString(&pParse->zErrMsg, db, "%s", sqlite3ErrStr(pParse->rc)); db 106836 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pParse->aTableLock); db 106850 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, pParse->pNewTable); db 106853 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTrigger(db, pParse->pNewTrigger); db 106854 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pParse->apVarExpr); db 106855 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pParse->aAlias); db 106859 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 106864 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTable(db, p); db 107199 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db); db 107231 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db); db 107263 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db); db 107694 third_party/sqlite/amalgamation/sqlite3.c static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){ db 107696 third_party/sqlite/amalgamation/sqlite3.c if( db->lookaside.nOut ){ db 107703 third_party/sqlite/amalgamation/sqlite3.c if( db->lookaside.bMalloced ){ db 107704 third_party/sqlite/amalgamation/sqlite3.c sqlite3_free(db->lookaside.pStart); db 107723 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.pStart = pStart; db 107724 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.pFree = 0; db 107725 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.sz = (u16)sz; db 107732 third_party/sqlite/amalgamation/sqlite3.c p->pNext = db->lookaside.pFree; db 107733 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.pFree = p; db 107736 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.pEnd = p; db 107737 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bEnabled = 1; db 107738 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bMalloced = pBuf==0 ?1:0; db 107740 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.pEnd = 0; db 107741 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bEnabled = 0; db 107742 third_party/sqlite/amalgamation/sqlite3.c db->lookaside.bMalloced = 0; db 107750 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){ db 107751 third_party/sqlite/amalgamation/sqlite3.c return db->mutex; db 107757 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_db_config(sqlite3 *db, int op, ...){ db 107766 third_party/sqlite/amalgamation/sqlite3.c rc = setupLookaside(db, pBuf, sz, cnt); db 107783 third_party/sqlite/amalgamation/sqlite3.c int oldFlags = db->flags; db 107785 third_party/sqlite/amalgamation/sqlite3.c db->flags |= aFlagOp[i].mask; db 107787 third_party/sqlite/amalgamation/sqlite3.c db->flags &= ~aFlagOp[i].mask; db 107789 third_party/sqlite/amalgamation/sqlite3.c if( oldFlags!=db->flags ){ db 107790 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 107793 third_party/sqlite/amalgamation/sqlite3.c *pRes = (db->flags & aFlagOp[i].mask)!=0; db 107869 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API sqlite_int64 sqlite3_last_insert_rowid(sqlite3 *db){ db 107870 third_party/sqlite/amalgamation/sqlite3.c return db->lastRowid; db 107876 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_changes(sqlite3 *db){ db 107877 third_party/sqlite/amalgamation/sqlite3.c return db->nChange; db 107883 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_total_changes(sqlite3 *db){ db 107884 third_party/sqlite/amalgamation/sqlite3.c return db->nTotalChange; db 107892 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3CloseSavepoints(sqlite3 *db){ db 107893 third_party/sqlite/amalgamation/sqlite3.c while( db->pSavepoint ){ db 107894 third_party/sqlite/amalgamation/sqlite3.c Savepoint *pTmp = db->pSavepoint; db 107895 third_party/sqlite/amalgamation/sqlite3.c db->pSavepoint = pTmp->pNext; db 107896 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTmp); db 107898 third_party/sqlite/amalgamation/sqlite3.c db->nSavepoint = 0; db 107899 third_party/sqlite/amalgamation/sqlite3.c db->nStatement = 0; db 107900 third_party/sqlite/amalgamation/sqlite3.c db->isTransactionSavepoint = 0; db 107909 third_party/sqlite/amalgamation/sqlite3.c static void functionDestroy(sqlite3 *db, FuncDef *p){ db 107915 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pDestructor); db 107923 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_close(sqlite3 *db){ db 107927 third_party/sqlite/amalgamation/sqlite3.c if( !db ){ db 107930 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3SafetyCheckSickOrOk(db) ){ db 107933 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 107936 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 107945 third_party/sqlite/amalgamation/sqlite3.c sqlite3VtabRollback(db); db 107948 third_party/sqlite/amalgamation/sqlite3.c if( db->pVdbe ){ db 107949 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_BUSY, db 107951 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 107954 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3SafetyCheckSickOrOk(db) ); db 107956 third_party/sqlite/amalgamation/sqlite3.c for(j=0; j<db->nDb; j++){ db 107957 third_party/sqlite/amalgamation/sqlite3.c Btree *pBt = db->aDb[j].pBt; db 107959 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_BUSY, db 107961 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 107967 third_party/sqlite/amalgamation/sqlite3.c sqlite3CloseSavepoints(db); db 107969 third_party/sqlite/amalgamation/sqlite3.c for(j=0; j<db->nDb; j++){ db 107970 third_party/sqlite/amalgamation/sqlite3.c struct Db *pDb = &db->aDb[j]; db 107979 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 107984 third_party/sqlite/amalgamation/sqlite3.c sqlite3ConnectionClosed(db); db 107986 third_party/sqlite/amalgamation/sqlite3.c assert( db->nDb<=2 ); db 107987 third_party/sqlite/amalgamation/sqlite3.c assert( db->aDb==db->aDbStatic ); db 107988 third_party/sqlite/amalgamation/sqlite3.c for(j=0; j<ArraySize(db->aFunc.a); j++){ db 107990 third_party/sqlite/amalgamation/sqlite3.c for(p=db->aFunc.a[j]; p; p=pHash){ db 107993 third_party/sqlite/amalgamation/sqlite3.c functionDestroy(db, p); db 107995 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, p); db 108000 third_party/sqlite/amalgamation/sqlite3.c for(i=sqliteHashFirst(&db->aCollSeq); i; i=sqliteHashNext(i)){ db 108008 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pColl); db 108010 third_party/sqlite/amalgamation/sqlite3.c sqlite3HashClear(&db->aCollSeq); db 108012 third_party/sqlite/amalgamation/sqlite3.c for(i=sqliteHashFirst(&db->aModule); i; i=sqliteHashNext(i)){ db 108017 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pMod); db 108019 third_party/sqlite/amalgamation/sqlite3.c sqlite3HashClear(&db->aModule); db 108022 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_OK, 0); /* Deallocates any cached error strings. */ db 108023 third_party/sqlite/amalgamation/sqlite3.c if( db->pErr ){ db 108024 third_party/sqlite/amalgamation/sqlite3.c sqlite3ValueFree(db->pErr); db 108026 third_party/sqlite/amalgamation/sqlite3.c sqlite3CloseExtensions(db); db 108028 third_party/sqlite/amalgamation/sqlite3.c db->magic = SQLITE_MAGIC_ERROR; db 108036 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, db->aDb[1].pSchema); db 108037 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108038 third_party/sqlite/amalgamation/sqlite3.c db->magic = SQLITE_MAGIC_CLOSED; db 108039 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_free(db->mutex); db 108040 third_party/sqlite/amalgamation/sqlite3.c assert( db->lookaside.nOut==0 ); /* Fails on a lookaside memory leak */ db 108041 third_party/sqlite/amalgamation/sqlite3.c if( db->lookaside.bMalloced ){ db 108042 third_party/sqlite/amalgamation/sqlite3.c sqlite3_free(db->lookaside.pStart); db 108044 third_party/sqlite/amalgamation/sqlite3.c sqlite3_free(db); db 108051 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3RollbackAll(sqlite3 *db){ db 108054 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 108056 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb; i++){ db 108057 third_party/sqlite/amalgamation/sqlite3.c if( db->aDb[i].pBt ){ db 108058 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3BtreeIsInTrans(db->aDb[i].pBt) ){ db 108061 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeRollback(db->aDb[i].pBt); db 108062 third_party/sqlite/amalgamation/sqlite3.c db->aDb[i].inTrans = 0; db 108065 third_party/sqlite/amalgamation/sqlite3.c sqlite3VtabRollback(db); db 108068 third_party/sqlite/amalgamation/sqlite3.c if( db->flags&SQLITE_InternChanges ){ db 108069 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 108070 third_party/sqlite/amalgamation/sqlite3.c sqlite3ResetInternalSchema(db, -1); db 108074 third_party/sqlite/amalgamation/sqlite3.c db->nDeferredCons = 0; db 108077 third_party/sqlite/amalgamation/sqlite3.c if( db->xRollbackCallback && (inTrans || !db->autoCommit) ){ db 108078 third_party/sqlite/amalgamation/sqlite3.c db->xRollbackCallback(db->pRollbackArg); db 108140 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = (sqlite3 *)ptr; db 108141 third_party/sqlite/amalgamation/sqlite3.c int timeout = db->busyTimeout; db 108156 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsSleep(db->pVfs, delay*1000); db 108159 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = (sqlite3 *)ptr; db 108164 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsSleep(db->pVfs, 1000000); db 108193 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 108197 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108198 third_party/sqlite/amalgamation/sqlite3.c db->busyHandler.xFunc = xBusy; db 108199 third_party/sqlite/amalgamation/sqlite3.c db->busyHandler.pArg = pArg; db 108200 third_party/sqlite/amalgamation/sqlite3.c db->busyHandler.nBusy = 0; db 108201 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108212 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 108217 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108219 third_party/sqlite/amalgamation/sqlite3.c db->xProgress = xProgress; db 108220 third_party/sqlite/amalgamation/sqlite3.c db->nProgressOps = nOps; db 108221 third_party/sqlite/amalgamation/sqlite3.c db->pProgressArg = pArg; db 108223 third_party/sqlite/amalgamation/sqlite3.c db->xProgress = 0; db 108224 third_party/sqlite/amalgamation/sqlite3.c db->nProgressOps = 0; db 108225 third_party/sqlite/amalgamation/sqlite3.c db->pProgressArg = 0; db 108227 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108236 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_busy_timeout(sqlite3 *db, int ms){ db 108238 third_party/sqlite/amalgamation/sqlite3.c db->busyTimeout = ms; db 108239 third_party/sqlite/amalgamation/sqlite3.c sqlite3_busy_handler(db, sqliteDefaultBusyCallback, (void*)db); db 108241 third_party/sqlite/amalgamation/sqlite3.c sqlite3_busy_handler(db, 0, 0); db 108249 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API void sqlite3_interrupt(sqlite3 *db){ db 108250 third_party/sqlite/amalgamation/sqlite3.c db->u1.isInterrupted = 1; db 108261 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 108274 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 108296 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF8, db 108299 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF16LE, db 108316 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 0); db 108318 third_party/sqlite/amalgamation/sqlite3.c if( db->activeVdbeCnt ){ db 108319 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_BUSY, db 108321 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 108324 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 108328 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 1); db 108329 third_party/sqlite/amalgamation/sqlite3.c assert(p || db->mallocFailed); db 108336 third_party/sqlite/amalgamation/sqlite3.c functionDestroy(db, p); db 108355 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 108364 third_party/sqlite/amalgamation/sqlite3.c return sqlite3_create_function_v2(db, zFunc, nArg, enc, p, xFunc, xStep, db 108369 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 108381 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108383 third_party/sqlite/amalgamation/sqlite3.c pArg = (FuncDestructor *)sqlite3DbMallocZero(db, sizeof(FuncDestructor)); db 108391 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3CreateFunc(db, zFunc, nArg, enc, p, xFunc, xStep, xFinal, pArg); db 108395 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pArg); db 108399 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 108400 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108406 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 108417 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108418 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 108419 third_party/sqlite/amalgamation/sqlite3.c zFunc8 = sqlite3Utf16to8(db, zFunctionName, -1, SQLITE_UTF16NATIVE); db 108420 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3CreateFunc(db, zFunc8, nArg, eTextRep, p, xFunc, xStep, xFinal,0); db 108421 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zFunc8); db 108422 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 108423 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108442 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 108448 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108449 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FindFunction(db, zName, nName, nArg, SQLITE_UTF8, 0)==0 ){ db 108450 third_party/sqlite/amalgamation/sqlite3.c sqlite3CreateFunc(db, zName, nArg, SQLITE_UTF8, db 108453 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, SQLITE_OK); db 108454 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108467 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API void *sqlite3_trace(sqlite3 *db, void (*xTrace)(void*,const char*), void *pArg){ db 108469 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108470 third_party/sqlite/amalgamation/sqlite3.c pOld = db->pTraceArg; db 108471 third_party/sqlite/amalgamation/sqlite3.c db->xTrace = xTrace; db 108472 third_party/sqlite/amalgamation/sqlite3.c db->pTraceArg = pArg; db 108473 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108485 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 108490 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108491 third_party/sqlite/amalgamation/sqlite3.c pOld = db->pProfileArg; db 108492 third_party/sqlite/amalgamation/sqlite3.c db->xProfile = xProfile; db 108493 third_party/sqlite/amalgamation/sqlite3.c db->pProfileArg = pArg; db 108494 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108506 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Attach the hook to this database */ db 108511 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108512 third_party/sqlite/amalgamation/sqlite3.c pOld = db->pCommitArg; db 108513 third_party/sqlite/amalgamation/sqlite3.c db->xCommitCallback = xCallback; db 108514 third_party/sqlite/amalgamation/sqlite3.c db->pCommitArg = pArg; db 108515 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108524 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Attach the hook to this database */ db 108529 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108530 third_party/sqlite/amalgamation/sqlite3.c pRet = db->pUpdateArg; db 108531 third_party/sqlite/amalgamation/sqlite3.c db->xUpdateCallback = xCallback; db 108532 third_party/sqlite/amalgamation/sqlite3.c db->pUpdateArg = pArg; db 108533 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108542 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Attach the hook to this database */ db 108547 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108548 third_party/sqlite/amalgamation/sqlite3.c pRet = db->pRollbackArg; db 108549 third_party/sqlite/amalgamation/sqlite3.c db->xRollbackCallback = xCallback; db 108550 third_party/sqlite/amalgamation/sqlite3.c db->pRollbackArg = pArg; db 108551 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108564 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Connection */ db 108570 third_party/sqlite/amalgamation/sqlite3.c sqlite3_wal_checkpoint(db, zDb); db 108588 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int nFrame){ db 108590 third_party/sqlite/amalgamation/sqlite3.c UNUSED_PARAMETER(db); db 108594 third_party/sqlite/amalgamation/sqlite3.c sqlite3_wal_hook(db, sqlite3WalDefaultHook, SQLITE_INT_TO_PTR(nFrame)); db 108596 third_party/sqlite/amalgamation/sqlite3.c sqlite3_wal_hook(db, 0, 0); db 108607 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Attach the hook to this db handle */ db 108613 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108614 third_party/sqlite/amalgamation/sqlite3.c pRet = db->pWalArg; db 108615 third_party/sqlite/amalgamation/sqlite3.c db->xWalCallback = xCallback; db 108616 third_party/sqlite/amalgamation/sqlite3.c db->pWalArg = pArg; db 108617 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108628 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle */ db 108651 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108653 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3FindDbName(db, zDb); db 108657 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_ERROR, "unknown database: %s", zDb); db 108659 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Checkpoint(db, iDb, eMode, pnLog, pnCkpt); db 108660 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, 0); db 108662 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 108663 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108674 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb){ db 108675 third_party/sqlite/amalgamation/sqlite3.c return sqlite3_wal_checkpoint_v2(db, zDb, SQLITE_CHECKPOINT_PASSIVE, 0, 0); db 108698 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){ db 108703 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 108707 third_party/sqlite/amalgamation/sqlite3.c for(i=0; i<db->nDb && rc==SQLITE_OK; i++){ db 108709 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3BtreeCheckpoint(db->aDb[i].pBt, eMode, pnLog, pnCkpt); db 108742 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3 *db){ db 108744 third_party/sqlite/amalgamation/sqlite3.c return ( db->temp_store==2 ); db 108747 third_party/sqlite/amalgamation/sqlite3.c return ( db->temp_store!=1 ); db 108761 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API const char *sqlite3_errmsg(sqlite3 *db){ db 108763 third_party/sqlite/amalgamation/sqlite3.c if( !db ){ db 108766 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3SafetyCheckSickOrOk(db) ){ db 108769 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108770 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 108773 third_party/sqlite/amalgamation/sqlite3.c z = (char*)sqlite3_value_text(db->pErr); db 108774 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 108776 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3ErrStr(db->errCode); db 108779 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108788 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API const void *sqlite3_errmsg16(sqlite3 *db){ db 108802 third_party/sqlite/amalgamation/sqlite3.c if( !db ){ db 108805 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3SafetyCheckSickOrOk(db) ){ db 108808 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 108809 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 108812 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3_value_text16(db->pErr); db 108814 third_party/sqlite/amalgamation/sqlite3.c sqlite3ValueSetStr(db->pErr, -1, sqlite3ErrStr(db->errCode), db 108816 third_party/sqlite/amalgamation/sqlite3.c z = sqlite3_value_text16(db->pErr); db 108823 third_party/sqlite/amalgamation/sqlite3.c db->mallocFailed = 0; db 108825 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 108834 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_errcode(sqlite3 *db){ db 108835 third_party/sqlite/amalgamation/sqlite3.c if( db && !sqlite3SafetyCheckSickOrOk(db) ){ db 108838 third_party/sqlite/amalgamation/sqlite3.c if( !db || db->mallocFailed ){ db 108841 third_party/sqlite/amalgamation/sqlite3.c return db->errCode & db->errMask; db 108843 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_extended_errcode(sqlite3 *db){ db 108844 third_party/sqlite/amalgamation/sqlite3.c if( db && !sqlite3SafetyCheckSickOrOk(db) ){ db 108847 third_party/sqlite/amalgamation/sqlite3.c if( !db || db->mallocFailed ){ db 108850 third_party/sqlite/amalgamation/sqlite3.c return db->errCode; db 108858 third_party/sqlite/amalgamation/sqlite3.c sqlite3* db, db 108870 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); db 108890 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3FindCollSeq(db, (u8)enc2, zName, 0); db 108892 third_party/sqlite/amalgamation/sqlite3.c if( db->activeVdbeCnt ){ db 108893 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_BUSY, db 108897 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExpirePreparedStatements(db); db 108906 third_party/sqlite/amalgamation/sqlite3.c CollSeq *aColl = sqlite3HashFind(&db->aCollSeq, zName, nName); db 108920 third_party/sqlite/amalgamation/sqlite3.c pColl = sqlite3FindCollSeq(db, (u8)enc2, zName, 1); db 108927 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_OK, 0); db 108996 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_limit(sqlite3 *db, int limitId, int newLimit){ db 109023 third_party/sqlite/amalgamation/sqlite3.c oldLimit = db->aLimit[limitId]; db 109028 third_party/sqlite/amalgamation/sqlite3.c db->aLimit[limitId] = newLimit; db 109044 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; db 109111 third_party/sqlite/amalgamation/sqlite3.c db = sqlite3MallocZero( sizeof(sqlite3) ); db 109112 third_party/sqlite/amalgamation/sqlite3.c if( db==0 ) goto opendb_out; db 109114 third_party/sqlite/amalgamation/sqlite3.c db->mutex = sqlite3MutexAlloc(SQLITE_MUTEX_RECURSIVE); db 109115 third_party/sqlite/amalgamation/sqlite3.c if( db->mutex==0 ){ db 109116 third_party/sqlite/amalgamation/sqlite3.c sqlite3_free(db); db 109117 third_party/sqlite/amalgamation/sqlite3.c db = 0; db 109121 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109122 third_party/sqlite/amalgamation/sqlite3.c db->errMask = 0xff; db 109123 third_party/sqlite/amalgamation/sqlite3.c db->nDb = 2; db 109124 third_party/sqlite/amalgamation/sqlite3.c db->magic = SQLITE_MAGIC_BUSY; db 109125 third_party/sqlite/amalgamation/sqlite3.c db->aDb = db->aDbStatic; db 109127 third_party/sqlite/amalgamation/sqlite3.c assert( sizeof(db->aLimit)==sizeof(aHardLimit) ); db 109128 third_party/sqlite/amalgamation/sqlite3.c memcpy(db->aLimit, aHardLimit, sizeof(db->aLimit)); db 109129 third_party/sqlite/amalgamation/sqlite3.c db->autoCommit = 1; db 109130 third_party/sqlite/amalgamation/sqlite3.c db->nextAutovac = -1; db 109131 third_party/sqlite/amalgamation/sqlite3.c db->nextPagesize = 0; db 109132 third_party/sqlite/amalgamation/sqlite3.c db->flags |= SQLITE_ShortColNames | SQLITE_AutoIndex | SQLITE_EnableTrigger db 109146 third_party/sqlite/amalgamation/sqlite3.c sqlite3HashInit(&db->aCollSeq); db 109148 third_party/sqlite/amalgamation/sqlite3.c sqlite3HashInit(&db->aModule); db 109151 third_party/sqlite/amalgamation/sqlite3.c db->pVfs = sqlite3_vfs_find(zVfs); db 109152 third_party/sqlite/amalgamation/sqlite3.c if( !db->pVfs ){ db 109154 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, "no such vfs: %s", zVfs); db 109162 third_party/sqlite/amalgamation/sqlite3.c createCollation(db, "BINARY", SQLITE_UTF8, SQLITE_COLL_BINARY, 0, db 109164 third_party/sqlite/amalgamation/sqlite3.c createCollation(db, "BINARY", SQLITE_UTF16BE, SQLITE_COLL_BINARY, 0, db 109166 third_party/sqlite/amalgamation/sqlite3.c createCollation(db, "BINARY", SQLITE_UTF16LE, SQLITE_COLL_BINARY, 0, db 109168 third_party/sqlite/amalgamation/sqlite3.c createCollation(db, "RTRIM", SQLITE_UTF8, SQLITE_COLL_USER, (void*)1, db 109170 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 109173 third_party/sqlite/amalgamation/sqlite3.c db->pDfltColl = sqlite3FindCollSeq(db, SQLITE_UTF8, "BINARY", 0); db 109174 third_party/sqlite/amalgamation/sqlite3.c assert( db->pDfltColl!=0 ); db 109177 third_party/sqlite/amalgamation/sqlite3.c createCollation(db, "NOCASE", SQLITE_UTF8, SQLITE_COLL_NOCASE, 0, db 109181 third_party/sqlite/amalgamation/sqlite3.c db->openFlags = flags; db 109182 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3BtreeOpen(zFilename, db, &db->aDb[0].pBt, 0, db 109188 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, 0); db 109191 third_party/sqlite/amalgamation/sqlite3.c db->aDb[0].pSchema = sqlite3SchemaGet(db, db->aDb[0].pBt); db 109192 third_party/sqlite/amalgamation/sqlite3.c db->aDb[1].pSchema = sqlite3SchemaGet(db, 0); db 109198 third_party/sqlite/amalgamation/sqlite3.c db->aDb[0].zName = "main"; db 109199 third_party/sqlite/amalgamation/sqlite3.c db->aDb[0].safety_level = 3; db 109200 third_party/sqlite/amalgamation/sqlite3.c db->aDb[1].zName = "temp"; db 109201 third_party/sqlite/amalgamation/sqlite3.c db->aDb[1].safety_level = 1; db 109203 third_party/sqlite/amalgamation/sqlite3.c db->magic = SQLITE_MAGIC_OPEN; db 109204 third_party/sqlite/amalgamation/sqlite3.c if( db->mallocFailed ){ db 109212 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, SQLITE_OK, 0); db 109213 third_party/sqlite/amalgamation/sqlite3.c sqlite3RegisterBuiltinFunctions(db); db 109218 third_party/sqlite/amalgamation/sqlite3.c sqlite3AutoLoadExtensions(db); db 109219 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_errcode(db); db 109225 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed ){ db 109227 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Fts1Init(db); db 109232 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed && rc==SQLITE_OK ){ db 109234 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Fts2Init(db); db 109239 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed && rc==SQLITE_OK ){ db 109240 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Fts3Init(db); db 109245 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed && rc==SQLITE_OK ){ db 109246 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3IcuInit(db); db 109251 third_party/sqlite/amalgamation/sqlite3.c if( !db->mallocFailed && rc==SQLITE_OK){ db 109252 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3RtreeInit(db); db 109256 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, 0); db 109263 third_party/sqlite/amalgamation/sqlite3.c db->dfltLockMode = SQLITE_DEFAULT_LOCKING_MODE; db 109264 third_party/sqlite/amalgamation/sqlite3.c sqlite3PagerLockingMode(sqlite3BtreePager(db->aDb[0].pBt), db 109269 third_party/sqlite/amalgamation/sqlite3.c setupLookaside(db, 0, sqlite3GlobalConfig.szLookaside, db 109272 third_party/sqlite/amalgamation/sqlite3.c sqlite3_wal_autocheckpoint(db, SQLITE_DEFAULT_WAL_AUTOCHECKPOINT); db 109275 third_party/sqlite/amalgamation/sqlite3.c if( db ){ db 109276 third_party/sqlite/amalgamation/sqlite3.c assert( db->mutex!=0 || isThreadsafe==0 || sqlite3GlobalConfig.bFullMutex==0 ); db 109277 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109279 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_errcode(db); db 109281 third_party/sqlite/amalgamation/sqlite3.c sqlite3_close(db); db 109282 third_party/sqlite/amalgamation/sqlite3.c db = 0; db 109284 third_party/sqlite/amalgamation/sqlite3.c db->magic = SQLITE_MAGIC_SICK; db 109286 third_party/sqlite/amalgamation/sqlite3.c *ppDb = db; db 109351 third_party/sqlite/amalgamation/sqlite3.c sqlite3* db, db 109358 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109359 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 109360 third_party/sqlite/amalgamation/sqlite3.c rc = createCollation(db, zName, (u8)enc, SQLITE_COLL_USER, pCtx, xCompare, 0); db 109361 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 109362 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109370 third_party/sqlite/amalgamation/sqlite3.c sqlite3* db, db 109378 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109379 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 109380 third_party/sqlite/amalgamation/sqlite3.c rc = createCollation(db, zName, (u8)enc, SQLITE_COLL_USER, pCtx, xCompare, xDel); db 109381 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 109382 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109391 third_party/sqlite/amalgamation/sqlite3.c sqlite3* db, db 109399 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109400 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 109401 third_party/sqlite/amalgamation/sqlite3.c zName8 = sqlite3Utf16to8(db, zName, -1, SQLITE_UTF16NATIVE); db 109403 third_party/sqlite/amalgamation/sqlite3.c rc = createCollation(db, zName8, (u8)enc, SQLITE_COLL_USER, pCtx, xCompare, 0); db 109404 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zName8); db 109406 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 109407 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109417 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 109421 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109422 third_party/sqlite/amalgamation/sqlite3.c db->xCollNeeded = xCollNeeded; db 109423 third_party/sqlite/amalgamation/sqlite3.c db->xCollNeeded16 = 0; db 109424 third_party/sqlite/amalgamation/sqlite3.c db->pCollNeededArg = pCollNeededArg; db 109425 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109435 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 109439 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109440 third_party/sqlite/amalgamation/sqlite3.c db->xCollNeeded = 0; db 109441 third_party/sqlite/amalgamation/sqlite3.c db->xCollNeeded16 = xCollNeeded16; db 109442 third_party/sqlite/amalgamation/sqlite3.c db->pCollNeededArg = pCollNeededArg; db 109443 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109466 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_get_autocommit(sqlite3 *db){ db 109467 third_party/sqlite/amalgamation/sqlite3.c return db->autoCommit; db 109522 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Connection handle */ db 109545 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109546 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeEnterAll(db); db 109547 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Init(db, &zErrMsg); db 109553 third_party/sqlite/amalgamation/sqlite3.c pTab = sqlite3FindTable(db, zTableName, zDbName); db 109603 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeLeaveAll(db); db 109616 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErrMsg); db 109617 third_party/sqlite/amalgamation/sqlite3.c zErrMsg = sqlite3MPrintf(db, "no such table column: %s.%s", zTableName, db 109621 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, (zErrMsg?"%s":0), zErrMsg); db 109622 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, zErrMsg); db 109623 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3ApiExit(db, rc); db 109624 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109648 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_extended_result_codes(sqlite3 *db, int onoff){ db 109649 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109650 third_party/sqlite/amalgamation/sqlite3.c db->errMask = onoff ? 0xffffffff : 0xff; db 109651 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109658 third_party/sqlite/amalgamation/sqlite3.c SQLITE_API int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){ db 109661 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109665 third_party/sqlite/amalgamation/sqlite3.c for(iDb=0; iDb<db->nDb; iDb++){ db 109666 third_party/sqlite/amalgamation/sqlite3.c if( strcmp(db->aDb[iDb].zName, zDbName)==0 ) break; db 109669 third_party/sqlite/amalgamation/sqlite3.c if( iDb<db->nDb ){ db 109670 third_party/sqlite/amalgamation/sqlite3.c Btree *pBtree = db->aDb[iDb].pBt; db 109690 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109844 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = va_arg(ap, sqlite3*); db 109846 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 109847 third_party/sqlite/amalgamation/sqlite3.c sqlite3BtreeSetPageSize(db->aDb[0].pBt, 0, x, 0); db 109848 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 109862 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = va_arg(ap, sqlite3*); db 109864 third_party/sqlite/amalgamation/sqlite3.c db->flags = (x & SQLITE_OptMask) | (db->flags & ~SQLITE_OptMask); db 109973 third_party/sqlite/amalgamation/sqlite3.c static void checkListProperties(sqlite3 *db){ db 109986 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || p->pUnlockConnection!=db ); db 109987 third_party/sqlite/amalgamation/sqlite3.c assert( db==0 || p->pBlockingConnection!=db ); db 109999 third_party/sqlite/amalgamation/sqlite3.c static void removeFromBlockedList(sqlite3 *db){ db 110003 third_party/sqlite/amalgamation/sqlite3.c if( *pp==db ){ db 110014 third_party/sqlite/amalgamation/sqlite3.c static void addToBlockedList(sqlite3 *db){ db 110019 third_party/sqlite/amalgamation/sqlite3.c *pp && (*pp)->xUnlockNotify!=db->xUnlockNotify; db 110022 third_party/sqlite/amalgamation/sqlite3.c db->pNextBlocked = *pp; db 110023 third_party/sqlite/amalgamation/sqlite3.c *pp = db; db 110065 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 110071 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(db->mutex); db 110075 third_party/sqlite/amalgamation/sqlite3.c removeFromBlockedList(db); db 110076 third_party/sqlite/amalgamation/sqlite3.c db->pBlockingConnection = 0; db 110077 third_party/sqlite/amalgamation/sqlite3.c db->pUnlockConnection = 0; db 110078 third_party/sqlite/amalgamation/sqlite3.c db->xUnlockNotify = 0; db 110079 third_party/sqlite/amalgamation/sqlite3.c db->pUnlockArg = 0; db 110080 third_party/sqlite/amalgamation/sqlite3.c }else if( 0==db->pBlockingConnection ){ db 110089 third_party/sqlite/amalgamation/sqlite3.c for(p=db->pBlockingConnection; p && p!=db; p=p->pUnlockConnection){} db 110093 third_party/sqlite/amalgamation/sqlite3.c db->pUnlockConnection = db->pBlockingConnection; db 110094 third_party/sqlite/amalgamation/sqlite3.c db->xUnlockNotify = xNotify; db 110095 third_party/sqlite/amalgamation/sqlite3.c db->pUnlockArg = pArg; db 110096 third_party/sqlite/amalgamation/sqlite3.c removeFromBlockedList(db); db 110097 third_party/sqlite/amalgamation/sqlite3.c addToBlockedList(db); db 110102 third_party/sqlite/amalgamation/sqlite3.c assert( !db->mallocFailed ); db 110103 third_party/sqlite/amalgamation/sqlite3.c sqlite3Error(db, rc, (rc?"database is deadlocked":0)); db 110104 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(db->mutex); db 110114 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ConnectionBlocked(sqlite3 *db, sqlite3 *pBlocker){ db 110116 third_party/sqlite/amalgamation/sqlite3.c if( db->pBlockingConnection==0 && db->pUnlockConnection==0 ){ db 110117 third_party/sqlite/amalgamation/sqlite3.c addToBlockedList(db); db 110119 third_party/sqlite/amalgamation/sqlite3.c db->pBlockingConnection = pBlocker; db 110142 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db){ db 110158 third_party/sqlite/amalgamation/sqlite3.c if( p->pBlockingConnection==db ){ db 110163 third_party/sqlite/amalgamation/sqlite3.c if( p->pUnlockConnection==db ){ db 110241 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db){ db 110242 third_party/sqlite/amalgamation/sqlite3.c sqlite3ConnectionUnlocked(db); db 110244 third_party/sqlite/amalgamation/sqlite3.c removeFromBlockedList(db); db 110245 third_party/sqlite/amalgamation/sqlite3.c checkListProperties(db); db 110639 third_party/sqlite/amalgamation/sqlite3.c static int GetPager(sqlite3 *db, const char *zName, db 110643 third_party/sqlite/amalgamation/sqlite3.c for( i=0; i<db->nDb; ++i ){ db 110644 third_party/sqlite/amalgamation/sqlite3.c if( ascii_strcasecmp(db->aDb[i].zName, zName)==0 ){ db 110645 third_party/sqlite/amalgamation/sqlite3.c pBt = db->aDb[i].pBt; db 110738 third_party/sqlite/amalgamation/sqlite3.c static int getRootPage(sqlite3 *db, const char *zDb, const char *zTable, db 110756 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 110781 third_party/sqlite/amalgamation/sqlite3.c static int getEncoding(sqlite3 *db, const char *zDb, int* piEncoding){ db 110789 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 111763 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Host database connection */ db 111787 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 111794 third_party/sqlite/amalgamation/sqlite3.c return recoverInit(db, pAux, argc, argv, ppVtab, pzErr); db 111799 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 111806 third_party/sqlite/amalgamation/sqlite3.c return recoverInit(db, pAux, argc, argv, ppVtab, pzErr); db 111849 third_party/sqlite/amalgamation/sqlite3.c rc = getRootPage(pRecover->db, pRecover->zDb, pRecover->zTable, db 111856 third_party/sqlite/amalgamation/sqlite3.c rc = getEncoding(pRecover->db, pRecover->zDb, &iEncoding); db 111861 third_party/sqlite/amalgamation/sqlite3.c rc = GetPager(pRecover->db, pRecover->zDb, &pPager, &nPageSize); db 112107 third_party/sqlite/amalgamation/sqlite3.c int recoverVtableInit(sqlite3 *db){ db 112108 third_party/sqlite/amalgamation/sqlite3.c return sqlite3_create_module_v2(db, "recover", &recoverModule, NULL, 0); db 112308 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection */ db 112339 third_party/sqlite/amalgamation/sqlite3.c pRecover->db = db; db 112344 third_party/sqlite/amalgamation/sqlite3.c pRecover->zDb = sqlite3_strdup(db->aDb[0].zName); db 112369 third_party/sqlite/amalgamation/sqlite3.c rc = getRootPage(pRecover->db, pRecover->zDb, pRecover->zTable, &iRootPage); db 112384 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_declare_vtab(db, zCreateSql); db 113090 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* The database connection */ db 113351 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3 *db); db 113355 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3Fts3InitAux(sqlite3 *db); db 113521 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database in which to run SQL */ db 113534 third_party/sqlite/amalgamation/sqlite3.c *pRc = sqlite3_exec(db, zSql, 0, 0, 0); db 113545 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; db 113548 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_content'", p->zDb, p->zName); db 113549 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_segments'", p->zDb,p->zName); db 113550 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_segdir'", p->zDb, p->zName); db 113551 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_docsize'", p->zDb, p->zName); db 113552 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_stat'", p->zDb, p->zName); db 113591 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_declare_vtab(p->db, zSql); db 113613 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; /* The database connection */ db 113624 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 113630 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 113634 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 113647 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 113653 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 113678 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0); db 113872 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* The SQLite database connection */ db 113995 third_party/sqlite/amalgamation/sqlite3.c p->db = db; db 114074 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection */ db 114081 third_party/sqlite/amalgamation/sqlite3.c return fts3InitVtab(0, db, pAux, argc, argv, ppVtab, pzErr); db 114084 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection */ db 114091 third_party/sqlite/amalgamation/sqlite3.c return fts3InitVtab(1, db, pAux, argc, argv, ppVtab, pzErr); db 116158 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(p->db, zSql, -1, &pCsr->pStmt, 0); db 116570 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = p->db; /* Database connection */ db 116578 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 116583 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 116589 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 116594 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 116598 third_party/sqlite/amalgamation/sqlite3.c fts3DbExec(&rc, db, db 116661 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db){ db 116672 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Fts3InitAux(db); db 116700 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3Fts3ExprInitTestInterface(db); db 116712 third_party/sqlite/amalgamation/sqlite3.c && SQLITE_OK==(rc = sqlite3Fts3InitHashTable(db, pHash, "fts3_tokenizer")) db 116714 third_party/sqlite/amalgamation/sqlite3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "snippet", -1)) db 116715 third_party/sqlite/amalgamation/sqlite3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "offsets", 1)) db 116716 third_party/sqlite/amalgamation/sqlite3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "matchinfo", 1)) db 116717 third_party/sqlite/amalgamation/sqlite3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "matchinfo", 2)) db 116718 third_party/sqlite/amalgamation/sqlite3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "optimize", 1)) db 116721 third_party/sqlite/amalgamation/sqlite3.c db, "fts3", &fts3Module, (void *)pHash, hashDestroy db 116728 third_party/sqlite/amalgamation/sqlite3.c db, "fts4", &fts3Module, (void *)pHash, 0 db 116746 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 116751 third_party/sqlite/amalgamation/sqlite3.c return sqlite3Fts3Init(db); db 116812 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection */ db 116842 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_declare_vtab(db, FTS3_TERMS_SCHEMA); db 116853 third_party/sqlite/amalgamation/sqlite3.c p->pFts3Tab->db = db; db 117196 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3Fts3InitAux(sqlite3 *db){ db 117221 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_module(db, "fts4aux", &fts3aux_module, 0); db 117987 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 117996 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 118090 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); db 118099 third_party/sqlite/amalgamation/sqlite3.c rc = queryTestTokenizer(db, db 118154 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3* db){ db 118156 third_party/sqlite/amalgamation/sqlite3.c db, "fts3_exprtest", -1, SQLITE_UTF8, 0, fts3ExprTest, 0, 0 db 119512 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 119520 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 119534 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 119543 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 119586 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = (sqlite3 *)sqlite3_user_data(context); db 119593 third_party/sqlite/amalgamation/sqlite3.c rc = queryTokenizer(db, "simple", &p2); db 119596 third_party/sqlite/amalgamation/sqlite3.c rc = queryTokenizer(db, "nosuchtokenizer", &p2); db 119599 third_party/sqlite/amalgamation/sqlite3.c assert( 0==strcmp(sqlite3_errmsg(db), "unknown tokenizer: nosuchtokenizer") ); db 119602 third_party/sqlite/amalgamation/sqlite3.c rc = registerTokenizer(db, "nosuchtokenizer", p1); db 119604 third_party/sqlite/amalgamation/sqlite3.c rc = queryTokenizer(db, "nosuchtokenizer", &p2); db 119631 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 119642 third_party/sqlite/amalgamation/sqlite3.c void *pdb = (void *)db; db 119651 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_function(db, zName, 1, any, p, scalarFunc, 0, 0); db 119654 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_function(db, zName, 2, any, p, scalarFunc, 0, 0); db 119658 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_function(db, zTest, 2, any, p, testFunc, 0, 0); db 119661 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_function(db, zTest, 3, any, p, testFunc, 0, 0); db 119664 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_function(db, zTest2, 0, any, pdb, intTestFunc, 0, 0); db 120164 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(p->db, zSql, -1, &pStmt, NULL); db 120613 third_party/sqlite/amalgamation/sqlite3.c *piDocid = sqlite3_last_insert_rowid(p->db); db 120778 third_party/sqlite/amalgamation/sqlite3.c p->db, p->zDb, p->zSegmentsTbl, "block", iBlockid, 0, &p->pSegments db 122616 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(p->db, "SAVEPOINT fts3", 0, 0, 0); db 122620 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(p->db, "RELEASE fts3", 0, 0, 0); db 122625 third_party/sqlite/amalgamation/sqlite3.c sqlite3_exec(p->db, "ROLLBACK TO fts3", 0, 0, 0); db 122626 third_party/sqlite/amalgamation/sqlite3.c sqlite3_exec(p->db, "RELEASE fts3", 0, 0, 0); db 124402 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db; /* Host database connection */ db 124882 third_party/sqlite/amalgamation/sqlite3.c pNode->iNode = sqlite3_last_insert_rowid(pRtree->db); db 124972 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 124978 third_party/sqlite/amalgamation/sqlite3.c return rtreeInit(db, pAux, argc, argv, ppVtab, pzErr, 1); db 124985 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 124991 third_party/sqlite/amalgamation/sqlite3.c return rtreeInit(db, pAux, argc, argv, ppVtab, pzErr, 0); db 125046 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(pRtree->db, zCreate, 0, 0, 0); db 126881 third_party/sqlite/amalgamation/sqlite3.c *piRowid = sqlite3_last_insert_rowid(pRtree->db); db 127065 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(pRtree->db, zSql, 0, 0, 0); db 127096 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 127123 third_party/sqlite/amalgamation/sqlite3.c pRtree->db = db; db 127136 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_exec(db, zCreate, 0, 0, 0); db 127156 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(db, zSql, -1, appStmt[i], 0); db 127173 third_party/sqlite/amalgamation/sqlite3.c static int getIntFromStmt(sqlite3 *db, const char *zSql, int *piVal){ db 127177 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 127204 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database handle */ db 127213 third_party/sqlite/amalgamation/sqlite3.c rc = getIntFromStmt(db, zSql, &iPageSize); db 127225 third_party/sqlite/amalgamation/sqlite3.c rc = getIntFromStmt(db, zSql, &pRtree->iNodeSize); db 127242 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, /* Database connection */ db 127287 third_party/sqlite/amalgamation/sqlite3.c rc = getNodeSize(db, pRtree, isCreate); db 127294 third_party/sqlite/amalgamation/sqlite3.c if( (rc = rtreeSqlInit(pRtree, db, argv[1], argv[2], isCreate)) ){ db 127295 third_party/sqlite/amalgamation/sqlite3.c *pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db)); db 127312 third_party/sqlite/amalgamation/sqlite3.c }else if( SQLITE_OK!=(rc = sqlite3_declare_vtab(db, zSql)) ){ db 127313 third_party/sqlite/amalgamation/sqlite3.c *pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db)); db 127400 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db){ db 127404 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_function(db, "rtreenode", 2, utf8, 0, rtreenode, 0, 0); db 127406 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_function(db, "rtreedepth", 1, utf8, 0,rtreedepth, 0, 0); db 127410 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_module_v2(db, "rtree", &rtreeModule, c, 0); db 127414 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_module_v2(db, "rtree_i32", &rtreeModule, c, 0); db 127464 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 127479 third_party/sqlite/amalgamation/sqlite3.c return sqlite3_create_function_v2(db, zGeom, -1, SQLITE_ANY, db 127486 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 127491 third_party/sqlite/amalgamation/sqlite3.c return sqlite3RtreeInit(db); db 127912 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db = (sqlite3 *)sqlite3_user_data(p); db 127934 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3_create_collation_v2(db, zName, SQLITE_UTF16, (void *)pUCollator, db 127946 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db){ db 127969 third_party/sqlite/amalgamation/sqlite3.c {"icu_load_collation", 2, SQLITE_UTF8, (void*)db, icuLoadCollation}, db 127978 third_party/sqlite/amalgamation/sqlite3.c db, p->zName, p->nArg, p->enc, p->pContext, p->xFunc, 0, 0 db 127987 third_party/sqlite/amalgamation/sqlite3.c sqlite3 *db, db 127992 third_party/sqlite/amalgamation/sqlite3.c return sqlite3IcuInit(db); db 1882 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* An open database */ db 2460 third_party/sqlite/amalgamation/sqlite3.h SQLITE_API int sqlite3_errcode(sqlite3 *db); db 2461 third_party/sqlite/amalgamation/sqlite3.h SQLITE_API int sqlite3_extended_errcode(sqlite3 *db); db 2675 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Database handle */ db 2682 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Database handle */ db 2689 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Database handle */ db 2696 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Database handle */ db 3524 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, db 3534 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, db 3544 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, db 4045 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Database to be rekeyed */ db 4058 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Database to be rekeyed */ db 4449 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Connection handle */ db 4486 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Load the extension into this database connection */ db 4505 third_party/sqlite/amalgamation/sqlite3.h SQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff); db 4735 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* SQLite connection to register module with */ db 4741 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* SQLite connection to register module with */ db 6285 third_party/sqlite/amalgamation/sqlite3.h SQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int N); db 6303 third_party/sqlite/amalgamation/sqlite3.h SQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb); db 6376 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, /* Database handle */ db 6404 third_party/sqlite/amalgamation/sqlite3.h int recoverVtableInit(sqlite3 *db); db 6450 third_party/sqlite/amalgamation/sqlite3.h sqlite3 *db, db 923 third_party/sqlite/src/ext/fts1/fts1.c static int sql_exec(sqlite3 *db, const char *zDb, const char *zName, db 928 third_party/sqlite/src/ext/fts1/fts1.c rc = sqlite3_exec(db, zCommand, NULL, 0, NULL); db 933 third_party/sqlite/src/ext/fts1/fts1.c static int sql_prepare(sqlite3 *db, const char *zDb, const char *zName, db 938 third_party/sqlite/src/ext/fts1/fts1.c rc = sqlite3_prepare(db, zCommand, -1, ppStmt, NULL); db 1086 third_party/sqlite/src/ext/fts1/fts1.c sqlite3 *db; /* The database connection */ db 1187 third_party/sqlite/src/ext/fts1/fts1.c rc = sql_prepare(v->db, v->zDb, v->zName, &v->pFulltextStatements[iStmt], db 1937 third_party/sqlite/src/ext/fts1/fts1.c sqlite3 *db, /* The SQLite database connection */ db 1952 third_party/sqlite/src/ext/fts1/fts1.c v->db = db; db 1988 third_party/sqlite/src/ext/fts1/fts1.c rc = sqlite3_declare_vtab(db, schema); db 2005 third_party/sqlite/src/ext/fts1/fts1.c sqlite3 *db, db 2015 third_party/sqlite/src/ext/fts1/fts1.c rc = constructVtab(db, &spec, ppVTab, pzErr); db 2055 third_party/sqlite/src/ext/fts1/fts1.c static int fulltextCreate(sqlite3 *db, void *pAux, db 2070 third_party/sqlite/src/ext/fts1/fts1.c rc = sql_exec(db, spec.zDb, spec.zName, schema.s); db 2074 third_party/sqlite/src/ext/fts1/fts1.c rc = sql_exec(db, spec.zDb, spec.zName, db 2079 third_party/sqlite/src/ext/fts1/fts1.c rc = constructVtab(db, &spec, ppVTab, pzErr); db 2132 third_party/sqlite/src/ext/fts1/fts1.c rc = sql_exec(v->db, v->zDb, v->zName, db 2892 third_party/sqlite/src/ext/fts1/fts1.c rc = sql_prepare(v->db, v->zDb, v->zName, &c->pStmt, zSql); db 3121 third_party/sqlite/src/ext/fts1/fts1.c *piRowid = sqlite3_last_insert_rowid(v->db); db 3302 third_party/sqlite/src/ext/fts1/fts1.c rc = sqlite3_exec(p->db, zSql, 0, 0, 0); db 3331 third_party/sqlite/src/ext/fts1/fts1.c int sqlite3Fts1Init(sqlite3 *db){ db 3332 third_party/sqlite/src/ext/fts1/fts1.c sqlite3_overload_function(db, "snippet", -1); db 3333 third_party/sqlite/src/ext/fts1/fts1.c sqlite3_overload_function(db, "offsets", -1); db 3334 third_party/sqlite/src/ext/fts1/fts1.c return sqlite3_create_module(db, "fts1", &fulltextModule, 0); db 3338 third_party/sqlite/src/ext/fts1/fts1.c int sqlite3_extension_init(sqlite3 *db, char **pzErrMsg, db 3341 third_party/sqlite/src/ext/fts1/fts1.c return sqlite3Fts1Init(db); db 7 third_party/sqlite/src/ext/fts1/fts1.h int sqlite3Fts1Init(sqlite3 *db); db 505 third_party/sqlite/src/ext/fts1/fulltext.c static int sql_exec(sqlite3 *db, const char *zName, const char *zFormat){ db 507 third_party/sqlite/src/ext/fts1/fulltext.c int rc = sqlite3_exec(db, zCommand, NULL, 0, NULL); db 512 third_party/sqlite/src/ext/fts1/fulltext.c static int sql_prepare(sqlite3 *db, const char *zName, sqlite3_stmt **ppStmt, db 515 third_party/sqlite/src/ext/fts1/fulltext.c int rc = sqlite3_prepare(db, zCommand, -1, ppStmt, NULL); db 564 third_party/sqlite/src/ext/fts1/fulltext.c sqlite3 *db; db 600 third_party/sqlite/src/ext/fts1/fulltext.c int rc = sql_prepare(v->db, v->zName, &v->pFulltextStatements[iStmt], db 855 third_party/sqlite/src/ext/fts1/fulltext.c static int fulltextConnect(sqlite3 *db, void *pAux, int argc, char **argv, db 864 third_party/sqlite/src/ext/fts1/fulltext.c v->db = db; db 892 third_party/sqlite/src/ext/fts1/fulltext.c rc = sqlite3_declare_vtab(db, "create table x(content text)"); db 901 third_party/sqlite/src/ext/fts1/fulltext.c static int fulltextCreate(sqlite3 *db, void *pAux, int argc, char **argv, db 931 third_party/sqlite/src/ext/fts1/fulltext.c rc = sql_exec(db, argv[2], db 937 third_party/sqlite/src/ext/fts1/fulltext.c return fulltextConnect(db, pAux, argc, argv, ppVTab); db 971 third_party/sqlite/src/ext/fts1/fulltext.c int rc = sql_exec(v->db, v->zName, db 1050 third_party/sqlite/src/ext/fts1/fulltext.c rc = sql_prepare(v->db, v->zName, ppStmt, db 1257 third_party/sqlite/src/ext/fts1/fulltext.c rc = sql_prepare(v->db, v->zName, &c->pStmt, zStatement); db 1382 third_party/sqlite/src/ext/fts1/fulltext.c *piRowid = sqlite3_last_insert_rowid(v->db); db 1486 third_party/sqlite/src/ext/fts1/fulltext.c int fulltext_init(sqlite3 *db){ db 1487 third_party/sqlite/src/ext/fts1/fulltext.c return sqlite3_create_module(db, "fulltext", &fulltextModule, 0); db 1491 third_party/sqlite/src/ext/fts1/fulltext.c int sqlite3_extension_init(sqlite3 *db, char **pzErrMsg, db 1494 third_party/sqlite/src/ext/fts1/fulltext.c return fulltext_init(db); db 7 third_party/sqlite/src/ext/fts1/fulltext.h int fulltext_init(sqlite3 *db); db 1842 third_party/sqlite/src/ext/fts2/fts2.c static int sql_exec(sqlite3 *db, const char *zDb, const char *zName, db 1847 third_party/sqlite/src/ext/fts2/fts2.c rc = sqlite3_exec(db, zCommand, NULL, 0, NULL); db 1852 third_party/sqlite/src/ext/fts2/fts2.c static int sql_prepare(sqlite3 *db, const char *zDb, const char *zName, db 1857 third_party/sqlite/src/ext/fts2/fts2.c rc = sqlite3_prepare_v2(db, zCommand, -1, ppStmt, NULL); db 2021 third_party/sqlite/src/ext/fts2/fts2.c sqlite3 *db; /* The database connection */ db 2137 third_party/sqlite/src/ext/fts2/fts2.c rc = sql_prepare(v->db, v->zDb, v->zName, &v->pFulltextStatements[iStmt], db 2170 third_party/sqlite/src/ext/fts2/fts2.c return sql_prepare(v->db, v->zDb, v->zName, ppStmt, LEAF_SELECT); db 2172 third_party/sqlite/src/ext/fts2/fts2.c int rc = sql_prepare(v->db, v->zDb, v->zName, &v->pLeafSelectStmts[idx], db 2324 third_party/sqlite/src/ext/fts2/fts2.c *piBlockid = sqlite3_last_insert_rowid(v->db); db 2982 third_party/sqlite/src/ext/fts2/fts2.c sqlite3 *db, /* The SQLite database connection */ db 3001 third_party/sqlite/src/ext/fts2/fts2.c v->db = db; db 3041 third_party/sqlite/src/ext/fts2/fts2.c rc = sqlite3_declare_vtab(db, schema); db 3061 third_party/sqlite/src/ext/fts2/fts2.c sqlite3 *db, db 3071 third_party/sqlite/src/ext/fts2/fts2.c rc = constructVtab(db, (fts2Hash *)pAux, &spec, ppVTab, pzErr); db 3082 third_party/sqlite/src/ext/fts2/fts2.c static int fulltextCreate(sqlite3 *db, void *pAux, db 3097 third_party/sqlite/src/ext/fts2/fts2.c rc = sql_exec(db, spec.zDb, spec.zName, stringBufferData(&schema)); db 3101 third_party/sqlite/src/ext/fts2/fts2.c rc = sql_exec(db, spec.zDb, spec.zName, db 3105 third_party/sqlite/src/ext/fts2/fts2.c rc = sql_exec(db, spec.zDb, spec.zName, db 3117 third_party/sqlite/src/ext/fts2/fts2.c rc = constructVtab(db, (fts2Hash *)pAux, &spec, ppVTab, pzErr); db 3170 third_party/sqlite/src/ext/fts2/fts2.c rc = sql_exec(v->db, v->zDb, v->zName, db 4019 third_party/sqlite/src/ext/fts2/fts2.c rc = sql_prepare(v->db, v->zDb, v->zName, &c->pStmt, zSql); db 4214 third_party/sqlite/src/ext/fts2/fts2.c *piRowid = sqlite3_last_insert_rowid(v->db); db 7157 third_party/sqlite/src/ext/fts2/fts2.c rc = sqlite3_exec(p->db, zSql, 0, 0, 0); db 7215 third_party/sqlite/src/ext/fts2/fts2.c int sqlite3Fts2Init(sqlite3 *db){ db 7254 third_party/sqlite/src/ext/fts2/fts2.c && SQLITE_OK==(rc = sqlite3Fts2InitHashTable(db, pHash, "fts2_tokenizer")) db 7256 third_party/sqlite/src/ext/fts2/fts2.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "snippet", -1)) db 7257 third_party/sqlite/src/ext/fts2/fts2.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "offsets", -1)) db 7258 third_party/sqlite/src/ext/fts2/fts2.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "optimize", -1)) db 7260 third_party/sqlite/src/ext/fts2/fts2.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "dump_terms", -1)) db 7261 third_party/sqlite/src/ext/fts2/fts2.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "dump_doclist", -1)) db 7265 third_party/sqlite/src/ext/fts2/fts2.c db, "fts2", &fts2Module, (void *)pHash, hashDestroy db 7280 third_party/sqlite/src/ext/fts2/fts2.c sqlite3 *db, db 7285 third_party/sqlite/src/ext/fts2/fts2.c return sqlite3Fts2Init(db); db 22 third_party/sqlite/src/ext/fts2/fts2.h int sqlite3Fts2Init(sqlite3 *db); db 224 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c sqlite3 *db, db 232 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 246 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c sqlite3 *db, db 255 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 298 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c sqlite3 *db = (sqlite3 *)sqlite3_user_data(context); db 302 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c rc = queryFts2Tokenizer(db, "simple", &p2); db 305 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c rc = queryFts2Tokenizer(db, "nosuchtokenizer", &p2); db 308 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c assert( 0==strcmp(sqlite3_errmsg(db), "unknown tokenizer: nosuchtokenizer") ); db 311 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c rc = registerTokenizer(db, "nosuchtokenizer", p1); db 313 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c rc = queryFts2Tokenizer(db, "nosuchtokenizer", &p2); db 340 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c sqlite3 *db, db 351 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c void *pdb = (void *)db; db 360 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c || (rc = sqlite3_create_function(db, zName, 1, any, p, scalarFunc, 0, 0)) db 361 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c || (rc = sqlite3_create_function(db, zName, 2, any, p, scalarFunc, 0, 0)) db 363 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c || (rc = sqlite3_create_function(db, zTest, 2, any, p, testFunc, 0, 0)) db 364 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c || (rc = sqlite3_create_function(db, zTest, 3, any, p, testFunc, 0, 0)) db 365 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c || (rc = sqlite3_create_function(db, zTest2, 0, any, pdb, intTestFunc, 0, 0)) db 471 third_party/sqlite/src/ext/fts3/fts3.c sqlite3 *db, /* Database in which to run SQL */ db 484 third_party/sqlite/src/ext/fts3/fts3.c *pRc = sqlite3_exec(db, zSql, 0, 0, 0); db 495 third_party/sqlite/src/ext/fts3/fts3.c sqlite3 *db = p->db; db 498 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_content'", p->zDb, p->zName); db 499 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_segments'", p->zDb,p->zName); db 500 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_segdir'", p->zDb, p->zName); db 501 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_docsize'", p->zDb, p->zName); db 502 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_stat'", p->zDb, p->zName); db 541 third_party/sqlite/src/ext/fts3/fts3.c rc = sqlite3_declare_vtab(p->db, zSql); db 563 third_party/sqlite/src/ext/fts3/fts3.c sqlite3 *db = p->db; /* The database connection */ db 574 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 580 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 584 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 597 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 603 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 628 third_party/sqlite/src/ext/fts3/fts3.c rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0); db 822 third_party/sqlite/src/ext/fts3/fts3.c sqlite3 *db, /* The SQLite database connection */ db 945 third_party/sqlite/src/ext/fts3/fts3.c p->db = db; db 1024 third_party/sqlite/src/ext/fts3/fts3.c sqlite3 *db, /* Database connection */ db 1031 third_party/sqlite/src/ext/fts3/fts3.c return fts3InitVtab(0, db, pAux, argc, argv, ppVtab, pzErr); db 1034 third_party/sqlite/src/ext/fts3/fts3.c sqlite3 *db, /* Database connection */ db 1041 third_party/sqlite/src/ext/fts3/fts3.c return fts3InitVtab(1, db, pAux, argc, argv, ppVtab, pzErr); db 3108 third_party/sqlite/src/ext/fts3/fts3.c rc = sqlite3_prepare_v2(p->db, zSql, -1, &pCsr->pStmt, 0); db 3520 third_party/sqlite/src/ext/fts3/fts3.c sqlite3 *db = p->db; /* Database connection */ db 3528 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 3533 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 3539 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 3544 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 3548 third_party/sqlite/src/ext/fts3/fts3.c fts3DbExec(&rc, db, db 3611 third_party/sqlite/src/ext/fts3/fts3.c int sqlite3Fts3Init(sqlite3 *db){ db 3622 third_party/sqlite/src/ext/fts3/fts3.c rc = sqlite3Fts3InitAux(db); db 3650 third_party/sqlite/src/ext/fts3/fts3.c rc = sqlite3Fts3ExprInitTestInterface(db); db 3662 third_party/sqlite/src/ext/fts3/fts3.c && SQLITE_OK==(rc = sqlite3Fts3InitHashTable(db, pHash, "fts3_tokenizer")) db 3664 third_party/sqlite/src/ext/fts3/fts3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "snippet", -1)) db 3665 third_party/sqlite/src/ext/fts3/fts3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "offsets", 1)) db 3666 third_party/sqlite/src/ext/fts3/fts3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "matchinfo", 1)) db 3667 third_party/sqlite/src/ext/fts3/fts3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "matchinfo", 2)) db 3668 third_party/sqlite/src/ext/fts3/fts3.c && SQLITE_OK==(rc = sqlite3_overload_function(db, "optimize", 1)) db 3671 third_party/sqlite/src/ext/fts3/fts3.c db, "fts3", &fts3Module, (void *)pHash, hashDestroy db 3678 third_party/sqlite/src/ext/fts3/fts3.c db, "fts4", &fts3Module, (void *)pHash, 0 db 3696 third_party/sqlite/src/ext/fts3/fts3.c sqlite3 *db, db 3701 third_party/sqlite/src/ext/fts3/fts3.c return sqlite3Fts3Init(db); db 22 third_party/sqlite/src/ext/fts3/fts3.h int sqlite3Fts3Init(sqlite3 *db); db 121 third_party/sqlite/src/ext/fts3/fts3Int.h sqlite3 *db; /* The database connection */ db 382 third_party/sqlite/src/ext/fts3/fts3Int.h int sqlite3Fts3ExprInitTestInterface(sqlite3 *db); db 386 third_party/sqlite/src/ext/fts3/fts3Int.h int sqlite3Fts3InitAux(sqlite3 *db); db 57 third_party/sqlite/src/ext/fts3/fts3_aux.c sqlite3 *db, /* Database connection */ db 87 third_party/sqlite/src/ext/fts3/fts3_aux.c rc = sqlite3_declare_vtab(db, FTS3_TERMS_SCHEMA); db 98 third_party/sqlite/src/ext/fts3/fts3_aux.c p->pFts3Tab->db = db; db 441 third_party/sqlite/src/ext/fts3/fts3_aux.c int sqlite3Fts3InitAux(sqlite3 *db){ db 466 third_party/sqlite/src/ext/fts3/fts3_aux.c rc = sqlite3_create_module(db, "fts4aux", &fts3aux_module, 0); db 763 third_party/sqlite/src/ext/fts3/fts3_expr.c sqlite3 *db, db 772 third_party/sqlite/src/ext/fts3/fts3_expr.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 866 third_party/sqlite/src/ext/fts3/fts3_expr.c sqlite3 *db = sqlite3_context_db_handle(context); db 875 third_party/sqlite/src/ext/fts3/fts3_expr.c rc = queryTestTokenizer(db, db 930 third_party/sqlite/src/ext/fts3/fts3_expr.c int sqlite3Fts3ExprInitTestInterface(sqlite3* db){ db 932 third_party/sqlite/src/ext/fts3/fts3_expr.c db, "fts3_exprtest", -1, SQLITE_UTF8, 0, fts3ExprTest, 0, 0 db 330 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c sqlite3 *db, db 338 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 352 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c sqlite3 *db, db 361 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 404 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c sqlite3 *db = (sqlite3 *)sqlite3_user_data(context); db 411 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = queryTokenizer(db, "simple", &p2); db 414 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = queryTokenizer(db, "nosuchtokenizer", &p2); db 417 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c assert( 0==strcmp(sqlite3_errmsg(db), "unknown tokenizer: nosuchtokenizer") ); db 420 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = registerTokenizer(db, "nosuchtokenizer", p1); db 422 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = queryTokenizer(db, "nosuchtokenizer", &p2); db 449 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c sqlite3 *db, db 460 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c void *pdb = (void *)db; db 469 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = sqlite3_create_function(db, zName, 1, any, p, scalarFunc, 0, 0); db 472 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = sqlite3_create_function(db, zName, 2, any, p, scalarFunc, 0, 0); db 476 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = sqlite3_create_function(db, zTest, 2, any, p, testFunc, 0, 0); db 479 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = sqlite3_create_function(db, zTest, 3, any, p, testFunc, 0, 0); db 482 third_party/sqlite/src/ext/fts3/fts3_tokenizer.c rc = sqlite3_create_function(db, zTest2, 0, any, pdb, intTestFunc, 0, 0); db 258 third_party/sqlite/src/ext/fts3/fts3_write.c rc = sqlite3_prepare_v2(p->db, zSql, -1, &pStmt, NULL); db 707 third_party/sqlite/src/ext/fts3/fts3_write.c *piDocid = sqlite3_last_insert_rowid(p->db); db 872 third_party/sqlite/src/ext/fts3/fts3_write.c p->db, p->zDb, p->zSegmentsTbl, "block", iBlockid, 0, &p->pSegments db 2710 third_party/sqlite/src/ext/fts3/fts3_write.c rc = sqlite3_exec(p->db, "SAVEPOINT fts3", 0, 0, 0); db 2714 third_party/sqlite/src/ext/fts3/fts3_write.c rc = sqlite3_exec(p->db, "RELEASE fts3", 0, 0, 0); db 2719 third_party/sqlite/src/ext/fts3/fts3_write.c sqlite3_exec(p->db, "ROLLBACK TO fts3", 0, 0, 0); db 2720 third_party/sqlite/src/ext/fts3/fts3_write.c sqlite3_exec(p->db, "RELEASE fts3", 0, 0, 0); db 417 third_party/sqlite/src/ext/icu/icu.c sqlite3 *db = (sqlite3 *)sqlite3_user_data(p); db 439 third_party/sqlite/src/ext/icu/icu.c rc = sqlite3_create_collation_v2(db, zName, SQLITE_UTF16, (void *)pUCollator, db 451 third_party/sqlite/src/ext/icu/icu.c int sqlite3IcuInit(sqlite3 *db){ db 474 third_party/sqlite/src/ext/icu/icu.c {"icu_load_collation", 2, SQLITE_UTF8, (void*)db, icuLoadCollation}, db 483 third_party/sqlite/src/ext/icu/icu.c db, p->zName, p->nArg, p->enc, p->pContext, p->xFunc, 0, 0 db 492 third_party/sqlite/src/ext/icu/icu.c sqlite3 *db, db 497 third_party/sqlite/src/ext/icu/icu.c return sqlite3IcuInit(db); db 22 third_party/sqlite/src/ext/icu/sqliteicu.h int sqlite3IcuInit(sqlite3 *db); db 145 third_party/sqlite/src/ext/rtree/rtree.c sqlite3 *db; /* Host database connection */ db 625 third_party/sqlite/src/ext/rtree/rtree.c pNode->iNode = sqlite3_last_insert_rowid(pRtree->db); db 715 third_party/sqlite/src/ext/rtree/rtree.c sqlite3 *db, db 721 third_party/sqlite/src/ext/rtree/rtree.c return rtreeInit(db, pAux, argc, argv, ppVtab, pzErr, 1); db 728 third_party/sqlite/src/ext/rtree/rtree.c sqlite3 *db, db 734 third_party/sqlite/src/ext/rtree/rtree.c return rtreeInit(db, pAux, argc, argv, ppVtab, pzErr, 0); db 789 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_exec(pRtree->db, zCreate, 0, 0, 0); db 2624 third_party/sqlite/src/ext/rtree/rtree.c *piRowid = sqlite3_last_insert_rowid(pRtree->db); db 2808 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_exec(pRtree->db, zSql, 0, 0, 0); db 2839 third_party/sqlite/src/ext/rtree/rtree.c sqlite3 *db, db 2866 third_party/sqlite/src/ext/rtree/rtree.c pRtree->db = db; db 2879 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_exec(db, zCreate, 0, 0, 0); db 2899 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_prepare_v2(db, zSql, -1, appStmt[i], 0); db 2916 third_party/sqlite/src/ext/rtree/rtree.c static int getIntFromStmt(sqlite3 *db, const char *zSql, int *piVal){ db 2920 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 2947 third_party/sqlite/src/ext/rtree/rtree.c sqlite3 *db, /* Database handle */ db 2956 third_party/sqlite/src/ext/rtree/rtree.c rc = getIntFromStmt(db, zSql, &iPageSize); db 2968 third_party/sqlite/src/ext/rtree/rtree.c rc = getIntFromStmt(db, zSql, &pRtree->iNodeSize); db 2985 third_party/sqlite/src/ext/rtree/rtree.c sqlite3 *db, /* Database connection */ db 3030 third_party/sqlite/src/ext/rtree/rtree.c rc = getNodeSize(db, pRtree, isCreate); db 3037 third_party/sqlite/src/ext/rtree/rtree.c if( (rc = rtreeSqlInit(pRtree, db, argv[1], argv[2], isCreate)) ){ db 3038 third_party/sqlite/src/ext/rtree/rtree.c *pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db)); db 3055 third_party/sqlite/src/ext/rtree/rtree.c }else if( SQLITE_OK!=(rc = sqlite3_declare_vtab(db, zSql)) ){ db 3056 third_party/sqlite/src/ext/rtree/rtree.c *pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db)); db 3143 third_party/sqlite/src/ext/rtree/rtree.c int sqlite3RtreeInit(sqlite3 *db){ db 3147 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_create_function(db, "rtreenode", 2, utf8, 0, rtreenode, 0, 0); db 3149 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_create_function(db, "rtreedepth", 1, utf8, 0,rtreedepth, 0, 0); db 3153 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_create_module_v2(db, "rtree", &rtreeModule, c, 0); db 3157 third_party/sqlite/src/ext/rtree/rtree.c rc = sqlite3_create_module_v2(db, "rtree_i32", &rtreeModule, c, 0); db 3207 third_party/sqlite/src/ext/rtree/rtree.c sqlite3 *db, db 3222 third_party/sqlite/src/ext/rtree/rtree.c return sqlite3_create_function_v2(db, zGeom, -1, SQLITE_ANY, db 3229 third_party/sqlite/src/ext/rtree/rtree.c sqlite3 *db, db 3234 third_party/sqlite/src/ext/rtree/rtree.c return sqlite3RtreeInit(db); db 22 third_party/sqlite/src/ext/rtree/rtree.h int sqlite3RtreeInit(sqlite3 *db); db 32 third_party/sqlite/src/ext/rtree/sqlite3rtree.h sqlite3 *db, db 51 third_party/sqlite/src/src/alter.c sqlite3 *db = sqlite3_context_db_handle(context); db 80 third_party/sqlite/src/src/alter.c zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", ((u8*)tname.z) - zSql, zSql, db 107 third_party/sqlite/src/src/alter.c sqlite3 *db = sqlite3_context_db_handle(context); db 128 third_party/sqlite/src/src/alter.c zParent = sqlite3DbStrNDup(db, (const char *)z, n); db 132 third_party/sqlite/src/src/alter.c char *zOut = sqlite3MPrintf(db, "%s%.*s\"%w\"", db 135 third_party/sqlite/src/src/alter.c sqlite3DbFree(db, zOutput); db 139 third_party/sqlite/src/src/alter.c sqlite3DbFree(db, zParent); db 143 third_party/sqlite/src/src/alter.c zResult = sqlite3MPrintf(db, "%s%s", (zOutput?zOutput:""), zInput), db 145 third_party/sqlite/src/src/alter.c sqlite3DbFree(db, zOutput); db 171 third_party/sqlite/src/src/alter.c sqlite3 *db = sqlite3_context_db_handle(context); db 219 third_party/sqlite/src/src/alter.c zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", ((u8*)tname.z) - zSql, zSql, db 264 third_party/sqlite/src/src/alter.c static char *whereOrName(sqlite3 *db, char *zWhere, char *zConstant){ db 267 third_party/sqlite/src/src/alter.c zNew = sqlite3MPrintf(db, "name=%Q", zConstant); db 269 third_party/sqlite/src/src/alter.c zNew = sqlite3MPrintf(db, "%s OR name=%Q", zWhere, zConstant); db 270 third_party/sqlite/src/src/alter.c sqlite3DbFree(db, zWhere); db 286 third_party/sqlite/src/src/alter.c zWhere = whereOrName(pParse->db, zWhere, p->pFrom->zName); db 301 third_party/sqlite/src/src/alter.c const Schema *pTempSchema = pParse->db->aDb[1].pSchema; /* Temp db schema */ db 309 third_party/sqlite/src/src/alter.c sqlite3 *db = pParse->db; db 312 third_party/sqlite/src/src/alter.c zWhere = whereOrName(db, zWhere, pTrig->zName); db 317 third_party/sqlite/src/src/alter.c char *zNew = sqlite3MPrintf(pParse->db, "type='trigger' AND (%s)", zWhere); db 318 third_party/sqlite/src/src/alter.c sqlite3DbFree(pParse->db, zWhere); db 342 third_party/sqlite/src/src/alter.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); db 343 third_party/sqlite/src/src/alter.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 349 third_party/sqlite/src/src/alter.c int iTrigDb = sqlite3SchemaToIndex(pParse->db, pTrig->pSchema); db 359 third_party/sqlite/src/src/alter.c zWhere = sqlite3MPrintf(pParse->db, "tbl_name=%Q", zName); db 402 third_party/sqlite/src/src/alter.c sqlite3 *db = pParse->db; /* Database connection */ db 412 third_party/sqlite/src/src/alter.c savedDbFlags = db->flags; db 413 third_party/sqlite/src/src/alter.c if( NEVER(db->mallocFailed) ) goto exit_rename_table; db 415 third_party/sqlite/src/src/alter.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); db 419 third_party/sqlite/src/src/alter.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 420 third_party/sqlite/src/src/alter.c zDb = db->aDb[iDb].zName; db 421 third_party/sqlite/src/src/alter.c db->flags |= SQLITE_PreferBuiltin; db 424 third_party/sqlite/src/src/alter.c zName = sqlite3NameFromToken(db, pName); db 430 third_party/sqlite/src/src/alter.c if( sqlite3FindTable(db, zName, zDb) || sqlite3FindIndex(db, zName, zDb) ){ db 465 third_party/sqlite/src/src/alter.c pVTab = sqlite3GetVTable(db, pTab); db 503 third_party/sqlite/src/src/alter.c if( db->flags&SQLITE_ForeignKeys ){ db 512 third_party/sqlite/src/src/alter.c sqlite3DbFree(db, zWhere); db 546 third_party/sqlite/src/src/alter.c if( sqlite3FindTable(db, "sqlite_sequence", zDb) ){ db 564 third_party/sqlite/src/src/alter.c sqlite3DbFree(db, zWhere); db 569 third_party/sqlite/src/src/alter.c if( db->flags&SQLITE_ForeignKeys ){ db 584 third_party/sqlite/src/src/alter.c sqlite3SrcListDelete(db, pSrc); db 585 third_party/sqlite/src/src/alter.c sqlite3DbFree(db, zName); db 586 third_party/sqlite/src/src/alter.c db->flags = savedDbFlags; db 632 third_party/sqlite/src/src/alter.c sqlite3 *db; /* The database connection; */ db 634 third_party/sqlite/src/src/alter.c db = pParse->db; db 635 third_party/sqlite/src/src/alter.c if( pParse->nErr || db->mallocFailed ) return; db 639 third_party/sqlite/src/src/alter.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 640 third_party/sqlite/src/src/alter.c iDb = sqlite3SchemaToIndex(db, pNew->pSchema); db 641 third_party/sqlite/src/src/alter.c zDb = db->aDb[iDb].zName; db 645 third_party/sqlite/src/src/alter.c pTab = sqlite3FindTable(db, zTab, zDb); db 675 third_party/sqlite/src/src/alter.c if( (db->flags&SQLITE_ForeignKeys) && pNew->pFKey && pDflt ){ db 691 third_party/sqlite/src/src/alter.c if( sqlite3ValueFromExpr(db, pDflt, SQLITE_UTF8, SQLITE_AFF_NONE, &pVal) ){ db 692 third_party/sqlite/src/src/alter.c db->mallocFailed = 1; db 703 third_party/sqlite/src/src/alter.c zCol = sqlite3DbStrNDup(db, (char*)pColDef->z, pColDef->n); db 706 third_party/sqlite/src/src/alter.c int savedDbFlags = db->flags; db 710 third_party/sqlite/src/src/alter.c db->flags |= SQLITE_PreferBuiltin; db 718 third_party/sqlite/src/src/alter.c sqlite3DbFree(db, zCol); db 719 third_party/sqlite/src/src/alter.c db->flags = savedDbFlags; db 754 third_party/sqlite/src/src/alter.c sqlite3 *db = pParse->db; db 758 third_party/sqlite/src/src/alter.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 759 third_party/sqlite/src/src/alter.c if( db->mallocFailed ) goto exit_begin_add_column; db 780 third_party/sqlite/src/src/alter.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 789 third_party/sqlite/src/src/alter.c pNew = (Table*)sqlite3DbMallocZero(db, sizeof(Table)); db 797 third_party/sqlite/src/src/alter.c pNew->aCol = (Column*)sqlite3DbMallocZero(db, sizeof(Column)*nAlloc); db 798 third_party/sqlite/src/src/alter.c pNew->zName = sqlite3MPrintf(db, "sqlite_altertab_%s", pTab->zName); db 800 third_party/sqlite/src/src/alter.c db->mallocFailed = 1; db 806 third_party/sqlite/src/src/alter.c pCol->zName = sqlite3DbStrDup(db, pCol->zName); db 812 third_party/sqlite/src/src/alter.c pNew->pSchema = db->aDb[iDb].pSchema; db 823 third_party/sqlite/src/src/alter.c sqlite3SrcListDelete(db, pSrc); db 54 third_party/sqlite/src/src/analyze.c sqlite3 *db = pParse->db; db 58 third_party/sqlite/src/src/analyze.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 59 third_party/sqlite/src/src/analyze.c assert( sqlite3VdbeDb(v)==db ); db 60 third_party/sqlite/src/src/analyze.c pDb = &db->aDb[iDb]; db 65 third_party/sqlite/src/src/analyze.c if( (pStat = sqlite3FindTable(db, zTab, pDb->zName))==0 ){ db 111 third_party/sqlite/src/src/analyze.c sqlite3 *db = pParse->db; /* Database handle */ db 149 third_party/sqlite/src/src/analyze.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 150 third_party/sqlite/src/src/analyze.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 152 third_party/sqlite/src/src/analyze.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 155 third_party/sqlite/src/src/analyze.c db->aDb[iDb].zName ) ){ db 177 third_party/sqlite/src/src/analyze.c assert( iDb==sqlite3SchemaToIndex(db, pIdx->pSchema) ); db 286 third_party/sqlite/src/src/analyze.c if( db->mallocFailed ){ db 383 third_party/sqlite/src/src/analyze.c sqlite3 *db = pParse->db; db 384 third_party/sqlite/src/src/analyze.c Schema *pSchema = db->aDb[iDb].pSchema; /* Schema of database iDb */ db 394 third_party/sqlite/src/src/analyze.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 412 third_party/sqlite/src/src/analyze.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); db 413 third_party/sqlite/src/src/analyze.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 439 third_party/sqlite/src/src/analyze.c sqlite3 *db = pParse->db; db 449 third_party/sqlite/src/src/analyze.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); db 457 third_party/sqlite/src/src/analyze.c for(i=0; i<db->nDb; i++){ db 463 third_party/sqlite/src/src/analyze.c iDb = sqlite3FindDb(db, pName1); db 467 third_party/sqlite/src/src/analyze.c z = sqlite3NameFromToken(db, pName1); db 469 third_party/sqlite/src/src/analyze.c if( (pIdx = sqlite3FindIndex(db, z, 0))!=0 ){ db 474 third_party/sqlite/src/src/analyze.c sqlite3DbFree(db, z); db 481 third_party/sqlite/src/src/analyze.c zDb = db->aDb[iDb].zName; db 482 third_party/sqlite/src/src/analyze.c z = sqlite3NameFromToken(db, pTableName); db 484 third_party/sqlite/src/src/analyze.c if( (pIdx = sqlite3FindIndex(db, z, zDb))!=0 ){ db 489 third_party/sqlite/src/src/analyze.c sqlite3DbFree(db, z); db 501 third_party/sqlite/src/src/analyze.c sqlite3 *db; db 530 third_party/sqlite/src/src/analyze.c pTable = sqlite3FindTable(pInfo->db, argv[0], pInfo->zDatabase); db 535 third_party/sqlite/src/src/analyze.c pIndex = sqlite3FindIndex(pInfo->db, argv[1], pInfo->zDatabase); db 563 third_party/sqlite/src/src/analyze.c void sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx){ db 570 third_party/sqlite/src/src/analyze.c sqlite3DbFree(db, p->u.z); db 573 third_party/sqlite/src/src/analyze.c sqlite3DbFree(db, pIdx->aSample); db 576 third_party/sqlite/src/src/analyze.c UNUSED_PARAMETER(db); db 601 third_party/sqlite/src/src/analyze.c int sqlite3AnalysisLoad(sqlite3 *db, int iDb){ db 607 third_party/sqlite/src/src/analyze.c assert( iDb>=0 && iDb<db->nDb ); db 608 third_party/sqlite/src/src/analyze.c assert( db->aDb[iDb].pBt!=0 ); db 611 third_party/sqlite/src/src/analyze.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 612 third_party/sqlite/src/src/analyze.c for(i=sqliteHashFirst(&db->aDb[iDb].pSchema->idxHash);i;i=sqliteHashNext(i)){ db 615 third_party/sqlite/src/src/analyze.c sqlite3DeleteIndexSamples(db, pIdx); db 620 third_party/sqlite/src/src/analyze.c sInfo.db = db; db 621 third_party/sqlite/src/src/analyze.c sInfo.zDatabase = db->aDb[iDb].zName; db 622 third_party/sqlite/src/src/analyze.c if( sqlite3FindTable(db, "sqlite_stat1", sInfo.zDatabase)==0 ){ db 627 third_party/sqlite/src/src/analyze.c zSql = sqlite3MPrintf(db, db 632 third_party/sqlite/src/src/analyze.c rc = sqlite3_exec(db, zSql, analysisLoader, &sInfo, 0); db 633 third_party/sqlite/src/src/analyze.c sqlite3DbFree(db, zSql); db 639 third_party/sqlite/src/src/analyze.c if( rc==SQLITE_OK && !sqlite3FindTable(db, "sqlite_stat2", sInfo.zDatabase) ){ db 645 third_party/sqlite/src/src/analyze.c zSql = sqlite3MPrintf(db, db 650 third_party/sqlite/src/src/analyze.c rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0); db 651 third_party/sqlite/src/src/analyze.c sqlite3DbFree(db, zSql); db 660 third_party/sqlite/src/src/analyze.c pIdx = zIndex ? sqlite3FindIndex(db, zIndex, sInfo.zDatabase) : 0; db 670 third_party/sqlite/src/src/analyze.c db->mallocFailed = 1; db 698 third_party/sqlite/src/src/analyze.c db->mallocFailed = 1; db 713 third_party/sqlite/src/src/analyze.c db->mallocFailed = 1; db 70 third_party/sqlite/src/src/attach.c sqlite3 *db = sqlite3_context_db_handle(context); db 89 third_party/sqlite/src/src/attach.c if( db->nDb>=db->aLimit[SQLITE_LIMIT_ATTACHED]+2 ){ db 90 third_party/sqlite/src/src/attach.c zErrDyn = sqlite3MPrintf(db, "too many attached databases - max %d", db 91 third_party/sqlite/src/src/attach.c db->aLimit[SQLITE_LIMIT_ATTACHED] db 95 third_party/sqlite/src/src/attach.c if( !db->autoCommit ){ db 96 third_party/sqlite/src/src/attach.c zErrDyn = sqlite3MPrintf(db, "cannot ATTACH database within transaction"); db 99 third_party/sqlite/src/src/attach.c for(i=0; i<db->nDb; i++){ db 100 third_party/sqlite/src/src/attach.c char *z = db->aDb[i].zName; db 103 third_party/sqlite/src/src/attach.c zErrDyn = sqlite3MPrintf(db, "database %s is already in use", zName); db 111 third_party/sqlite/src/src/attach.c if( db->aDb==db->aDbStatic ){ db 112 third_party/sqlite/src/src/attach.c aNew = sqlite3DbMallocRaw(db, sizeof(db->aDb[0])*3 ); db 114 third_party/sqlite/src/src/attach.c memcpy(aNew, db->aDb, sizeof(db->aDb[0])*2); db 116 third_party/sqlite/src/src/attach.c aNew = sqlite3DbRealloc(db, db->aDb, sizeof(db->aDb[0])*(db->nDb+1) ); db 119 third_party/sqlite/src/src/attach.c db->aDb = aNew; db 120 third_party/sqlite/src/src/attach.c aNew = &db->aDb[db->nDb]; db 127 third_party/sqlite/src/src/attach.c rc = sqlite3BtreeOpen(zFile, db, &aNew->pBt, 0, db 128 third_party/sqlite/src/src/attach.c db->openFlags | SQLITE_OPEN_MAIN_DB); db 129 third_party/sqlite/src/src/attach.c db->nDb++; db 132 third_party/sqlite/src/src/attach.c zErrDyn = sqlite3MPrintf(db, "database is already attached"); db 135 third_party/sqlite/src/src/attach.c aNew->pSchema = sqlite3SchemaGet(db, aNew->pBt); db 138 third_party/sqlite/src/src/attach.c }else if( aNew->pSchema->file_format && aNew->pSchema->enc!=ENC(db) ){ db 139 third_party/sqlite/src/src/attach.c zErrDyn = sqlite3MPrintf(db, db 144 third_party/sqlite/src/src/attach.c sqlite3PagerLockingMode(pPager, db->dfltLockMode); db 146 third_party/sqlite/src/src/attach.c sqlite3BtreeSecureDelete(db->aDb[0].pBt,-1) ); db 149 third_party/sqlite/src/src/attach.c aNew->zName = sqlite3DbStrDup(db, zName); db 165 third_party/sqlite/src/src/attach.c zErrDyn = sqlite3DbStrDup(db, "Invalid key value"); db 173 third_party/sqlite/src/src/attach.c rc = sqlite3CodecAttach(db, db->nDb-1, zKey, nKey); db 178 third_party/sqlite/src/src/attach.c sqlite3CodecGetKey(db, 0, (void**)&zKey, &nKey); db 179 third_party/sqlite/src/src/attach.c if( nKey>0 || sqlite3BtreeGetReserve(db->aDb[0].pBt)>0 ){ db 180 third_party/sqlite/src/src/attach.c rc = sqlite3CodecAttach(db, db->nDb-1, zKey, nKey); db 193 third_party/sqlite/src/src/attach.c sqlite3BtreeEnterAll(db); db 194 third_party/sqlite/src/src/attach.c rc = sqlite3Init(db, &zErrDyn); db 195 third_party/sqlite/src/src/attach.c sqlite3BtreeLeaveAll(db); db 198 third_party/sqlite/src/src/attach.c int iDb = db->nDb - 1; db 200 third_party/sqlite/src/src/attach.c if( db->aDb[iDb].pBt ){ db 201 third_party/sqlite/src/src/attach.c sqlite3BtreeClose(db->aDb[iDb].pBt); db 202 third_party/sqlite/src/src/attach.c db->aDb[iDb].pBt = 0; db 203 third_party/sqlite/src/src/attach.c db->aDb[iDb].pSchema = 0; db 205 third_party/sqlite/src/src/attach.c sqlite3ResetInternalSchema(db, -1); db 206 third_party/sqlite/src/src/attach.c db->nDb = iDb; db 208 third_party/sqlite/src/src/attach.c db->mallocFailed = 1; db 209 third_party/sqlite/src/src/attach.c sqlite3DbFree(db, zErrDyn); db 210 third_party/sqlite/src/src/attach.c zErrDyn = sqlite3MPrintf(db, "out of memory"); db 212 third_party/sqlite/src/src/attach.c zErrDyn = sqlite3MPrintf(db, "unable to open database: %s", zFile); db 223 third_party/sqlite/src/src/attach.c sqlite3DbFree(db, zErrDyn); db 242 third_party/sqlite/src/src/attach.c sqlite3 *db = sqlite3_context_db_handle(context); db 250 third_party/sqlite/src/src/attach.c for(i=0; i<db->nDb; i++){ db 251 third_party/sqlite/src/src/attach.c pDb = &db->aDb[i]; db 256 third_party/sqlite/src/src/attach.c if( i>=db->nDb ){ db 264 third_party/sqlite/src/src/attach.c if( !db->autoCommit ){ db 277 third_party/sqlite/src/src/attach.c sqlite3ResetInternalSchema(db, -1); db 300 third_party/sqlite/src/src/attach.c sqlite3* db = pParse->db; db 337 third_party/sqlite/src/src/attach.c assert( v || db->mallocFailed ); db 352 third_party/sqlite/src/src/attach.c sqlite3ExprDelete(db, pFilename); db 353 third_party/sqlite/src/src/attach.c sqlite3ExprDelete(db, pDbname); db 354 third_party/sqlite/src/src/attach.c sqlite3ExprDelete(db, pKey); db 416 third_party/sqlite/src/src/attach.c sqlite3 *db; db 419 third_party/sqlite/src/src/attach.c db = pParse->db; db 420 third_party/sqlite/src/src/attach.c assert( db->nDb>iDb ); db 422 third_party/sqlite/src/src/attach.c pFix->zDb = db->aDb[iDb].zName; db 454 third_party/sqlite/src/src/attach.c pItem->zDatabase = sqlite3DbStrDup(pFix->pParse->db, zDb); db 71 third_party/sqlite/src/src/auth.c sqlite3 *db, db 75 third_party/sqlite/src/src/auth.c sqlite3_mutex_enter(db->mutex); db 76 third_party/sqlite/src/src/auth.c db->xAuth = xAuth; db 77 third_party/sqlite/src/src/auth.c db->pAuthArg = pArg; db 78 third_party/sqlite/src/src/auth.c sqlite3ExpirePreparedStatements(db); db 79 third_party/sqlite/src/src/auth.c sqlite3_mutex_leave(db->mutex); db 107 third_party/sqlite/src/src/auth.c sqlite3 *db = pParse->db; /* Database handle */ db 108 third_party/sqlite/src/src/auth.c char *zDb = db->aDb[iDb].zName; /* Name of attached database */ db 111 third_party/sqlite/src/src/auth.c rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext); db 113 third_party/sqlite/src/src/auth.c if( db->nDb>2 || iDb!=0 ){ db 140 third_party/sqlite/src/src/auth.c sqlite3 *db = pParse->db; db 147 third_party/sqlite/src/src/auth.c if( db->xAuth==0 ) return; db 148 third_party/sqlite/src/src/auth.c iDb = sqlite3SchemaToIndex(pParse->db, pSchema); db 179 third_party/sqlite/src/src/auth.c assert( iDb>=0 && iDb<db->nDb ); db 198 third_party/sqlite/src/src/auth.c sqlite3 *db = pParse->db; db 204 third_party/sqlite/src/src/auth.c if( db->init.busy || IN_DECLARE_VTAB ){ db 208 third_party/sqlite/src/src/auth.c if( db->xAuth==0 ){ db 211 third_party/sqlite/src/src/auth.c rc = db->xAuth(db->pAuthArg, code, zArg1, zArg2, zArg3, pParse->zAuthContext); db 99 third_party/sqlite/src/src/backup.c pParse->db = pDb; db 678 third_party/sqlite/src/src/backup.c b.pSrcDb = pFrom->db; db 30 third_party/sqlite/src/src/btmutex.c assert( sqlite3_mutex_held(p->db->mutex) ); db 33 third_party/sqlite/src/src/btmutex.c p->pBt->db = p->db; db 45 third_party/sqlite/src/src/btmutex.c assert( sqlite3_mutex_held(p->db->mutex) ); db 46 third_party/sqlite/src/src/btmutex.c assert( p->db==pBt->db ); db 77 third_party/sqlite/src/src/btmutex.c assert( p->pNext==0 || p->pNext->db==p->db ); db 78 third_party/sqlite/src/src/btmutex.c assert( p->pPrev==0 || p->pPrev->db==p->db ); db 86 third_party/sqlite/src/src/btmutex.c assert( sqlite3_mutex_held(p->db->mutex) ); db 90 third_party/sqlite/src/src/btmutex.c assert( (p->locked==0 && p->sharable) || p->pBt->db==p->db ); db 101 third_party/sqlite/src/src/btmutex.c p->pBt->db = p->db; db 149 third_party/sqlite/src/src/btmutex.c assert( p->sharable==0 || p->locked==0 || p->db==p->pBt->db ); db 151 third_party/sqlite/src/src/btmutex.c assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->db->mutex) ); db 187 third_party/sqlite/src/src/btmutex.c void sqlite3BtreeEnterAll(sqlite3 *db){ db 190 third_party/sqlite/src/src/btmutex.c assert( sqlite3_mutex_held(db->mutex) ); db 191 third_party/sqlite/src/src/btmutex.c for(i=0; i<db->nDb; i++){ db 192 third_party/sqlite/src/src/btmutex.c p = db->aDb[i].pBt; db 196 third_party/sqlite/src/src/btmutex.c void sqlite3BtreeLeaveAll(sqlite3 *db){ db 199 third_party/sqlite/src/src/btmutex.c assert( sqlite3_mutex_held(db->mutex) ); db 200 third_party/sqlite/src/src/btmutex.c for(i=0; i<db->nDb; i++){ db 201 third_party/sqlite/src/src/btmutex.c p = db->aDb[i].pBt; db 221 third_party/sqlite/src/src/btmutex.c int sqlite3BtreeHoldsAllMutexes(sqlite3 *db){ db 223 third_party/sqlite/src/src/btmutex.c if( !sqlite3_mutex_held(db->mutex) ){ db 226 third_party/sqlite/src/src/btmutex.c for(i=0; i<db->nDb; i++){ db 228 third_party/sqlite/src/src/btmutex.c p = db->aDb[i].pBt; db 250 third_party/sqlite/src/src/btmutex.c int sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema){ db 252 third_party/sqlite/src/src/btmutex.c assert( db!=0 ); db 253 third_party/sqlite/src/src/btmutex.c if( pSchema ) iDb = sqlite3SchemaToIndex(db, pSchema); db 254 third_party/sqlite/src/src/btmutex.c assert( iDb>=0 && iDb<db->nDb ); db 255 third_party/sqlite/src/src/btmutex.c if( !sqlite3_mutex_held(db->mutex) ) return 0; db 257 third_party/sqlite/src/src/btmutex.c p = db->aDb[iDb].pBt; db 275 third_party/sqlite/src/src/btmutex.c p->pBt->db = p->db; db 277 third_party/sqlite/src/src/btmutex.c void sqlite3BtreeEnterAll(sqlite3 *db){ db 279 third_party/sqlite/src/src/btmutex.c for(i=0; i<db->nDb; i++){ db 280 third_party/sqlite/src/src/btmutex.c Btree *p = db->aDb[i].pBt; db 282 third_party/sqlite/src/src/btmutex.c p->pBt->db = p->db; db 136 third_party/sqlite/src/src/btree.c || (eLockType==READ_LOCK && (pBtree->db->flags & SQLITE_ReadUncommitted)) db 207 third_party/sqlite/src/src/btree.c && 0==(p->pBtree->db->flags & SQLITE_ReadUncommitted) db 228 third_party/sqlite/src/src/btree.c assert( p->db!=0 ); db 229 third_party/sqlite/src/src/btree.c assert( !(p->db->flags&SQLITE_ReadUncommitted)||eLock==WRITE_LOCK||iTab==1 ); db 247 third_party/sqlite/src/src/btree.c sqlite3ConnectionBlocked(p->db, pBt->pWriter->db); db 264 third_party/sqlite/src/src/btree.c sqlite3ConnectionBlocked(p->db, pIter->pBtree->db); db 301 third_party/sqlite/src/src/btree.c assert( p->db!=0 ); db 307 third_party/sqlite/src/src/btree.c assert( 0==(p->db->flags&SQLITE_ReadUncommitted) || eLock==WRITE_LOCK ); db 1661 third_party/sqlite/src/src/btree.c assert( pBt->db ); db 1662 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(pBt->db->mutex) ); db 1663 third_party/sqlite/src/src/btree.c return sqlite3InvokeBusyHandler(&pBt->db->busyHandler); db 1692 third_party/sqlite/src/src/btree.c sqlite3 *db, /* Associated database handle */ db 1715 third_party/sqlite/src/src/btree.c || (isTempDb && sqlite3TempInMemory(db)); db 1718 third_party/sqlite/src/src/btree.c assert( db!=0 ); db 1719 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(db->mutex) ); db 1728 third_party/sqlite/src/src/btree.c if( db->flags & SQLITE_NoReadlock ){ db 1737 third_party/sqlite/src/src/btree.c pVfs = db->pVfs; db 1743 third_party/sqlite/src/src/btree.c p->db = db; db 1774 third_party/sqlite/src/src/btree.c for(iDb=db->nDb-1; iDb>=0; iDb--){ db 1775 third_party/sqlite/src/src/btree.c Btree *pExisting = db->aDb[iDb].pBt; db 1830 third_party/sqlite/src/src/btree.c pBt->db = db; db 1881 third_party/sqlite/src/src/btree.c db->mallocFailed = 0; db 1901 third_party/sqlite/src/src/btree.c for(i=0; i<db->nDb; i++){ db 1902 third_party/sqlite/src/src/btree.c if( (pSib = db->aDb[i].pBt)!=0 && pSib->sharable ){ db 2016 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(p->db->mutex) ); db 2083 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(p->db->mutex) ); db 2106 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(p->db->mutex) ); db 2122 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(p->db->mutex) ); db 2384 third_party/sqlite/src/src/btree.c if( (pBt->db->flags & SQLITE_RecoveryMode)==0 && nPage>nPageFile ){ db 2554 third_party/sqlite/src/src/btree.c pBlock = pBt->pWriter->db; db 2559 third_party/sqlite/src/src/btree.c pBlock = pIter->pBtree->db; db 2565 third_party/sqlite/src/src/btree.c sqlite3ConnectionBlocked(p->db, pBlock); db 2592 third_party/sqlite/src/src/btree.c rc = sqlite3PagerBegin(pBt->pPager,wrflag>1,sqlite3TempInMemory(p->db)); db 2651 third_party/sqlite/src/src/btree.c rc = sqlite3PagerOpenSavepoint(pBt->pPager, p->db->nSavepoint); db 3123 third_party/sqlite/src/src/btree.c if( p->inTrans>TRANS_NONE && p->db->activeVdbeCnt>1 ){ db 3356 third_party/sqlite/src/src/btree.c assert( iStatement>p->db->nSavepoint ); db 4075 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 4084 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 4322 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 4345 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 4415 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 7166 third_party/sqlite/src/src/btree.c sqlite3ConnectionBlocked(p->db, pBt->pCursor->pBtree->db); db 7931 third_party/sqlite/src/src/btree.c assert( p==0 || sqlite3_mutex_held(p->db->mutex) ); db 7965 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(p->db->mutex) ); db 7971 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(p->db->mutex) ); db 8013 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(p->db->mutex) ); db 8061 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(pCsr->pBtree->db->mutex) ); db 8103 third_party/sqlite/src/src/btree.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); db 46 third_party/sqlite/src/src/btree.h sqlite3 *db, /* Associated database connection */ db 343 third_party/sqlite/src/src/btreeInt.h sqlite3 *db; /* The database connection holding this btree */ db 405 third_party/sqlite/src/src/btreeInt.h sqlite3 *db; /* Database connection currently using this Btree */ db 81 third_party/sqlite/src/src/build.c sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes); db 90 third_party/sqlite/src/src/build.c pToplevel->db->mallocFailed = 1; db 127 third_party/sqlite/src/src/build.c sqlite3 *db; db 130 third_party/sqlite/src/src/build.c db = pParse->db; db 131 third_party/sqlite/src/src/build.c if( db->mallocFailed ) return; db 154 third_party/sqlite/src/src/build.c for(iDb=0, mask=1; iDb<db->nDb; mask<<=1, iDb++){ db 158 third_party/sqlite/src/src/build.c if( db->init.busy==0 ){ db 159 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 162 third_party/sqlite/src/src/build.c db->aDb[iDb].pSchema->iGeneration); db 169 third_party/sqlite/src/src/build.c char *vtab = (char *)sqlite3GetVTable(db, pParse->apVtabLock[i]); db 194 third_party/sqlite/src/src/build.c if( v && ALWAYS(pParse->nErr==0) && !db->mallocFailed ){ db 196 third_party/sqlite/src/src/build.c FILE *trace = (db->flags & SQLITE_VdbeTrace)!=0 ? stdout : 0; db 235 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 242 third_party/sqlite/src/src/build.c zSql = sqlite3VMPrintf(db, zFormat, ap); db 251 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zErrMsg); db 252 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zSql); db 269 third_party/sqlite/src/src/build.c Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase){ db 276 third_party/sqlite/src/src/build.c assert( zDatabase!=0 || sqlite3BtreeHoldsAllMutexes(db) ); db 277 third_party/sqlite/src/src/build.c for(i=OMIT_TEMPDB; i<db->nDb; i++){ db 279 third_party/sqlite/src/src/build.c if( zDatabase!=0 && sqlite3StrICmp(zDatabase, db->aDb[j].zName) ) continue; db 280 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); db 281 third_party/sqlite/src/src/build.c p = sqlite3HashFind(&db->aDb[j].pSchema->tblHash, zName, nName); db 311 third_party/sqlite/src/src/build.c p = sqlite3FindTable(pParse->db, zName, zDbase); db 336 third_party/sqlite/src/src/build.c Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){ db 341 third_party/sqlite/src/src/build.c assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); db 342 third_party/sqlite/src/src/build.c for(i=OMIT_TEMPDB; i<db->nDb; i++){ db 344 third_party/sqlite/src/src/build.c Schema *pSchema = db->aDb[j].pSchema; db 346 third_party/sqlite/src/src/build.c if( zDb && sqlite3StrICmp(zDb, db->aDb[j].zName) ) continue; db 347 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); db 357 third_party/sqlite/src/src/build.c static void freeIndex(sqlite3 *db, Index *p){ db 359 third_party/sqlite/src/src/build.c sqlite3DeleteIndexSamples(db, p); db 361 third_party/sqlite/src/src/build.c sqlite3DbFree(db, p->zColAff); db 362 third_party/sqlite/src/src/build.c sqlite3DbFree(db, p); db 371 third_party/sqlite/src/src/build.c void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName){ db 376 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 377 third_party/sqlite/src/src/build.c pHash = &db->aDb[iDb].pSchema->idxHash; db 393 third_party/sqlite/src/src/build.c freeIndex(db, pIndex); db 395 third_party/sqlite/src/src/build.c db->flags |= SQLITE_InternChanges; db 409 third_party/sqlite/src/src/build.c void sqlite3ResetInternalSchema(sqlite3 *db, int iDb){ db 411 third_party/sqlite/src/src/build.c assert( iDb<db->nDb ); db 415 third_party/sqlite/src/src/build.c Db *pDb = &db->aDb[iDb]; db 416 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 425 third_party/sqlite/src/src/build.c pDb = &db->aDb[1]; db 434 third_party/sqlite/src/src/build.c sqlite3BtreeEnterAll(db); db 435 third_party/sqlite/src/src/build.c for(i=0; i<db->nDb; i++){ db 436 third_party/sqlite/src/src/build.c Db *pDb = &db->aDb[i]; db 441 third_party/sqlite/src/src/build.c db->flags &= ~SQLITE_InternChanges; db 442 third_party/sqlite/src/src/build.c sqlite3VtabUnlockList(db); db 443 third_party/sqlite/src/src/build.c sqlite3BtreeLeaveAll(db); db 451 third_party/sqlite/src/src/build.c for(i=j=2; i<db->nDb; i++){ db 452 third_party/sqlite/src/src/build.c struct Db *pDb = &db->aDb[i]; db 454 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pDb->zName); db 459 third_party/sqlite/src/src/build.c db->aDb[j] = db->aDb[i]; db 463 third_party/sqlite/src/src/build.c memset(&db->aDb[j], 0, (db->nDb-j)*sizeof(db->aDb[j])); db 464 third_party/sqlite/src/src/build.c db->nDb = j; db 465 third_party/sqlite/src/src/build.c if( db->nDb<=2 && db->aDb!=db->aDbStatic ){ db 466 third_party/sqlite/src/src/build.c memcpy(db->aDbStatic, db->aDb, 2*sizeof(db->aDb[0])); db 467 third_party/sqlite/src/src/build.c sqlite3DbFree(db, db->aDb); db 468 third_party/sqlite/src/src/build.c db->aDb = db->aDbStatic; db 475 third_party/sqlite/src/src/build.c void sqlite3CommitInternalChanges(sqlite3 *db){ db 476 third_party/sqlite/src/src/build.c db->flags &= ~SQLITE_InternChanges; db 483 third_party/sqlite/src/src/build.c static void sqliteDeleteColumnNames(sqlite3 *db, Table *pTable){ db 489 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pCol->zName); db 490 third_party/sqlite/src/src/build.c sqlite3ExprDelete(db, pCol->pDflt); db 491 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pCol->zDflt); db 492 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pCol->zType); db 493 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pCol->zColl); db 495 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pTable->aCol); db 508 third_party/sqlite/src/src/build.c void sqlite3DeleteTable(sqlite3 *db, Table *pTable){ db 515 third_party/sqlite/src/src/build.c if( ((!db || db->pnBytesFreed==0) && (--pTable->nRef)>0) ) return; db 521 third_party/sqlite/src/src/build.c if( !db || db->pnBytesFreed==0 ){ db 526 third_party/sqlite/src/src/build.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) ); db 529 third_party/sqlite/src/src/build.c freeIndex(db, pIndex); db 533 third_party/sqlite/src/src/build.c sqlite3FkDelete(db, pTable); db 537 third_party/sqlite/src/src/build.c sqliteDeleteColumnNames(db, pTable); db 538 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pTable->zName); db 539 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pTable->zColAff); db 540 third_party/sqlite/src/src/build.c sqlite3SelectDelete(db, pTable->pSelect); db 542 third_party/sqlite/src/src/build.c sqlite3ExprDelete(db, pTable->pCheck); db 545 third_party/sqlite/src/src/build.c sqlite3VtabClear(db, pTable); db 547 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pTable); db 554 third_party/sqlite/src/src/build.c void sqlite3UnlinkAndDeleteTable(sqlite3 *db, int iDb, const char *zTabName){ db 558 third_party/sqlite/src/src/build.c assert( db!=0 ); db 559 third_party/sqlite/src/src/build.c assert( iDb>=0 && iDb<db->nDb ); db 561 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 563 third_party/sqlite/src/src/build.c pDb = &db->aDb[iDb]; db 566 third_party/sqlite/src/src/build.c sqlite3DeleteTable(db, p); db 567 third_party/sqlite/src/src/build.c db->flags |= SQLITE_InternChanges; db 583 third_party/sqlite/src/src/build.c char *sqlite3NameFromToken(sqlite3 *db, Token *pName){ db 586 third_party/sqlite/src/src/build.c zName = sqlite3DbStrNDup(db, (char*)pName->z, pName->n); db 614 third_party/sqlite/src/src/build.c int sqlite3FindDbName(sqlite3 *db, const char *zName){ db 619 third_party/sqlite/src/src/build.c for(i=(db->nDb-1), pDb=&db->aDb[i]; i>=0; i--, pDb--){ db 635 third_party/sqlite/src/src/build.c int sqlite3FindDb(sqlite3 *db, Token *pName){ db 638 third_party/sqlite/src/src/build.c zName = sqlite3NameFromToken(db, pName); db 639 third_party/sqlite/src/src/build.c i = sqlite3FindDbName(db, zName); db 640 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zName); db 667 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 670 third_party/sqlite/src/src/build.c if( db->init.busy ) { db 676 third_party/sqlite/src/src/build.c iDb = sqlite3FindDb(db, pName1); db 683 third_party/sqlite/src/src/build.c assert( db->init.iDb==0 || db->init.busy ); db 684 third_party/sqlite/src/src/build.c iDb = db->init.iDb; db 698 third_party/sqlite/src/src/build.c if( !pParse->db->init.busy && pParse->nested==0 db 699 third_party/sqlite/src/src/build.c && (pParse->db->flags & SQLITE_WriteSchema)==0 db 734 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 767 third_party/sqlite/src/src/build.c zName = sqlite3NameFromToken(db, pName); db 772 third_party/sqlite/src/src/build.c if( db->init.iDb==1 ) isTemp = 1; db 777 third_party/sqlite/src/src/build.c char *zDb = db->aDb[iDb].zName; db 808 third_party/sqlite/src/src/build.c char *zDb = db->aDb[iDb].zName; db 812 third_party/sqlite/src/src/build.c pTable = sqlite3FindTable(db, zName, zDb); db 817 third_party/sqlite/src/src/build.c assert( !db->init.busy ); db 822 third_party/sqlite/src/src/build.c if( sqlite3FindIndex(db, zName, zDb)!=0 ){ db 828 third_party/sqlite/src/src/build.c pTable = sqlite3DbMallocZero(db, sizeof(Table)); db 830 third_party/sqlite/src/src/build.c db->mallocFailed = 1; db 837 third_party/sqlite/src/src/build.c pTable->pSchema = db->aDb[iDb].pSchema; db 849 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 862 third_party/sqlite/src/src/build.c if( !db->init.busy && (v = sqlite3GetVdbe(pParse))!=0 ){ db 883 third_party/sqlite/src/src/build.c fileFormat = (db->flags & SQLITE_LegacyFileFmt)!=0 ? db 887 third_party/sqlite/src/src/build.c sqlite3VdbeAddOp2(v, OP_Integer, ENC(db), reg3); db 921 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zName); db 951 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 954 third_party/sqlite/src/src/build.c if( p->nCol+1>db->aLimit[SQLITE_LIMIT_COLUMN] ){ db 959 third_party/sqlite/src/src/build.c z = sqlite3NameFromToken(db, pName); db 964 third_party/sqlite/src/src/build.c sqlite3DbFree(db, z); db 970 third_party/sqlite/src/src/build.c aNew = sqlite3DbRealloc(db,p->aCol,(p->nCol+8)*sizeof(p->aCol[0])); db 972 third_party/sqlite/src/src/build.c sqlite3DbFree(db, z); db 1080 third_party/sqlite/src/src/build.c pCol->zType = sqlite3NameFromToken(pParse->db, pType); db 1097 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 1109 third_party/sqlite/src/src/build.c sqlite3ExprDelete(db, pCol->pDflt); db 1110 third_party/sqlite/src/src/build.c pCol->pDflt = sqlite3ExprDup(db, pSpan->pExpr, EXPRDUP_REDUCE); db 1111 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pCol->zDflt); db 1112 third_party/sqlite/src/src/build.c pCol->zDflt = sqlite3DbStrNDup(db, (char*)pSpan->zStart, db 1116 third_party/sqlite/src/src/build.c sqlite3ExprDelete(db, pSpan->pExpr); db 1194 third_party/sqlite/src/src/build.c sqlite3ExprListDelete(pParse->db, pList); db 1205 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 1209 third_party/sqlite/src/src/build.c pTab->pCheck = sqlite3ExprAnd(db, pTab->pCheck, pCheckExpr); db 1213 third_party/sqlite/src/src/build.c sqlite3ExprDelete(db, pCheckExpr); db 1225 third_party/sqlite/src/src/build.c sqlite3 *db; db 1229 third_party/sqlite/src/src/build.c db = pParse->db; db 1230 third_party/sqlite/src/src/build.c zColl = sqlite3NameFromToken(db, pToken); db 1248 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zColl); db 1273 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 1274 third_party/sqlite/src/src/build.c u8 enc = ENC(db); db 1275 third_party/sqlite/src/src/build.c u8 initbusy = db->init.busy; db 1278 third_party/sqlite/src/src/build.c pColl = sqlite3FindCollSeq(db, enc, zName, initbusy); db 1280 third_party/sqlite/src/src/build.c pColl = sqlite3GetCollSeq(db, enc, pColl, zName); db 1308 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 1310 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 1311 third_party/sqlite/src/src/build.c sqlite3VdbeAddOp2(v, OP_Integer, db->aDb[iDb].pSchema->schema_cookie+1, r1); db 1373 third_party/sqlite/src/src/build.c static char *createTableStmt(sqlite3 *db, Table *p){ db 1395 third_party/sqlite/src/src/build.c db->mallocFailed = 1; db 1464 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 1467 third_party/sqlite/src/src/build.c if( (pEnd==0 && pSelect==0) || db->mallocFailed ){ db 1473 third_party/sqlite/src/src/build.c assert( !db->init.busy || !pSelect ); db 1475 third_party/sqlite/src/src/build.c iDb = sqlite3SchemaToIndex(db, p->pSchema); db 1505 third_party/sqlite/src/src/build.c if( db->init.busy ){ db 1506 third_party/sqlite/src/src/build.c p->tnum = db->init.newTnum; db 1515 third_party/sqlite/src/src/build.c if( !db->init.busy ){ db 1574 third_party/sqlite/src/src/build.c sqlite3DeleteTable(db, pSelTab); db 1580 third_party/sqlite/src/src/build.c zStmt = createTableStmt(db, p); db 1583 third_party/sqlite/src/src/build.c zStmt = sqlite3MPrintf(db, db 1596 third_party/sqlite/src/src/build.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), db 1604 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zStmt); db 1612 third_party/sqlite/src/src/build.c Db *pDb = &db->aDb[iDb]; db 1613 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 1625 third_party/sqlite/src/src/build.c sqlite3MPrintf(db, "tbl_name='%q'",p->zName), P4_DYNAMIC); db 1631 third_party/sqlite/src/src/build.c if( db->init.busy ){ db 1634 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 1639 third_party/sqlite/src/src/build.c db->mallocFailed = 1; db 1643 third_party/sqlite/src/src/build.c db->nTable++; db 1644 third_party/sqlite/src/src/build.c db->flags |= SQLITE_InternChanges; db 1681 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 1685 third_party/sqlite/src/src/build.c sqlite3SelectDelete(db, pSelect); db 1691 third_party/sqlite/src/src/build.c sqlite3SelectDelete(db, pSelect); db 1695 third_party/sqlite/src/src/build.c iDb = sqlite3SchemaToIndex(db, p->pSchema); db 1699 third_party/sqlite/src/src/build.c sqlite3SelectDelete(db, pSelect); db 1708 third_party/sqlite/src/src/build.c p->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE); db 1709 third_party/sqlite/src/src/build.c sqlite3SelectDelete(db, pSelect); db 1710 third_party/sqlite/src/src/build.c if( db->mallocFailed ){ db 1713 third_party/sqlite/src/src/build.c if( !db->init.busy ){ db 1748 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; /* Database connection for malloc errors */ db 1795 third_party/sqlite/src/src/build.c pSel = sqlite3SelectDup(db, pTable->pSelect, 0); db 1797 third_party/sqlite/src/src/build.c u8 enableLookaside = db->lookaside.bEnabled; db 1801 third_party/sqlite/src/src/build.c db->lookaside.bEnabled = 0; db 1803 third_party/sqlite/src/src/build.c xAuth = db->xAuth; db 1804 third_party/sqlite/src/src/build.c db->xAuth = 0; db 1806 third_party/sqlite/src/src/build.c db->xAuth = xAuth; db 1810 third_party/sqlite/src/src/build.c db->lookaside.bEnabled = enableLookaside; db 1818 third_party/sqlite/src/src/build.c sqlite3DeleteTable(db, pSelTab); db 1819 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, 0, pTable->pSchema) ); db 1825 third_party/sqlite/src/src/build.c sqlite3SelectDelete(db, pSel); db 1838 third_party/sqlite/src/src/build.c static void sqliteViewResetAll(sqlite3 *db, int idx){ db 1840 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, idx, 0) ); db 1841 third_party/sqlite/src/src/build.c if( !DbHasProperty(db, idx, DB_UnresetViews) ) return; db 1842 third_party/sqlite/src/src/build.c for(i=sqliteHashFirst(&db->aDb[idx].pSchema->tblHash); i;i=sqliteHashNext(i)){ db 1845 third_party/sqlite/src/src/build.c sqliteDeleteColumnNames(db, pTab); db 1850 third_party/sqlite/src/src/build.c DbClearProperty(db, idx, DB_UnresetViews); db 1874 third_party/sqlite/src/src/build.c void sqlite3RootPageMoved(sqlite3 *db, int iDb, int iFrom, int iTo){ db 1879 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 1880 third_party/sqlite/src/src/build.c pDb = &db->aDb[iDb]; db 1921 third_party/sqlite/src/src/build.c pParse->db->aDb[iDb].zName, SCHEMA_TABLE(iDb), iTable, r1, r1); db 1935 third_party/sqlite/src/src/build.c int iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 1977 third_party/sqlite/src/src/build.c int iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 1992 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 1995 third_party/sqlite/src/src/build.c if( db->mallocFailed ){ db 2000 third_party/sqlite/src/src/build.c if( noErr ) db->suppressErr++; db 2003 third_party/sqlite/src/src/build.c if( noErr ) db->suppressErr--; db 2009 third_party/sqlite/src/src/build.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 2010 third_party/sqlite/src/src/build.c assert( iDb>=0 && iDb<db->nDb ); db 2022 third_party/sqlite/src/src/build.c const char *zDb = db->aDb[iDb].zName; db 2036 third_party/sqlite/src/src/build.c zArg2 = sqlite3GetVTable(db, pTab)->pMod->zName; db 2078 third_party/sqlite/src/src/build.c Db *pDb = &db->aDb[iDb]; db 2095 third_party/sqlite/src/src/build.c pTrigger->pSchema==db->aDb[1].pSchema ); db 2126 third_party/sqlite/src/src/build.c if( sqlite3FindTable(db, "sqlite_stat1", db->aDb[iDb].zName) ){ db 2145 third_party/sqlite/src/src/build.c sqliteViewResetAll(db, iDb); db 2148 third_party/sqlite/src/src/build.c sqlite3SrcListDelete(db, pName); db 2174 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 2210 third_party/sqlite/src/src/build.c pFKey = sqlite3DbMallocZero(db, nByte ); db 2255 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, 0, p->pSchema) ); db 2260 third_party/sqlite/src/src/build.c db->mallocFailed = 1; db 2275 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pFKey); db 2277 third_party/sqlite/src/src/build.c sqlite3ExprListDelete(db, pFromCol); db 2278 third_party/sqlite/src/src/build.c sqlite3ExprListDelete(db, pToCol); db 2319 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; /* The database connection */ db 2320 third_party/sqlite/src/src/build.c int iDb = sqlite3SchemaToIndex(db, pIndex->pSchema); db 2324 third_party/sqlite/src/src/build.c db->aDb[iDb].zName ) ){ db 2414 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 2425 third_party/sqlite/src/src/build.c if( db->mallocFailed || IN_DECLARE_VTAB ){ db 2450 third_party/sqlite/src/src/build.c if( !db->init.busy ){ db 2452 third_party/sqlite/src/src/build.c if( pName2->n==0 && pTab && pTab->pSchema==db->aDb[1].pSchema ){ db 2467 third_party/sqlite/src/src/build.c if( !pTab || db->mallocFailed ) goto exit_create_index; db 2468 third_party/sqlite/src/src/build.c assert( db->aDb[iDb].pSchema==pTab->pSchema ); db 2473 third_party/sqlite/src/src/build.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 2475 third_party/sqlite/src/src/build.c pDb = &db->aDb[iDb]; db 2511 third_party/sqlite/src/src/build.c zName = sqlite3NameFromToken(db, pName); db 2516 third_party/sqlite/src/src/build.c if( !db->init.busy ){ db 2517 third_party/sqlite/src/src/build.c if( sqlite3FindTable(db, zName, 0)!=0 ){ db 2522 third_party/sqlite/src/src/build.c if( sqlite3FindIndex(db, zName, pDb->zName)!=0 ){ db 2526 third_party/sqlite/src/src/build.c assert( !db->init.busy ); db 2535 third_party/sqlite/src/src/build.c zName = sqlite3MPrintf(db, "sqlite_autoindex_%s_%d", pTab->zName, n); db 2590 third_party/sqlite/src/src/build.c pIndex = sqlite3DbMallocZero(db, db 2599 third_party/sqlite/src/src/build.c if( db->mallocFailed ){ db 2613 third_party/sqlite/src/src/build.c pIndex->pSchema = db->aDb[iDb].pSchema; db 2614 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 2667 third_party/sqlite/src/src/build.c zColl = db->pDfltColl->zName; db 2670 third_party/sqlite/src/src/build.c if( !db->init.busy && !sqlite3LocateCollSeq(pParse, zColl) ){ db 2742 third_party/sqlite/src/src/build.c if( db->init.busy ){ db 2744 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) ); db 2750 third_party/sqlite/src/src/build.c db->mallocFailed = 1; db 2753 third_party/sqlite/src/src/build.c db->flags |= SQLITE_InternChanges; db 2755 third_party/sqlite/src/src/build.c pIndex->tnum = db->init.newTnum; db 2794 third_party/sqlite/src/src/build.c zStmt = sqlite3MPrintf(db, "CREATE%s INDEX %.*s", db 2808 third_party/sqlite/src/src/build.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), db 2814 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zStmt); db 2823 third_party/sqlite/src/src/build.c sqlite3MPrintf(db, "name='%q' AND type='index'", pIndex->zName), db 2835 third_party/sqlite/src/src/build.c if( db->init.busy || pTblName==0 ){ db 2855 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pIndex->zColAff); db 2856 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pIndex); db 2858 third_party/sqlite/src/src/build.c sqlite3ExprListDelete(db, pList); db 2859 third_party/sqlite/src/src/build.c sqlite3SrcListDelete(db, pTblName); db 2860 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zName); db 2906 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 2910 third_party/sqlite/src/src/build.c if( db->mallocFailed ){ db 2917 third_party/sqlite/src/src/build.c pIndex = sqlite3FindIndex(db, pName->a[0].zName, pName->a[0].zDatabase); db 2932 third_party/sqlite/src/src/build.c iDb = sqlite3SchemaToIndex(db, pIndex->pSchema); db 2937 third_party/sqlite/src/src/build.c const char *zDb = db->aDb[iDb].zName; db 2955 third_party/sqlite/src/src/build.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), db 2958 third_party/sqlite/src/src/build.c if( sqlite3FindTable(db, "sqlite_stat1", db->aDb[iDb].zName) ){ db 2961 third_party/sqlite/src/src/build.c db->aDb[iDb].zName, pIndex->zName db 2970 third_party/sqlite/src/src/build.c sqlite3SrcListDelete(db, pName); db 2989 third_party/sqlite/src/src/build.c sqlite3 *db, /* Connection to notify of malloc failures */ db 3002 third_party/sqlite/src/src/build.c pNew = sqlite3DbRealloc(db, pArray, newSize*szEntry); db 3007 third_party/sqlite/src/src/build.c *pnAlloc = sqlite3DbMallocSize(db, pNew)/szEntry; db 3023 third_party/sqlite/src/src/build.c IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){ db 3026 third_party/sqlite/src/src/build.c pList = sqlite3DbMallocZero(db, sizeof(IdList) ); db 3031 third_party/sqlite/src/src/build.c db, db 3040 third_party/sqlite/src/src/build.c sqlite3IdListDelete(db, pList); db 3043 third_party/sqlite/src/src/build.c pList->a[i].zName = sqlite3NameFromToken(db, pToken); db 3050 third_party/sqlite/src/src/build.c void sqlite3IdListDelete(sqlite3 *db, IdList *pList){ db 3054 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pList->a[i].zName); db 3056 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pList->a); db 3057 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pList); db 3093 third_party/sqlite/src/src/build.c sqlite3 *db, /* Database connection to notify of OOM errors */ db 3111 third_party/sqlite/src/src/build.c pNew = sqlite3DbRealloc(db, pSrc, db 3114 third_party/sqlite/src/src/build.c assert( db->mallocFailed ); db 3118 third_party/sqlite/src/src/build.c nGot = (sqlite3DbMallocSize(db, pNew) - sizeof(*pSrc))/sizeof(pSrc->a[0])+1; db 3175 third_party/sqlite/src/src/build.c sqlite3 *db, /* Connection to notify of malloc failures */ db 3183 third_party/sqlite/src/src/build.c pList = sqlite3DbMallocZero(db, sizeof(SrcList) ); db 3187 third_party/sqlite/src/src/build.c pList = sqlite3SrcListEnlarge(db, pList, 1, pList->nSrc); db 3188 third_party/sqlite/src/src/build.c if( db->mallocFailed ){ db 3189 third_party/sqlite/src/src/build.c sqlite3SrcListDelete(db, pList); db 3201 third_party/sqlite/src/src/build.c pItem->zName = sqlite3NameFromToken(db, pTable); db 3202 third_party/sqlite/src/src/build.c pItem->zDatabase = sqlite3NameFromToken(db, pDatabase); db 3212 third_party/sqlite/src/src/build.c assert(pList || pParse->db->mallocFailed ); db 3227 third_party/sqlite/src/src/build.c void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){ db 3232 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pItem->zDatabase); db 3233 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pItem->zName); db 3234 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pItem->zAlias); db 3235 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pItem->zIndex); db 3236 third_party/sqlite/src/src/build.c sqlite3DeleteTable(db, pItem->pTab); db 3237 third_party/sqlite/src/src/build.c sqlite3SelectDelete(db, pItem->pSelect); db 3238 third_party/sqlite/src/src/build.c sqlite3ExprDelete(db, pItem->pOn); db 3239 third_party/sqlite/src/src/build.c sqlite3IdListDelete(db, pItem->pUsing); db 3241 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pList); db 3271 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 3278 third_party/sqlite/src/src/build.c p = sqlite3SrcListAppend(db, p, pTable, pDatabase); db 3285 third_party/sqlite/src/src/build.c pItem->zAlias = sqlite3NameFromToken(db, pAlias); db 3294 third_party/sqlite/src/src/build.c sqlite3ExprDelete(db, pOn); db 3295 third_party/sqlite/src/src/build.c sqlite3IdListDelete(db, pUsing); db 3296 third_party/sqlite/src/src/build.c sqlite3SelectDelete(db, pSubquery); db 3314 third_party/sqlite/src/src/build.c pItem->zIndex = sqlite3NameFromToken(pParse->db, pIndexedBy); db 3348 third_party/sqlite/src/src/build.c sqlite3 *db; db 3353 third_party/sqlite/src/src/build.c db = pParse->db; db 3354 third_party/sqlite/src/src/build.c assert( db!=0 ); db 3362 third_party/sqlite/src/src/build.c for(i=0; i<db->nDb; i++){ db 3374 third_party/sqlite/src/src/build.c sqlite3 *db; db 3378 third_party/sqlite/src/src/build.c db = pParse->db; db 3379 third_party/sqlite/src/src/build.c assert( db!=0 ); db 3394 third_party/sqlite/src/src/build.c sqlite3 *db; db 3398 third_party/sqlite/src/src/build.c db = pParse->db; db 3399 third_party/sqlite/src/src/build.c assert( db!=0 ); db 3415 third_party/sqlite/src/src/build.c char *zName = sqlite3NameFromToken(pParse->db, pName); db 3423 third_party/sqlite/src/src/build.c sqlite3DbFree(pParse->db, zName); db 3435 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 3436 third_party/sqlite/src/src/build.c if( db->aDb[1].pBt==0 && !pParse->explain ){ db 3446 third_party/sqlite/src/src/build.c rc = sqlite3BtreeOpen(0, db, &pBt, 0, flags); db 3453 third_party/sqlite/src/src/build.c db->aDb[1].pBt = pBt; db 3454 third_party/sqlite/src/src/build.c assert( db->aDb[1].pSchema ); db 3455 third_party/sqlite/src/src/build.c if( SQLITE_NOMEM==sqlite3BtreeSetPageSize(pBt, db->nextPagesize, -1, 0) ){ db 3456 third_party/sqlite/src/src/build.c db->mallocFailed = 1; db 3494 third_party/sqlite/src/src/build.c sqlite3 *db = pToplevel->db; db 3497 third_party/sqlite/src/src/build.c assert( iDb<db->nDb ); db 3498 third_party/sqlite/src/src/build.c assert( db->aDb[iDb].pBt!=0 || iDb==1 ); db 3500 third_party/sqlite/src/src/build.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 3504 third_party/sqlite/src/src/build.c pToplevel->cookieValue[iDb] = db->aDb[iDb].pSchema->schema_cookie; db 3517 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 3519 third_party/sqlite/src/src/build.c for(i=0; i<db->nDb; i++){ db 3520 third_party/sqlite/src/src/build.c Db *pDb = &db->aDb[i]; db 3622 third_party/sqlite/src/src/build.c int iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 3639 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; /* The database connection */ db 3643 third_party/sqlite/src/src/build.c assert( sqlite3BtreeHoldsAllMutexes(db) ); /* Needed for schema access */ db 3644 third_party/sqlite/src/src/build.c for(iDb=0, pDb=db->aDb; iDb<db->nDb; iDb++, pDb++){ db 3675 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; /* The database connection */ db 3690 third_party/sqlite/src/src/build.c zColl = sqlite3NameFromToken(pParse->db, pName1); db 3692 third_party/sqlite/src/src/build.c pColl = sqlite3FindCollSeq(db, ENC(db), zColl, 0); db 3695 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zColl); db 3698 third_party/sqlite/src/src/build.c sqlite3DbFree(db, zColl); db 3702 third_party/sqlite/src/src/build.c z = sqlite3NameFromToken(db, pObjName); db 3704 third_party/sqlite/src/src/build.c zDb = db->aDb[iDb].zName; db 3705 third_party/sqlite/src/src/build.c pTab = sqlite3FindTable(db, z, zDb); db 3708 third_party/sqlite/src/src/build.c sqlite3DbFree(db, z); db 3711 third_party/sqlite/src/src/build.c pIndex = sqlite3FindIndex(db, z, zDb); db 3712 third_party/sqlite/src/src/build.c sqlite3DbFree(db, z); db 3736 third_party/sqlite/src/src/build.c sqlite3 *db = pParse->db; db 3737 third_party/sqlite/src/src/build.c KeyInfo *pKey = (KeyInfo *)sqlite3DbMallocZero(db, nBytes); db 3740 third_party/sqlite/src/src/build.c pKey->db = pParse->db; db 3753 third_party/sqlite/src/src/build.c sqlite3DbFree(db, pKey); db 23 third_party/sqlite/src/src/callback.c static void callCollNeeded(sqlite3 *db, int enc, const char *zName){ db 24 third_party/sqlite/src/src/callback.c assert( !db->xCollNeeded || !db->xCollNeeded16 ); db 25 third_party/sqlite/src/src/callback.c if( db->xCollNeeded ){ db 26 third_party/sqlite/src/src/callback.c char *zExternal = sqlite3DbStrDup(db, zName); db 28 third_party/sqlite/src/src/callback.c db->xCollNeeded(db->pCollNeededArg, db, enc, zExternal); db 29 third_party/sqlite/src/src/callback.c sqlite3DbFree(db, zExternal); db 32 third_party/sqlite/src/src/callback.c if( db->xCollNeeded16 ){ db 34 third_party/sqlite/src/src/callback.c sqlite3_value *pTmp = sqlite3ValueNew(db); db 38 third_party/sqlite/src/src/callback.c db->xCollNeeded16(db->pCollNeededArg, db, (int)ENC(db), zExternal); db 52 third_party/sqlite/src/src/callback.c static int synthCollSeq(sqlite3 *db, CollSeq *pColl){ db 58 third_party/sqlite/src/src/callback.c pColl2 = sqlite3FindCollSeq(db, aEnc[i], z, 0); db 83 third_party/sqlite/src/src/callback.c sqlite3* db, /* The database connection */ db 92 third_party/sqlite/src/src/callback.c p = sqlite3FindCollSeq(db, enc, zName, 0); db 98 third_party/sqlite/src/src/callback.c callCollNeeded(db, enc, zName); db 99 third_party/sqlite/src/src/callback.c p = sqlite3FindCollSeq(db, enc, zName, 0); db 101 third_party/sqlite/src/src/callback.c if( p && !p->xCmp && synthCollSeq(db, p) ){ db 122 third_party/sqlite/src/src/callback.c sqlite3 *db = pParse->db; db 123 third_party/sqlite/src/src/callback.c CollSeq *p = sqlite3GetCollSeq(db, ENC(db), pColl, zName); db 150 third_party/sqlite/src/src/callback.c sqlite3 *db, /* Database connection */ db 156 third_party/sqlite/src/src/callback.c pColl = sqlite3HashFind(&db->aCollSeq, zName, nName); db 159 third_party/sqlite/src/src/callback.c pColl = sqlite3DbMallocZero(db, 3*sizeof(*pColl) + nName + 1 ); db 170 third_party/sqlite/src/src/callback.c pDel = sqlite3HashInsert(&db->aCollSeq, pColl[0].zName, nName, pColl); db 178 third_party/sqlite/src/src/callback.c db->mallocFailed = 1; db 179 third_party/sqlite/src/src/callback.c sqlite3DbFree(db, pDel); db 203 third_party/sqlite/src/src/callback.c sqlite3 *db, db 210 third_party/sqlite/src/src/callback.c pColl = findCollSeqEntry(db, zName, create); db 212 third_party/sqlite/src/src/callback.c pColl = db->pDfltColl; db 326 third_party/sqlite/src/src/callback.c sqlite3 *db, /* An open database */ db 340 third_party/sqlite/src/src/callback.c h = (sqlite3UpperToLower[(u8)zName[0]] + nName) % ArraySize(db->aFunc.a); db 344 third_party/sqlite/src/src/callback.c p = functionSearch(&db->aFunc, h, zName, nName); db 366 third_party/sqlite/src/src/callback.c if( !createFlag && (pBest==0 || (db->flags & SQLITE_PreferBuiltin)!=0) ){ db 385 third_party/sqlite/src/src/callback.c (pBest = sqlite3DbMallocZero(db, sizeof(*pBest)+nName+1))!=0 ){ db 391 third_party/sqlite/src/src/callback.c sqlite3FuncDefInsert(&db->aFunc, pBest); db 440 third_party/sqlite/src/src/callback.c Schema *sqlite3SchemaGet(sqlite3 *db, Btree *pBt){ db 448 third_party/sqlite/src/src/callback.c db->mallocFailed = 1; db 311 third_party/sqlite/src/src/date.c sqlite3 *db = sqlite3_context_db_handle(context); db 312 third_party/sqlite/src/src/date.c sqlite3OsCurrentTimeInt64(db->pVfs, &p->iJD); db 850 third_party/sqlite/src/src/date.c sqlite3 *db; db 854 third_party/sqlite/src/src/date.c db = sqlite3_context_db_handle(context); db 890 third_party/sqlite/src/src/date.c testcase( n==(u64)db->aLimit[SQLITE_LIMIT_LENGTH]+1 ); db 891 third_party/sqlite/src/src/date.c testcase( n==(u64)db->aLimit[SQLITE_LIMIT_LENGTH] ); db 894 third_party/sqlite/src/src/date.c }else if( n>(u64)db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 898 third_party/sqlite/src/src/date.c z = sqlite3DbMallocRaw(db, (int)n); db 1034 third_party/sqlite/src/src/date.c sqlite3 *db; db 1041 third_party/sqlite/src/src/date.c db = sqlite3_context_db_handle(context); db 1042 third_party/sqlite/src/src/date.c sqlite3OsCurrentTimeInt64(db->pVfs, &iT); db 36 third_party/sqlite/src/src/delete.c sqlite3DeleteTable(pParse->db, pItem->pTab); db 64 third_party/sqlite/src/src/delete.c && sqlite3GetVTable(pParse->db, pTab)->pMod->pModule->xUpdate==0 ) db 66 third_party/sqlite/src/src/delete.c && (pParse->db->flags & SQLITE_WriteSchema)==0 db 97 third_party/sqlite/src/src/delete.c sqlite3 *db = pParse->db; db 99 third_party/sqlite/src/src/delete.c pDup = sqlite3SelectDup(db, pView->pSelect, 0); db 103 third_party/sqlite/src/src/delete.c pWhere = sqlite3ExprDup(db, pWhere, 0); db 104 third_party/sqlite/src/src/delete.c pFrom = sqlite3SrcListAppend(db, 0, 0, 0); db 107 third_party/sqlite/src/src/delete.c pFrom->a[0].zAlias = sqlite3DbStrDup(db, pView->zName); db 112 third_party/sqlite/src/src/delete.c sqlite3SelectDelete(db, pDup); db 118 third_party/sqlite/src/src/delete.c sqlite3SelectDelete(db, pDup); db 180 third_party/sqlite/src/src/delete.c pSelectSrc = sqlite3SrcListDup(pParse->db, pSrc, 0); db 182 third_party/sqlite/src/src/delete.c sqlite3ExprListDelete(pParse->db, pEList); db 204 third_party/sqlite/src/src/delete.c sqlite3SelectDelete(pParse->db, pSelect); db 208 third_party/sqlite/src/src/delete.c sqlite3ExprDelete(pParse->db, pWhere); db 209 third_party/sqlite/src/src/delete.c sqlite3ExprListDelete(pParse->db, pOrderBy); db 210 third_party/sqlite/src/src/delete.c sqlite3ExprDelete(pParse->db, pLimit); db 211 third_party/sqlite/src/src/delete.c sqlite3ExprDelete(pParse->db, pOffset); db 236 third_party/sqlite/src/src/delete.c sqlite3 *db; /* Main database structure */ db 249 third_party/sqlite/src/src/delete.c db = pParse->db; db 250 third_party/sqlite/src/src/delete.c if( pParse->nErr || db->mallocFailed ){ db 287 third_party/sqlite/src/src/delete.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 288 third_party/sqlite/src/src/delete.c assert( iDb<db->nDb ); db 289 third_party/sqlite/src/src/delete.c zDb = db->aDb[iDb].zName; db 341 third_party/sqlite/src/src/delete.c if( db->flags & SQLITE_CountRows ){ db 378 third_party/sqlite/src/src/delete.c if( db->flags & SQLITE_CountRows ){ db 401 third_party/sqlite/src/src/delete.c const char *pVTab = (const char *)sqlite3GetVTable(db, pTab); db 437 third_party/sqlite/src/src/delete.c if( (db->flags&SQLITE_CountRows) && !pParse->nested && !pParse->pTriggerTab ){ db 445 third_party/sqlite/src/src/delete.c sqlite3SrcListDelete(db, pTabList); db 446 third_party/sqlite/src/src/delete.c sqlite3ExprDelete(db, pWhere); db 80 third_party/sqlite/src/src/expr.c sqlite3 *db = pParse->db; db 81 third_party/sqlite/src/src/expr.c zColl = sqlite3NameFromToken(db, pCollName); db 84 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, zColl); db 108 third_party/sqlite/src/src/expr.c sqlite3 *db = pParse->db; db 110 third_party/sqlite/src/src/expr.c pColl = sqlite3FindCollSeq(db, ENC(db), zColl, 0); db 269 third_party/sqlite/src/src/expr.c int mxHeight = pParse->db->aLimit[SQLITE_LIMIT_EXPR_DEPTH]; db 379 third_party/sqlite/src/src/expr.c sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */ db 395 third_party/sqlite/src/src/expr.c pNew = sqlite3DbMallocZero(db, sizeof(Expr)+nExtra); db 427 third_party/sqlite/src/src/expr.c sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */ db 434 third_party/sqlite/src/src/expr.c return sqlite3ExprAlloc(db, op, &x, 0); db 444 third_party/sqlite/src/src/expr.c sqlite3 *db, db 450 third_party/sqlite/src/src/expr.c assert( db->mallocFailed ); db 451 third_party/sqlite/src/src/expr.c sqlite3ExprDelete(db, pLeft); db 452 third_party/sqlite/src/src/expr.c sqlite3ExprDelete(db, pRight); db 486 third_party/sqlite/src/src/expr.c Expr *p = sqlite3ExprAlloc(pParse->db, op, pToken, 1); db 487 third_party/sqlite/src/src/expr.c sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight); db 498 third_party/sqlite/src/src/expr.c Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){ db 504 third_party/sqlite/src/src/expr.c Expr *pNew = sqlite3ExprAlloc(db, TK_AND, 0, 0); db 505 third_party/sqlite/src/src/expr.c sqlite3ExprAttachSubtrees(db, pNew, pLeft, pRight); db 516 third_party/sqlite/src/src/expr.c sqlite3 *db = pParse->db; db 518 third_party/sqlite/src/src/expr.c pNew = sqlite3ExprAlloc(db, TK_FUNCTION, pToken, 1); db 520 third_party/sqlite/src/src/expr.c sqlite3ExprListDelete(db, pList); /* Avoid memory leak when malloc fails */ db 546 third_party/sqlite/src/src/expr.c sqlite3 *db = pParse->db; db 566 third_party/sqlite/src/src/expr.c testcase( i==db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER]-1 ); db 567 third_party/sqlite/src/src/expr.c testcase( i==db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER] ); db 568 third_party/sqlite/src/src/expr.c if( bOk==0 || i<1 || i>db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER] ){ db 570 third_party/sqlite/src/src/expr.c db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER]); db 595 third_party/sqlite/src/src/expr.c db, db 600 third_party/sqlite/src/src/expr.c if( !db->mallocFailed ){ db 606 third_party/sqlite/src/src/expr.c if( !pParse->nErr && pParse->nVar>db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER] ){ db 614 third_party/sqlite/src/src/expr.c void sqlite3ExprDelete(sqlite3 *db, Expr *p){ db 619 third_party/sqlite/src/src/expr.c sqlite3ExprDelete(db, p->pLeft); db 620 third_party/sqlite/src/src/expr.c sqlite3ExprDelete(db, p->pRight); db 622 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, p->u.zToken); db 625 third_party/sqlite/src/src/expr.c sqlite3SelectDelete(db, p->x.pSelect); db 627 third_party/sqlite/src/src/expr.c sqlite3ExprListDelete(db, p->x.pList); db 631 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, p); db 744 third_party/sqlite/src/src/expr.c static Expr *exprDup(sqlite3 *db, Expr *p, int flags, u8 **pzBuffer){ db 758 third_party/sqlite/src/src/expr.c zAlloc = sqlite3DbMallocRaw(db, dupedExprSize(p, flags)); db 801 third_party/sqlite/src/src/expr.c pNew->x.pSelect = sqlite3SelectDup(db, p->x.pSelect, isReduced); db 803 third_party/sqlite/src/src/expr.c pNew->x.pList = sqlite3ExprListDup(db, p->x.pList, isReduced); db 811 third_party/sqlite/src/src/expr.c pNew->pLeft = exprDup(db, p->pLeft, EXPRDUP_REDUCE, &zAlloc); db 812 third_party/sqlite/src/src/expr.c pNew->pRight = exprDup(db, p->pRight, EXPRDUP_REDUCE, &zAlloc); db 820 third_party/sqlite/src/src/expr.c pNew->pLeft = sqlite3ExprDup(db, p->pLeft, 0); db 821 third_party/sqlite/src/src/expr.c pNew->pRight = sqlite3ExprDup(db, p->pRight, 0); db 847 third_party/sqlite/src/src/expr.c Expr *sqlite3ExprDup(sqlite3 *db, Expr *p, int flags){ db 848 third_party/sqlite/src/src/expr.c return exprDup(db, p, flags, 0); db 850 third_party/sqlite/src/src/expr.c ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){ db 855 third_party/sqlite/src/src/expr.c pNew = sqlite3DbMallocRaw(db, sizeof(*pNew) ); db 859 third_party/sqlite/src/src/expr.c pNew->a = pItem = sqlite3DbMallocRaw(db, p->nExpr*sizeof(p->a[0]) ); db 861 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, pNew); db 867 third_party/sqlite/src/src/expr.c pItem->pExpr = sqlite3ExprDup(db, pOldExpr, flags); db 868 third_party/sqlite/src/src/expr.c pItem->zName = sqlite3DbStrDup(db, pOldItem->zName); db 869 third_party/sqlite/src/src/expr.c pItem->zSpan = sqlite3DbStrDup(db, pOldItem->zSpan); db 886 third_party/sqlite/src/src/expr.c SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){ db 892 third_party/sqlite/src/src/expr.c pNew = sqlite3DbMallocRaw(db, nByte ); db 899 third_party/sqlite/src/src/expr.c pNewItem->zDatabase = sqlite3DbStrDup(db, pOldItem->zDatabase); db 900 third_party/sqlite/src/src/expr.c pNewItem->zName = sqlite3DbStrDup(db, pOldItem->zName); db 901 third_party/sqlite/src/src/expr.c pNewItem->zAlias = sqlite3DbStrDup(db, pOldItem->zAlias); db 905 third_party/sqlite/src/src/expr.c pNewItem->zIndex = sqlite3DbStrDup(db, pOldItem->zIndex); db 912 third_party/sqlite/src/src/expr.c pNewItem->pSelect = sqlite3SelectDup(db, pOldItem->pSelect, flags); db 913 third_party/sqlite/src/src/expr.c pNewItem->pOn = sqlite3ExprDup(db, pOldItem->pOn, flags); db 914 third_party/sqlite/src/src/expr.c pNewItem->pUsing = sqlite3IdListDup(db, pOldItem->pUsing); db 919 third_party/sqlite/src/src/expr.c IdList *sqlite3IdListDup(sqlite3 *db, IdList *p){ db 923 third_party/sqlite/src/src/expr.c pNew = sqlite3DbMallocRaw(db, sizeof(*pNew) ); db 926 third_party/sqlite/src/src/expr.c pNew->a = sqlite3DbMallocRaw(db, p->nId*sizeof(p->a[0]) ); db 928 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, pNew); db 934 third_party/sqlite/src/src/expr.c pNewItem->zName = sqlite3DbStrDup(db, pOldItem->zName); db 939 third_party/sqlite/src/src/expr.c Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){ db 942 third_party/sqlite/src/src/expr.c pNew = sqlite3DbMallocRaw(db, sizeof(*p) ); db 944 third_party/sqlite/src/src/expr.c pNew->pEList = sqlite3ExprListDup(db, p->pEList, flags); db 945 third_party/sqlite/src/src/expr.c pNew->pSrc = sqlite3SrcListDup(db, p->pSrc, flags); db 946 third_party/sqlite/src/src/expr.c pNew->pWhere = sqlite3ExprDup(db, p->pWhere, flags); db 947 third_party/sqlite/src/src/expr.c pNew->pGroupBy = sqlite3ExprListDup(db, p->pGroupBy, flags); db 948 third_party/sqlite/src/src/expr.c pNew->pHaving = sqlite3ExprDup(db, p->pHaving, flags); db 949 third_party/sqlite/src/src/expr.c pNew->pOrderBy = sqlite3ExprListDup(db, p->pOrderBy, flags); db 951 third_party/sqlite/src/src/expr.c pNew->pPrior = sqlite3SelectDup(db, p->pPrior, flags); db 952 third_party/sqlite/src/src/expr.c pNew->pLimit = sqlite3ExprDup(db, p->pLimit, flags); db 953 third_party/sqlite/src/src/expr.c pNew->pOffset = sqlite3ExprDup(db, p->pOffset, flags); db 964 third_party/sqlite/src/src/expr.c Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){ db 984 third_party/sqlite/src/src/expr.c sqlite3 *db = pParse->db; db 986 third_party/sqlite/src/src/expr.c pList = sqlite3DbMallocZero(db, sizeof(ExprList) ); db 995 third_party/sqlite/src/src/expr.c a = sqlite3DbRealloc(db, pList->a, n*sizeof(pList->a[0])); db 1000 third_party/sqlite/src/src/expr.c pList->nAlloc = sqlite3DbMallocSize(db, a)/sizeof(a[0]); db 1012 third_party/sqlite/src/src/expr.c sqlite3ExprDelete(db, pExpr); db 1013 third_party/sqlite/src/src/expr.c sqlite3ExprListDelete(db, pList); db 1031 third_party/sqlite/src/src/expr.c assert( pList!=0 || pParse->db->mallocFailed!=0 ); db 1037 third_party/sqlite/src/src/expr.c pItem->zName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n); db 1055 third_party/sqlite/src/src/expr.c sqlite3 *db = pParse->db; db 1056 third_party/sqlite/src/src/expr.c assert( pList!=0 || db->mallocFailed!=0 ); db 1060 third_party/sqlite/src/src/expr.c assert( db->mallocFailed || pItem->pExpr==pSpan->pExpr ); db 1061 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, pItem->zSpan); db 1062 third_party/sqlite/src/src/expr.c pItem->zSpan = sqlite3DbStrNDup(db, (char*)pSpan->zStart, db 1076 third_party/sqlite/src/src/expr.c int mx = pParse->db->aLimit[SQLITE_LIMIT_COLUMN]; db 1087 third_party/sqlite/src/src/expr.c void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){ db 1094 third_party/sqlite/src/src/expr.c sqlite3ExprDelete(db, pItem->pExpr); db 1095 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, pItem->zName); db 1096 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, pItem->zSpan); db 1098 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, pList->a); db 1099 third_party/sqlite/src/src/expr.c sqlite3DbFree(db, pList); db 1442 third_party/sqlite/src/src/expr.c sqlite3 *db = pParse->db; /* Database connection */ db 1450 third_party/sqlite/src/src/expr.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 1487 third_party/sqlite/src/src/expr.c && sqlite3FindCollSeq(db, ENC(db), pIdx->azColl[0], 0)==pReq db 1597 third_party/sqlite/src/src/expr.c assert( testAddr>0 || pParse->db->mallocFailed ); db 1603 third_party/sqlite/src/src/expr.c pParse->db, "EXECUTE %s%s SUBQUERY %d", testAddr?"":"CORRELATED ", db 1753 third_party/sqlite/src/src/expr.c sqlite3ExprDelete(pParse->db, pSel->pLimit); db 2007 third_party/sqlite/src/src/expr.c if( pParse->db->flags & SQLITE_ColumnCache ) return; db 2267 third_party/sqlite/src/src/expr.c sqlite3 *db = pParse->db; /* The database connection */ db 2271 third_party/sqlite/src/src/expr.c assert( pParse->db->mallocFailed ); db 2534 third_party/sqlite/src/src/expr.c u8 enc = ENC(db); /* The text encoding used by this database */ db 2549 third_party/sqlite/src/src/expr.c pDef = sqlite3FindFunction(db, zId, nId, nFarg, enc, 0); db 2597 third_party/sqlite/src/src/expr.c pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[1].pExpr); db 2599 third_party/sqlite/src/src/expr.c pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[0].pExpr); db 2611 third_party/sqlite/src/src/expr.c if( !pColl ) pColl = db->pDfltColl; db 2820 third_party/sqlite/src/src/expr.c assert( db->mallocFailed || pParse->nErr>0 db 2891 third_party/sqlite/src/src/expr.c assert( pParse->pVdbe || pParse->db->mallocFailed ); db 3056 third_party/sqlite/src/src/expr.c if( (pParse->db->flags & SQLITE_FactorOutConst)!=0 ) return; db 3495 third_party/sqlite/src/src/expr.c static int addAggInfoColumn(sqlite3 *db, AggInfo *pInfo){ db 3498 third_party/sqlite/src/src/expr.c db, db 3513 third_party/sqlite/src/src/expr.c static int addAggInfoFunc(sqlite3 *db, AggInfo *pInfo){ db 3516 third_party/sqlite/src/src/expr.c db, db 3567 third_party/sqlite/src/src/expr.c && (k = addAggInfoColumn(pParse->db, pAggInfo))>=0 db 3625 third_party/sqlite/src/src/expr.c u8 enc = ENC(pParse->db); db 3626 third_party/sqlite/src/src/expr.c i = addAggInfoFunc(pParse->db, pAggInfo); db 3633 third_party/sqlite/src/src/expr.c pItem->pFunc = sqlite3FindFunction(pParse->db, db 220 third_party/sqlite/src/src/fkey.c aiCol = (int *)sqlite3DbMallocRaw(pParse->db, nCol*sizeof(int)); db 280 third_party/sqlite/src/src/fkey.c sqlite3DbFree(pParse->db, aiCol); db 467 third_party/sqlite/src/src/fkey.c sqlite3 *db = pParse->db; /* Database handle */ db 496 third_party/sqlite/src/src/fkey.c pLeft = sqlite3Expr(db, TK_REGISTER, 0); db 516 third_party/sqlite/src/src/fkey.c pRight = sqlite3Expr(db, TK_ID, zCol); db 518 third_party/sqlite/src/src/fkey.c pWhere = sqlite3ExprAnd(db, pWhere, pEq); db 529 third_party/sqlite/src/src/fkey.c pLeft = sqlite3Expr(db, TK_REGISTER, 0); db 530 third_party/sqlite/src/src/fkey.c pRight = sqlite3Expr(db, TK_COLUMN, 0); db 538 third_party/sqlite/src/src/fkey.c pWhere = sqlite3ExprAnd(db, pWhere, pEq); db 561 third_party/sqlite/src/src/fkey.c sqlite3ExprDelete(db, pWhere); db 623 third_party/sqlite/src/src/fkey.c sqlite3 *db = pParse->db; db 624 third_party/sqlite/src/src/fkey.c if( (db->flags&SQLITE_ForeignKeys) && !IsVirtual(pTab) && !pTab->pSelect ){ db 645 third_party/sqlite/src/src/fkey.c sqlite3DeleteFrom(pParse, sqlite3SrcListDup(db, pName, 0), 0); db 689 third_party/sqlite/src/src/fkey.c sqlite3 *db = pParse->db; /* Database handle */ db 699 third_party/sqlite/src/src/fkey.c if( (db->flags&SQLITE_ForeignKeys)==0 ) return; db 701 third_party/sqlite/src/src/fkey.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 702 third_party/sqlite/src/src/fkey.c zDb = db->aDb[iDb].zName; db 720 third_party/sqlite/src/src/fkey.c pTo = sqlite3FindTable(db, pFKey->zTo, zDb); db 725 third_party/sqlite/src/src/fkey.c if( !isIgnoreErrors || db->mallocFailed ) return; db 744 third_party/sqlite/src/src/fkey.c if( db->xAuth ){ db 771 third_party/sqlite/src/src/fkey.c sqlite3DbFree(db, aiFree); db 788 third_party/sqlite/src/src/fkey.c if( !isIgnoreErrors || db->mallocFailed ) return; db 796 third_party/sqlite/src/src/fkey.c pSrc = sqlite3SrcListAppend(db, 0, 0, 0); db 817 third_party/sqlite/src/src/fkey.c sqlite3SrcListDelete(db, pSrc); db 819 third_party/sqlite/src/src/fkey.c sqlite3DbFree(db, aiCol); db 834 third_party/sqlite/src/src/fkey.c if( pParse->db->flags&SQLITE_ForeignKeys ){ db 871 third_party/sqlite/src/src/fkey.c if( pParse->db->flags&SQLITE_ForeignKeys ){ db 946 third_party/sqlite/src/src/fkey.c sqlite3 *db = pParse->db; /* Database handle */ db 997 third_party/sqlite/src/src/fkey.c pWhere = sqlite3ExprAnd(db, pWhere, pEq); db 1015 third_party/sqlite/src/src/fkey.c pWhen = sqlite3ExprAnd(db, pWhen, pEq); db 1028 third_party/sqlite/src/src/fkey.c pNew = sqlite3ExprDup(db, pDflt, 0); db 1039 third_party/sqlite/src/src/fkey.c sqlite3DbFree(db, aiCol); db 1050 third_party/sqlite/src/src/fkey.c pRaise = sqlite3Expr(db, TK_RAISE, "foreign key constraint failed"); db 1056 third_party/sqlite/src/src/fkey.c sqlite3SrcListAppend(db, 0, &tFrom, 0), db 1064 third_party/sqlite/src/src/fkey.c enableLookaside = db->lookaside.bEnabled; db 1065 third_party/sqlite/src/src/fkey.c db->lookaside.bEnabled = 0; db 1067 third_party/sqlite/src/src/fkey.c pTrigger = (Trigger *)sqlite3DbMallocZero(db, db 1078 third_party/sqlite/src/src/fkey.c pStep->pWhere = sqlite3ExprDup(db, pWhere, EXPRDUP_REDUCE); db 1079 third_party/sqlite/src/src/fkey.c pStep->pExprList = sqlite3ExprListDup(db, pList, EXPRDUP_REDUCE); db 1080 third_party/sqlite/src/src/fkey.c pStep->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE); db 1083 third_party/sqlite/src/src/fkey.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); db 1088 third_party/sqlite/src/src/fkey.c db->lookaside.bEnabled = enableLookaside; db 1090 third_party/sqlite/src/src/fkey.c sqlite3ExprDelete(db, pWhere); db 1091 third_party/sqlite/src/src/fkey.c sqlite3ExprDelete(db, pWhen); db 1092 third_party/sqlite/src/src/fkey.c sqlite3ExprListDelete(db, pList); db 1093 third_party/sqlite/src/src/fkey.c sqlite3SelectDelete(db, pSelect); db 1094 third_party/sqlite/src/src/fkey.c if( db->mallocFailed==1 ){ db 1095 third_party/sqlite/src/src/fkey.c fkTriggerDelete(db, pTrigger); db 1135 third_party/sqlite/src/src/fkey.c if( pParse->db->flags&SQLITE_ForeignKeys ){ db 1153 third_party/sqlite/src/src/fkey.c void sqlite3FkDelete(sqlite3 *db, Table *pTab){ db 1157 third_party/sqlite/src/src/fkey.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pTab->pSchema) ); db 1161 third_party/sqlite/src/src/fkey.c if( !db || db->pnBytesFreed==0 ){ db 1181 third_party/sqlite/src/src/fkey.c fkTriggerDelete(db, pFKey->apTrigger[0]); db 1182 third_party/sqlite/src/src/fkey.c fkTriggerDelete(db, pFKey->apTrigger[1]); db 1186 third_party/sqlite/src/src/fkey.c sqlite3DbFree(db, pFKey); db 304 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 306 third_party/sqlite/src/src/func.c testcase( nByte==db->aLimit[SQLITE_LIMIT_LENGTH] ); db 307 third_party/sqlite/src/src/func.c testcase( nByte==db->aLimit[SQLITE_LIMIT_LENGTH]+1 ); db 308 third_party/sqlite/src/src/func.c if( nByte>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 451 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 456 third_party/sqlite/src/src/func.c sqlite3_result_int64(context, sqlite3_last_insert_rowid(db)); db 471 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 473 third_party/sqlite/src/src/func.c sqlite3_result_int(context, sqlite3_changes(db)); db 485 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 489 third_party/sqlite/src/src/func.c sqlite3_result_int(context, sqlite3_total_changes(db)); db 689 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 698 third_party/sqlite/src/src/func.c testcase( nPat==db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH] ); db 699 third_party/sqlite/src/src/func.c testcase( nPat==db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]+1 ); db 700 third_party/sqlite/src/src/func.c if( nPat > db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH] ){ db 940 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 944 third_party/sqlite/src/src/func.c testcase( n==db->aLimit[SQLITE_LIMIT_LENGTH] ); db 945 third_party/sqlite/src/src/func.c testcase( n==db->aLimit[SQLITE_LIMIT_LENGTH]+1 ); db 946 third_party/sqlite/src/src/func.c if( n>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 1010 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 1012 third_party/sqlite/src/src/func.c testcase( nOut-1==db->aLimit[SQLITE_LIMIT_LENGTH] ); db 1013 third_party/sqlite/src/src/func.c testcase( nOut-2==db->aLimit[SQLITE_LIMIT_LENGTH] ); db 1014 third_party/sqlite/src/src/func.c if( nOut-1>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 1191 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 1199 third_party/sqlite/src/src/func.c if( zFile && sqlite3_load_extension(db, zFile, zProc, &zErrMsg) ){ db 1377 third_party/sqlite/src/src/func.c sqlite3 *db = sqlite3_context_db_handle(context); db 1380 third_party/sqlite/src/src/func.c pAccum->mxAlloc = db->aLimit[SQLITE_LIMIT_LENGTH]; db 1416 third_party/sqlite/src/src/func.c void sqlite3RegisterBuiltinFunctions(sqlite3 *db){ db 1417 third_party/sqlite/src/src/func.c int rc = sqlite3_overload_function(db, "MATCH", 2); db 1420 third_party/sqlite/src/src/func.c db->mallocFailed = 1; db 1427 third_party/sqlite/src/src/func.c static void setLikeOptFlag(sqlite3 *db, const char *zName, u8 flagVal){ db 1429 third_party/sqlite/src/src/func.c pDef = sqlite3FindFunction(db, zName, sqlite3Strlen30(zName), db 1441 third_party/sqlite/src/src/func.c void sqlite3RegisterLikeFunctions(sqlite3 *db, int caseSensitive){ db 1448 third_party/sqlite/src/src/func.c sqlite3CreateFunc(db, "like", 2, SQLITE_UTF8, pInfo, likeFunc, 0, 0, 0); db 1449 third_party/sqlite/src/src/func.c sqlite3CreateFunc(db, "like", 3, SQLITE_UTF8, pInfo, likeFunc, 0, 0, 0); db 1450 third_party/sqlite/src/src/func.c sqlite3CreateFunc(db, "glob", 2, SQLITE_UTF8, db 1452 third_party/sqlite/src/src/func.c setLikeOptFlag(db, "glob", SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE); db 1453 third_party/sqlite/src/src/func.c setLikeOptFlag(db, "like", db 1464 third_party/sqlite/src/src/func.c int sqlite3IsLikeFunction(sqlite3 *db, Expr *pExpr, int *pIsNocase, char *aWc){ db 1473 third_party/sqlite/src/src/func.c pDef = sqlite3FindFunction(db, pExpr->u.zToken, db 69 third_party/sqlite/src/src/insert.c sqlite3 *db = sqlite3VdbeDb(v); db 72 third_party/sqlite/src/src/insert.c db->mallocFailed = 1; db 110 third_party/sqlite/src/src/insert.c sqlite3 *db = sqlite3VdbeDb(v); db 114 third_party/sqlite/src/src/insert.c db->mallocFailed = 1; db 141 third_party/sqlite/src/src/insert.c VTable *pVTab = IsVirtual(pTab) ? sqlite3GetVTable(p->db, pTab) : 0; db 204 third_party/sqlite/src/src/insert.c pInfo = sqlite3DbMallocRaw(pParse->db, sizeof(*pInfo)); db 225 third_party/sqlite/src/src/insert.c sqlite3 *db = pParse->db; /* The database connection */ db 238 third_party/sqlite/src/src/insert.c pDb = &db->aDb[p->iDb]; db 240 third_party/sqlite/src/src/insert.c assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) ); db 281 third_party/sqlite/src/src/insert.c sqlite3 *db = pParse->db; db 285 third_party/sqlite/src/src/insert.c Db *pDb = &db->aDb[p->iDb]; db 291 third_party/sqlite/src/src/insert.c assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) ); db 441 third_party/sqlite/src/src/insert.c sqlite3 *db; /* The main database structure */ db 479 third_party/sqlite/src/src/insert.c db = pParse->db; db 481 third_party/sqlite/src/src/insert.c if( pParse->nErr || db->mallocFailed ){ db 494 third_party/sqlite/src/src/insert.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 495 third_party/sqlite/src/src/insert.c assert( iDb<db->nDb ); db 496 third_party/sqlite/src/src/insert.c pDb = &db->aDb[iDb]; db 606 third_party/sqlite/src/src/insert.c if( rc || NEVER(pParse->nErr) || db->mallocFailed ){ db 748 third_party/sqlite/src/src/insert.c if( db->flags & SQLITE_CountRows ){ db 759 third_party/sqlite/src/src/insert.c aRegIdx = sqlite3DbMallocRaw(db, sizeof(int)*(nIdx+1)); db 969 third_party/sqlite/src/src/insert.c const char *pVTab = (const char *)sqlite3GetVTable(db, pTab); db 989 third_party/sqlite/src/src/insert.c if( (db->flags & SQLITE_CountRows)!=0 ){ db 1034 third_party/sqlite/src/src/insert.c if( (db->flags&SQLITE_CountRows) && !pParse->nested && !pParse->pTriggerTab ){ db 1041 third_party/sqlite/src/src/insert.c sqlite3SrcListDelete(db, pTabList); db 1042 third_party/sqlite/src/src/insert.c sqlite3ExprListDelete(db, pList); db 1043 third_party/sqlite/src/src/insert.c sqlite3SelectDelete(db, pSelect); db 1044 third_party/sqlite/src/src/insert.c sqlite3IdListDelete(db, pColumn); db 1045 third_party/sqlite/src/src/insert.c sqlite3DbFree(db, aRegIdx); db 1193 third_party/sqlite/src/src/insert.c zMsg = sqlite3MPrintf(pParse->db, "%s.%s may not be NULL", db 1215 third_party/sqlite/src/src/insert.c if( pTab->pCheck && (pParse->db->flags & SQLITE_IgnoreChecks)==0 ){ db 1282 third_party/sqlite/src/src/insert.c if( pParse->db->flags&SQLITE_RecTriggers ){ db 1371 third_party/sqlite/src/src/insert.c errMsg.db = pParse->db; db 1383 third_party/sqlite/src/src/insert.c sqlite3DbFree(errMsg.db, zErr); db 1395 third_party/sqlite/src/src/insert.c if( pParse->db->flags&SQLITE_RecTriggers ){ db 1495 third_party/sqlite/src/src/insert.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 1749 third_party/sqlite/src/src/insert.c iDbSrc = sqlite3SchemaToIndex(pParse->db, pSrc->pSchema); db 31 third_party/sqlite/src/src/legacy.c sqlite3 *db, /* The database on which the SQL executes */ db 44 third_party/sqlite/src/src/legacy.c if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT; db 47 third_party/sqlite/src/src/legacy.c sqlite3_mutex_enter(db->mutex); db 48 third_party/sqlite/src/src/legacy.c sqlite3Error(db, SQLITE_OK, 0); db 54 third_party/sqlite/src/src/legacy.c rc = sqlite3_prepare(db, zSql, -1, &pStmt, &zLeftover); db 75 third_party/sqlite/src/src/legacy.c && db->flags&SQLITE_NullCallback)) ){ db 77 third_party/sqlite/src/src/legacy.c azCols = sqlite3DbMallocZero(db, 2*nCol*sizeof(const char*) + 1); db 94 third_party/sqlite/src/src/legacy.c db->mallocFailed = 1; db 103 third_party/sqlite/src/src/legacy.c sqlite3Error(db, SQLITE_ABORT, 0); db 120 third_party/sqlite/src/src/legacy.c sqlite3DbFree(db, azCols); db 126 third_party/sqlite/src/src/legacy.c sqlite3DbFree(db, azCols); db 128 third_party/sqlite/src/src/legacy.c rc = sqlite3ApiExit(db, rc); db 129 third_party/sqlite/src/src/legacy.c if( rc!=SQLITE_OK && ALWAYS(rc==sqlite3_errcode(db)) && pzErrMsg ){ db 130 third_party/sqlite/src/src/legacy.c int nErrMsg = 1 + sqlite3Strlen30(sqlite3_errmsg(db)); db 133 third_party/sqlite/src/src/legacy.c memcpy(*pzErrMsg, sqlite3_errmsg(db), nErrMsg); db 136 third_party/sqlite/src/src/legacy.c sqlite3Error(db, SQLITE_NOMEM, 0); db 142 third_party/sqlite/src/src/legacy.c assert( (rc&db->errMask)==rc ); db 143 third_party/sqlite/src/src/legacy.c sqlite3_mutex_leave(db->mutex); db 390 third_party/sqlite/src/src/loadext.c sqlite3 *db, /* Load the extension into this database connection */ db 395 third_party/sqlite/src/src/loadext.c sqlite3_vfs *pVfs = db->pVfs; db 410 third_party/sqlite/src/src/loadext.c if( (db->flags & SQLITE_LoadExtension)==0 ){ db 446 third_party/sqlite/src/src/loadext.c }else if( xInit(db, &zErrmsg, &sqlite3Apis) ){ db 456 third_party/sqlite/src/src/loadext.c aHandle = sqlite3DbMallocZero(db, sizeof(handle)*(db->nExtension+1)); db 460 third_party/sqlite/src/src/loadext.c if( db->nExtension>0 ){ db 461 third_party/sqlite/src/src/loadext.c memcpy(aHandle, db->aExtension, sizeof(handle)*db->nExtension); db 463 third_party/sqlite/src/src/loadext.c sqlite3DbFree(db, db->aExtension); db 464 third_party/sqlite/src/src/loadext.c db->aExtension = aHandle; db 466 third_party/sqlite/src/src/loadext.c db->aExtension[db->nExtension++] = handle; db 470 third_party/sqlite/src/src/loadext.c sqlite3 *db, /* Load the extension into this database connection */ db 476 third_party/sqlite/src/src/loadext.c sqlite3_mutex_enter(db->mutex); db 477 third_party/sqlite/src/src/loadext.c rc = sqlite3LoadExtension(db, zFile, zProc, pzErrMsg); db 478 third_party/sqlite/src/src/loadext.c rc = sqlite3ApiExit(db, rc); db 479 third_party/sqlite/src/src/loadext.c sqlite3_mutex_leave(db->mutex); db 487 third_party/sqlite/src/src/loadext.c void sqlite3CloseExtensions(sqlite3 *db){ db 489 third_party/sqlite/src/src/loadext.c assert( sqlite3_mutex_held(db->mutex) ); db 490 third_party/sqlite/src/src/loadext.c for(i=0; i<db->nExtension; i++){ db 491 third_party/sqlite/src/src/loadext.c sqlite3OsDlClose(db->pVfs, db->aExtension[i]); db 493 third_party/sqlite/src/src/loadext.c sqlite3DbFree(db, db->aExtension); db 500 third_party/sqlite/src/src/loadext.c int sqlite3_enable_load_extension(sqlite3 *db, int onoff){ db 501 third_party/sqlite/src/src/loadext.c sqlite3_mutex_enter(db->mutex); db 503 third_party/sqlite/src/src/loadext.c db->flags |= SQLITE_LoadExtension; db 505 third_party/sqlite/src/src/loadext.c db->flags &= ~SQLITE_LoadExtension; db 507 third_party/sqlite/src/src/loadext.c sqlite3_mutex_leave(db->mutex); db 618 third_party/sqlite/src/src/loadext.c void sqlite3AutoLoadExtensions(sqlite3 *db){ db 643 third_party/sqlite/src/src/loadext.c if( xInit && xInit(db, &zErrmsg, &sqlite3Apis) ){ db 644 third_party/sqlite/src/src/loadext.c sqlite3Error(db, SQLITE_ERROR, db 449 third_party/sqlite/src/src/main.c static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){ db 451 third_party/sqlite/src/src/main.c if( db->lookaside.nOut ){ db 458 third_party/sqlite/src/src/main.c if( db->lookaside.bMalloced ){ db 459 third_party/sqlite/src/src/main.c sqlite3_free(db->lookaside.pStart); db 478 third_party/sqlite/src/src/main.c db->lookaside.pStart = pStart; db 479 third_party/sqlite/src/src/main.c db->lookaside.pFree = 0; db 480 third_party/sqlite/src/src/main.c db->lookaside.sz = (u16)sz; db 487 third_party/sqlite/src/src/main.c p->pNext = db->lookaside.pFree; db 488 third_party/sqlite/src/src/main.c db->lookaside.pFree = p; db 491 third_party/sqlite/src/src/main.c db->lookaside.pEnd = p; db 492 third_party/sqlite/src/src/main.c db->lookaside.bEnabled = 1; db 493 third_party/sqlite/src/src/main.c db->lookaside.bMalloced = pBuf==0 ?1:0; db 495 third_party/sqlite/src/src/main.c db->lookaside.pEnd = 0; db 496 third_party/sqlite/src/src/main.c db->lookaside.bEnabled = 0; db 497 third_party/sqlite/src/src/main.c db->lookaside.bMalloced = 0; db 505 third_party/sqlite/src/src/main.c sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){ db 506 third_party/sqlite/src/src/main.c return db->mutex; db 512 third_party/sqlite/src/src/main.c int sqlite3_db_config(sqlite3 *db, int op, ...){ db 521 third_party/sqlite/src/src/main.c rc = setupLookaside(db, pBuf, sz, cnt); db 538 third_party/sqlite/src/src/main.c int oldFlags = db->flags; db 540 third_party/sqlite/src/src/main.c db->flags |= aFlagOp[i].mask; db 542 third_party/sqlite/src/src/main.c db->flags &= ~aFlagOp[i].mask; db 544 third_party/sqlite/src/src/main.c if( oldFlags!=db->flags ){ db 545 third_party/sqlite/src/src/main.c sqlite3ExpirePreparedStatements(db); db 548 third_party/sqlite/src/src/main.c *pRes = (db->flags & aFlagOp[i].mask)!=0; db 624 third_party/sqlite/src/src/main.c sqlite_int64 sqlite3_last_insert_rowid(sqlite3 *db){ db 625 third_party/sqlite/src/src/main.c return db->lastRowid; db 631 third_party/sqlite/src/src/main.c int sqlite3_changes(sqlite3 *db){ db 632 third_party/sqlite/src/src/main.c return db->nChange; db 638 third_party/sqlite/src/src/main.c int sqlite3_total_changes(sqlite3 *db){ db 639 third_party/sqlite/src/src/main.c return db->nTotalChange; db 647 third_party/sqlite/src/src/main.c void sqlite3CloseSavepoints(sqlite3 *db){ db 648 third_party/sqlite/src/src/main.c while( db->pSavepoint ){ db 649 third_party/sqlite/src/src/main.c Savepoint *pTmp = db->pSavepoint; db 650 third_party/sqlite/src/src/main.c db->pSavepoint = pTmp->pNext; db 651 third_party/sqlite/src/src/main.c sqlite3DbFree(db, pTmp); db 653 third_party/sqlite/src/src/main.c db->nSavepoint = 0; db 654 third_party/sqlite/src/src/main.c db->nStatement = 0; db 655 third_party/sqlite/src/src/main.c db->isTransactionSavepoint = 0; db 664 third_party/sqlite/src/src/main.c static void functionDestroy(sqlite3 *db, FuncDef *p){ db 670 third_party/sqlite/src/src/main.c sqlite3DbFree(db, pDestructor); db 678 third_party/sqlite/src/src/main.c int sqlite3_close(sqlite3 *db){ db 682 third_party/sqlite/src/src/main.c if( !db ){ db 685 third_party/sqlite/src/src/main.c if( !sqlite3SafetyCheckSickOrOk(db) ){ db 688 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 691 third_party/sqlite/src/src/main.c sqlite3ResetInternalSchema(db, -1); db 700 third_party/sqlite/src/src/main.c sqlite3VtabRollback(db); db 703 third_party/sqlite/src/src/main.c if( db->pVdbe ){ db 704 third_party/sqlite/src/src/main.c sqlite3Error(db, SQLITE_BUSY, db 706 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 709 third_party/sqlite/src/src/main.c assert( sqlite3SafetyCheckSickOrOk(db) ); db 711 third_party/sqlite/src/src/main.c for(j=0; j<db->nDb; j++){ db 712 third_party/sqlite/src/src/main.c Btree *pBt = db->aDb[j].pBt; db 714 third_party/sqlite/src/src/main.c sqlite3Error(db, SQLITE_BUSY, db 716 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 722 third_party/sqlite/src/src/main.c sqlite3CloseSavepoints(db); db 724 third_party/sqlite/src/src/main.c for(j=0; j<db->nDb; j++){ db 725 third_party/sqlite/src/src/main.c struct Db *pDb = &db->aDb[j]; db 734 third_party/sqlite/src/src/main.c sqlite3ResetInternalSchema(db, -1); db 739 third_party/sqlite/src/src/main.c sqlite3ConnectionClosed(db); db 741 third_party/sqlite/src/src/main.c assert( db->nDb<=2 ); db 742 third_party/sqlite/src/src/main.c assert( db->aDb==db->aDbStatic ); db 743 third_party/sqlite/src/src/main.c for(j=0; j<ArraySize(db->aFunc.a); j++){ db 745 third_party/sqlite/src/src/main.c for(p=db->aFunc.a[j]; p; p=pHash){ db 748 third_party/sqlite/src/src/main.c functionDestroy(db, p); db 750 third_party/sqlite/src/src/main.c sqlite3DbFree(db, p); db 755 third_party/sqlite/src/src/main.c for(i=sqliteHashFirst(&db->aCollSeq); i; i=sqliteHashNext(i)){ db 763 third_party/sqlite/src/src/main.c sqlite3DbFree(db, pColl); db 765 third_party/sqlite/src/src/main.c sqlite3HashClear(&db->aCollSeq); db 767 third_party/sqlite/src/src/main.c for(i=sqliteHashFirst(&db->aModule); i; i=sqliteHashNext(i)){ db 772 third_party/sqlite/src/src/main.c sqlite3DbFree(db, pMod); db 774 third_party/sqlite/src/src/main.c sqlite3HashClear(&db->aModule); db 777 third_party/sqlite/src/src/main.c sqlite3Error(db, SQLITE_OK, 0); /* Deallocates any cached error strings. */ db 778 third_party/sqlite/src/src/main.c if( db->pErr ){ db 779 third_party/sqlite/src/src/main.c sqlite3ValueFree(db->pErr); db 781 third_party/sqlite/src/src/main.c sqlite3CloseExtensions(db); db 783 third_party/sqlite/src/src/main.c db->magic = SQLITE_MAGIC_ERROR; db 791 third_party/sqlite/src/src/main.c sqlite3DbFree(db, db->aDb[1].pSchema); db 792 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 793 third_party/sqlite/src/src/main.c db->magic = SQLITE_MAGIC_CLOSED; db 794 third_party/sqlite/src/src/main.c sqlite3_mutex_free(db->mutex); db 795 third_party/sqlite/src/src/main.c assert( db->lookaside.nOut==0 ); /* Fails on a lookaside memory leak */ db 796 third_party/sqlite/src/src/main.c if( db->lookaside.bMalloced ){ db 797 third_party/sqlite/src/src/main.c sqlite3_free(db->lookaside.pStart); db 799 third_party/sqlite/src/src/main.c sqlite3_free(db); db 806 third_party/sqlite/src/src/main.c void sqlite3RollbackAll(sqlite3 *db){ db 809 third_party/sqlite/src/src/main.c assert( sqlite3_mutex_held(db->mutex) ); db 811 third_party/sqlite/src/src/main.c for(i=0; i<db->nDb; i++){ db 812 third_party/sqlite/src/src/main.c if( db->aDb[i].pBt ){ db 813 third_party/sqlite/src/src/main.c if( sqlite3BtreeIsInTrans(db->aDb[i].pBt) ){ db 816 third_party/sqlite/src/src/main.c sqlite3BtreeRollback(db->aDb[i].pBt); db 817 third_party/sqlite/src/src/main.c db->aDb[i].inTrans = 0; db 820 third_party/sqlite/src/src/main.c sqlite3VtabRollback(db); db 823 third_party/sqlite/src/src/main.c if( db->flags&SQLITE_InternChanges ){ db 824 third_party/sqlite/src/src/main.c sqlite3ExpirePreparedStatements(db); db 825 third_party/sqlite/src/src/main.c sqlite3ResetInternalSchema(db, -1); db 829 third_party/sqlite/src/src/main.c db->nDeferredCons = 0; db 832 third_party/sqlite/src/src/main.c if( db->xRollbackCallback && (inTrans || !db->autoCommit) ){ db 833 third_party/sqlite/src/src/main.c db->xRollbackCallback(db->pRollbackArg); db 895 third_party/sqlite/src/src/main.c sqlite3 *db = (sqlite3 *)ptr; db 896 third_party/sqlite/src/src/main.c int timeout = db->busyTimeout; db 911 third_party/sqlite/src/src/main.c sqlite3OsSleep(db->pVfs, delay*1000); db 914 third_party/sqlite/src/src/main.c sqlite3 *db = (sqlite3 *)ptr; db 919 third_party/sqlite/src/src/main.c sqlite3OsSleep(db->pVfs, 1000000); db 948 third_party/sqlite/src/src/main.c sqlite3 *db, db 952 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 953 third_party/sqlite/src/src/main.c db->busyHandler.xFunc = xBusy; db 954 third_party/sqlite/src/src/main.c db->busyHandler.pArg = pArg; db 955 third_party/sqlite/src/src/main.c db->busyHandler.nBusy = 0; db 956 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 967 third_party/sqlite/src/src/main.c sqlite3 *db, db 972 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 974 third_party/sqlite/src/src/main.c db->xProgress = xProgress; db 975 third_party/sqlite/src/src/main.c db->nProgressOps = nOps; db 976 third_party/sqlite/src/src/main.c db->pProgressArg = pArg; db 978 third_party/sqlite/src/src/main.c db->xProgress = 0; db 979 third_party/sqlite/src/src/main.c db->nProgressOps = 0; db 980 third_party/sqlite/src/src/main.c db->pProgressArg = 0; db 982 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 991 third_party/sqlite/src/src/main.c int sqlite3_busy_timeout(sqlite3 *db, int ms){ db 993 third_party/sqlite/src/src/main.c db->busyTimeout = ms; db 994 third_party/sqlite/src/src/main.c sqlite3_busy_handler(db, sqliteDefaultBusyCallback, (void*)db); db 996 third_party/sqlite/src/src/main.c sqlite3_busy_handler(db, 0, 0); db 1004 third_party/sqlite/src/src/main.c void sqlite3_interrupt(sqlite3 *db){ db 1005 third_party/sqlite/src/src/main.c db->u1.isInterrupted = 1; db 1016 third_party/sqlite/src/src/main.c sqlite3 *db, db 1029 third_party/sqlite/src/src/main.c assert( sqlite3_mutex_held(db->mutex) ); db 1051 third_party/sqlite/src/src/main.c rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF8, db 1054 third_party/sqlite/src/src/main.c rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF16LE, db 1071 third_party/sqlite/src/src/main.c p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 0); db 1073 third_party/sqlite/src/src/main.c if( db->activeVdbeCnt ){ db 1074 third_party/sqlite/src/src/main.c sqlite3Error(db, SQLITE_BUSY, db 1076 third_party/sqlite/src/src/main.c assert( !db->mallocFailed ); db 1079 third_party/sqlite/src/src/main.c sqlite3ExpirePreparedStatements(db); db 1083 third_party/sqlite/src/src/main.c p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 1); db 1084 third_party/sqlite/src/src/main.c assert(p || db->mallocFailed); db 1091 third_party/sqlite/src/src/main.c functionDestroy(db, p); db 1110 third_party/sqlite/src/src/main.c sqlite3 *db, db 1119 third_party/sqlite/src/src/main.c return sqlite3_create_function_v2(db, zFunc, nArg, enc, p, xFunc, xStep, db 1124 third_party/sqlite/src/src/main.c sqlite3 *db, db 1136 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1138 third_party/sqlite/src/src/main.c pArg = (FuncDestructor *)sqlite3DbMallocZero(db, sizeof(FuncDestructor)); db 1146 third_party/sqlite/src/src/main.c rc = sqlite3CreateFunc(db, zFunc, nArg, enc, p, xFunc, xStep, xFinal, pArg); db 1150 third_party/sqlite/src/src/main.c sqlite3DbFree(db, pArg); db 1154 third_party/sqlite/src/src/main.c rc = sqlite3ApiExit(db, rc); db 1155 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1161 third_party/sqlite/src/src/main.c sqlite3 *db, db 1172 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1173 third_party/sqlite/src/src/main.c assert( !db->mallocFailed ); db 1174 third_party/sqlite/src/src/main.c zFunc8 = sqlite3Utf16to8(db, zFunctionName, -1, SQLITE_UTF16NATIVE); db 1175 third_party/sqlite/src/src/main.c rc = sqlite3CreateFunc(db, zFunc8, nArg, eTextRep, p, xFunc, xStep, xFinal,0); db 1176 third_party/sqlite/src/src/main.c sqlite3DbFree(db, zFunc8); db 1177 third_party/sqlite/src/src/main.c rc = sqlite3ApiExit(db, rc); db 1178 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1197 third_party/sqlite/src/src/main.c sqlite3 *db, db 1203 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1204 third_party/sqlite/src/src/main.c if( sqlite3FindFunction(db, zName, nName, nArg, SQLITE_UTF8, 0)==0 ){ db 1205 third_party/sqlite/src/src/main.c sqlite3CreateFunc(db, zName, nArg, SQLITE_UTF8, db 1208 third_party/sqlite/src/src/main.c rc = sqlite3ApiExit(db, SQLITE_OK); db 1209 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1222 third_party/sqlite/src/src/main.c void *sqlite3_trace(sqlite3 *db, void (*xTrace)(void*,const char*), void *pArg){ db 1224 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1225 third_party/sqlite/src/src/main.c pOld = db->pTraceArg; db 1226 third_party/sqlite/src/src/main.c db->xTrace = xTrace; db 1227 third_party/sqlite/src/src/main.c db->pTraceArg = pArg; db 1228 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1240 third_party/sqlite/src/src/main.c sqlite3 *db, db 1245 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1246 third_party/sqlite/src/src/main.c pOld = db->pProfileArg; db 1247 third_party/sqlite/src/src/main.c db->xProfile = xProfile; db 1248 third_party/sqlite/src/src/main.c db->pProfileArg = pArg; db 1249 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1261 third_party/sqlite/src/src/main.c sqlite3 *db, /* Attach the hook to this database */ db 1266 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1267 third_party/sqlite/src/src/main.c pOld = db->pCommitArg; db 1268 third_party/sqlite/src/src/main.c db->xCommitCallback = xCallback; db 1269 third_party/sqlite/src/src/main.c db->pCommitArg = pArg; db 1270 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1279 third_party/sqlite/src/src/main.c sqlite3 *db, /* Attach the hook to this database */ db 1284 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1285 third_party/sqlite/src/src/main.c pRet = db->pUpdateArg; db 1286 third_party/sqlite/src/src/main.c db->xUpdateCallback = xCallback; db 1287 third_party/sqlite/src/src/main.c db->pUpdateArg = pArg; db 1288 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1297 third_party/sqlite/src/src/main.c sqlite3 *db, /* Attach the hook to this database */ db 1302 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1303 third_party/sqlite/src/src/main.c pRet = db->pRollbackArg; db 1304 third_party/sqlite/src/src/main.c db->xRollbackCallback = xCallback; db 1305 third_party/sqlite/src/src/main.c db->pRollbackArg = pArg; db 1306 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1319 third_party/sqlite/src/src/main.c sqlite3 *db, /* Connection */ db 1325 third_party/sqlite/src/src/main.c sqlite3_wal_checkpoint(db, zDb); db 1343 third_party/sqlite/src/src/main.c int sqlite3_wal_autocheckpoint(sqlite3 *db, int nFrame){ db 1345 third_party/sqlite/src/src/main.c UNUSED_PARAMETER(db); db 1349 third_party/sqlite/src/src/main.c sqlite3_wal_hook(db, sqlite3WalDefaultHook, SQLITE_INT_TO_PTR(nFrame)); db 1351 third_party/sqlite/src/src/main.c sqlite3_wal_hook(db, 0, 0); db 1362 third_party/sqlite/src/src/main.c sqlite3 *db, /* Attach the hook to this db handle */ db 1368 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1369 third_party/sqlite/src/src/main.c pRet = db->pWalArg; db 1370 third_party/sqlite/src/src/main.c db->xWalCallback = xCallback; db 1371 third_party/sqlite/src/src/main.c db->pWalArg = pArg; db 1372 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1383 third_party/sqlite/src/src/main.c sqlite3 *db, /* Database handle */ db 1406 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1408 third_party/sqlite/src/src/main.c iDb = sqlite3FindDbName(db, zDb); db 1412 third_party/sqlite/src/src/main.c sqlite3Error(db, SQLITE_ERROR, "unknown database: %s", zDb); db 1414 third_party/sqlite/src/src/main.c rc = sqlite3Checkpoint(db, iDb, eMode, pnLog, pnCkpt); db 1415 third_party/sqlite/src/src/main.c sqlite3Error(db, rc, 0); db 1417 third_party/sqlite/src/src/main.c rc = sqlite3ApiExit(db, rc); db 1418 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1429 third_party/sqlite/src/src/main.c int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb){ db 1430 third_party/sqlite/src/src/main.c return sqlite3_wal_checkpoint_v2(db, zDb, SQLITE_CHECKPOINT_PASSIVE, 0, 0); db 1453 third_party/sqlite/src/src/main.c int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){ db 1458 third_party/sqlite/src/src/main.c assert( sqlite3_mutex_held(db->mutex) ); db 1462 third_party/sqlite/src/src/main.c for(i=0; i<db->nDb && rc==SQLITE_OK; i++){ db 1464 third_party/sqlite/src/src/main.c rc = sqlite3BtreeCheckpoint(db->aDb[i].pBt, eMode, pnLog, pnCkpt); db 1497 third_party/sqlite/src/src/main.c int sqlite3TempInMemory(const sqlite3 *db){ db 1499 third_party/sqlite/src/src/main.c return ( db->temp_store==2 ); db 1502 third_party/sqlite/src/src/main.c return ( db->temp_store!=1 ); db 1516 third_party/sqlite/src/src/main.c const char *sqlite3_errmsg(sqlite3 *db){ db 1518 third_party/sqlite/src/src/main.c if( !db ){ db 1521 third_party/sqlite/src/src/main.c if( !sqlite3SafetyCheckSickOrOk(db) ){ db 1524 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1525 third_party/sqlite/src/src/main.c if( db->mallocFailed ){ db 1528 third_party/sqlite/src/src/main.c z = (char*)sqlite3_value_text(db->pErr); db 1529 third_party/sqlite/src/src/main.c assert( !db->mallocFailed ); db 1531 third_party/sqlite/src/src/main.c z = sqlite3ErrStr(db->errCode); db 1534 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1543 third_party/sqlite/src/src/main.c const void *sqlite3_errmsg16(sqlite3 *db){ db 1557 third_party/sqlite/src/src/main.c if( !db ){ db 1560 third_party/sqlite/src/src/main.c if( !sqlite3SafetyCheckSickOrOk(db) ){ db 1563 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1564 third_party/sqlite/src/src/main.c if( db->mallocFailed ){ db 1567 third_party/sqlite/src/src/main.c z = sqlite3_value_text16(db->pErr); db 1569 third_party/sqlite/src/src/main.c sqlite3ValueSetStr(db->pErr, -1, sqlite3ErrStr(db->errCode), db 1571 third_party/sqlite/src/src/main.c z = sqlite3_value_text16(db->pErr); db 1578 third_party/sqlite/src/src/main.c db->mallocFailed = 0; db 1580 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 1589 third_party/sqlite/src/src/main.c int sqlite3_errcode(sqlite3 *db){ db 1590 third_party/sqlite/src/src/main.c if( db && !sqlite3SafetyCheckSickOrOk(db) ){ db 1593 third_party/sqlite/src/src/main.c if( !db || db->mallocFailed ){ db 1596 third_party/sqlite/src/src/main.c return db->errCode & db->errMask; db 1598 third_party/sqlite/src/src/main.c int sqlite3_extended_errcode(sqlite3 *db){ db 1599 third_party/sqlite/src/src/main.c if( db && !sqlite3SafetyCheckSickOrOk(db) ){ db 1602 third_party/sqlite/src/src/main.c if( !db || db->mallocFailed ){ db 1605 third_party/sqlite/src/src/main.c return db->errCode; db 1613 third_party/sqlite/src/src/main.c sqlite3* db, db 1625 third_party/sqlite/src/src/main.c assert( sqlite3_mutex_held(db->mutex) ); db 1645 third_party/sqlite/src/src/main.c pColl = sqlite3FindCollSeq(db, (u8)enc2, zName, 0); db 1647 third_party/sqlite/src/src/main.c if( db->activeVdbeCnt ){ db 1648 third_party/sqlite/src/src/main.c sqlite3Error(db, SQLITE_BUSY, db 1652 third_party/sqlite/src/src/main.c sqlite3ExpirePreparedStatements(db); db 1661 third_party/sqlite/src/src/main.c CollSeq *aColl = sqlite3HashFind(&db->aCollSeq, zName, nName); db 1675 third_party/sqlite/src/src/main.c pColl = sqlite3FindCollSeq(db, (u8)enc2, zName, 1); db 1682 third_party/sqlite/src/src/main.c sqlite3Error(db, SQLITE_OK, 0); db 1751 third_party/sqlite/src/src/main.c int sqlite3_limit(sqlite3 *db, int limitId, int newLimit){ db 1778 third_party/sqlite/src/src/main.c oldLimit = db->aLimit[limitId]; db 1783 third_party/sqlite/src/src/main.c db->aLimit[limitId] = newLimit; db 1799 third_party/sqlite/src/src/main.c sqlite3 *db; db 1866 third_party/sqlite/src/src/main.c db = sqlite3MallocZero( sizeof(sqlite3) ); db 1867 third_party/sqlite/src/src/main.c if( db==0 ) goto opendb_out; db 1869 third_party/sqlite/src/src/main.c db->mutex = sqlite3MutexAlloc(SQLITE_MUTEX_RECURSIVE); db 1870 third_party/sqlite/src/src/main.c if( db->mutex==0 ){ db 1871 third_party/sqlite/src/src/main.c sqlite3_free(db); db 1872 third_party/sqlite/src/src/main.c db = 0; db 1876 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 1877 third_party/sqlite/src/src/main.c db->errMask = 0xff; db 1878 third_party/sqlite/src/src/main.c db->nDb = 2; db 1879 third_party/sqlite/src/src/main.c db->magic = SQLITE_MAGIC_BUSY; db 1880 third_party/sqlite/src/src/main.c db->aDb = db->aDbStatic; db 1882 third_party/sqlite/src/src/main.c assert( sizeof(db->aLimit)==sizeof(aHardLimit) ); db 1883 third_party/sqlite/src/src/main.c memcpy(db->aLimit, aHardLimit, sizeof(db->aLimit)); db 1884 third_party/sqlite/src/src/main.c db->autoCommit = 1; db 1885 third_party/sqlite/src/src/main.c db->nextAutovac = -1; db 1886 third_party/sqlite/src/src/main.c db->nextPagesize = 0; db 1887 third_party/sqlite/src/src/main.c db->flags |= SQLITE_ShortColNames | SQLITE_AutoIndex | SQLITE_EnableTrigger db 1901 third_party/sqlite/src/src/main.c sqlite3HashInit(&db->aCollSeq); db 1903 third_party/sqlite/src/src/main.c sqlite3HashInit(&db->aModule); db 1906 third_party/sqlite/src/src/main.c db->pVfs = sqlite3_vfs_find(zVfs); db 1907 third_party/sqlite/src/src/main.c if( !db->pVfs ){ db 1909 third_party/sqlite/src/src/main.c sqlite3Error(db, rc, "no such vfs: %s", zVfs); db 1917 third_party/sqlite/src/src/main.c createCollation(db, "BINARY", SQLITE_UTF8, SQLITE_COLL_BINARY, 0, db 1919 third_party/sqlite/src/src/main.c createCollation(db, "BINARY", SQLITE_UTF16BE, SQLITE_COLL_BINARY, 0, db 1921 third_party/sqlite/src/src/main.c createCollation(db, "BINARY", SQLITE_UTF16LE, SQLITE_COLL_BINARY, 0, db 1923 third_party/sqlite/src/src/main.c createCollation(db, "RTRIM", SQLITE_UTF8, SQLITE_COLL_USER, (void*)1, db 1925 third_party/sqlite/src/src/main.c if( db->mallocFailed ){ db 1928 third_party/sqlite/src/src/main.c db->pDfltColl = sqlite3FindCollSeq(db, SQLITE_UTF8, "BINARY", 0); db 1929 third_party/sqlite/src/src/main.c assert( db->pDfltColl!=0 ); db 1932 third_party/sqlite/src/src/main.c createCollation(db, "NOCASE", SQLITE_UTF8, SQLITE_COLL_NOCASE, 0, db 1936 third_party/sqlite/src/src/main.c db->openFlags = flags; db 1937 third_party/sqlite/src/src/main.c rc = sqlite3BtreeOpen(zFilename, db, &db->aDb[0].pBt, 0, db 1943 third_party/sqlite/src/src/main.c sqlite3Error(db, rc, 0); db 1946 third_party/sqlite/src/src/main.c db->aDb[0].pSchema = sqlite3SchemaGet(db, db->aDb[0].pBt); db 1947 third_party/sqlite/src/src/main.c db->aDb[1].pSchema = sqlite3SchemaGet(db, 0); db 1953 third_party/sqlite/src/src/main.c db->aDb[0].zName = "main"; db 1954 third_party/sqlite/src/src/main.c db->aDb[0].safety_level = 3; db 1955 third_party/sqlite/src/src/main.c db->aDb[1].zName = "temp"; db 1956 third_party/sqlite/src/src/main.c db->aDb[1].safety_level = 1; db 1958 third_party/sqlite/src/src/main.c db->magic = SQLITE_MAGIC_OPEN; db 1959 third_party/sqlite/src/src/main.c if( db->mallocFailed ){ db 1967 third_party/sqlite/src/src/main.c sqlite3Error(db, SQLITE_OK, 0); db 1968 third_party/sqlite/src/src/main.c sqlite3RegisterBuiltinFunctions(db); db 1973 third_party/sqlite/src/src/main.c sqlite3AutoLoadExtensions(db); db 1974 third_party/sqlite/src/src/main.c rc = sqlite3_errcode(db); db 1980 third_party/sqlite/src/src/main.c if( !db->mallocFailed ){ db 1982 third_party/sqlite/src/src/main.c rc = sqlite3Fts1Init(db); db 1987 third_party/sqlite/src/src/main.c if( !db->mallocFailed && rc==SQLITE_OK ){ db 1989 third_party/sqlite/src/src/main.c rc = sqlite3Fts2Init(db); db 1994 third_party/sqlite/src/src/main.c if( !db->mallocFailed && rc==SQLITE_OK ){ db 1995 third_party/sqlite/src/src/main.c rc = sqlite3Fts3Init(db); db 2000 third_party/sqlite/src/src/main.c if( !db->mallocFailed && rc==SQLITE_OK ){ db 2001 third_party/sqlite/src/src/main.c rc = sqlite3IcuInit(db); db 2006 third_party/sqlite/src/src/main.c if( !db->mallocFailed && rc==SQLITE_OK){ db 2007 third_party/sqlite/src/src/main.c rc = sqlite3RtreeInit(db); db 2011 third_party/sqlite/src/src/main.c sqlite3Error(db, rc, 0); db 2018 third_party/sqlite/src/src/main.c db->dfltLockMode = SQLITE_DEFAULT_LOCKING_MODE; db 2019 third_party/sqlite/src/src/main.c sqlite3PagerLockingMode(sqlite3BtreePager(db->aDb[0].pBt), db 2024 third_party/sqlite/src/src/main.c setupLookaside(db, 0, sqlite3GlobalConfig.szLookaside, db 2027 third_party/sqlite/src/src/main.c sqlite3_wal_autocheckpoint(db, SQLITE_DEFAULT_WAL_AUTOCHECKPOINT); db 2030 third_party/sqlite/src/src/main.c if( db ){ db 2031 third_party/sqlite/src/src/main.c assert( db->mutex!=0 || isThreadsafe==0 || sqlite3GlobalConfig.bFullMutex==0 ); db 2032 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2034 third_party/sqlite/src/src/main.c rc = sqlite3_errcode(db); db 2036 third_party/sqlite/src/src/main.c sqlite3_close(db); db 2037 third_party/sqlite/src/src/main.c db = 0; db 2039 third_party/sqlite/src/src/main.c db->magic = SQLITE_MAGIC_SICK; db 2041 third_party/sqlite/src/src/main.c *ppDb = db; db 2106 third_party/sqlite/src/src/main.c sqlite3* db, db 2113 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2114 third_party/sqlite/src/src/main.c assert( !db->mallocFailed ); db 2115 third_party/sqlite/src/src/main.c rc = createCollation(db, zName, (u8)enc, SQLITE_COLL_USER, pCtx, xCompare, 0); db 2116 third_party/sqlite/src/src/main.c rc = sqlite3ApiExit(db, rc); db 2117 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2125 third_party/sqlite/src/src/main.c sqlite3* db, db 2133 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2134 third_party/sqlite/src/src/main.c assert( !db->mallocFailed ); db 2135 third_party/sqlite/src/src/main.c rc = createCollation(db, zName, (u8)enc, SQLITE_COLL_USER, pCtx, xCompare, xDel); db 2136 third_party/sqlite/src/src/main.c rc = sqlite3ApiExit(db, rc); db 2137 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2146 third_party/sqlite/src/src/main.c sqlite3* db, db 2154 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2155 third_party/sqlite/src/src/main.c assert( !db->mallocFailed ); db 2156 third_party/sqlite/src/src/main.c zName8 = sqlite3Utf16to8(db, zName, -1, SQLITE_UTF16NATIVE); db 2158 third_party/sqlite/src/src/main.c rc = createCollation(db, zName8, (u8)enc, SQLITE_COLL_USER, pCtx, xCompare, 0); db 2159 third_party/sqlite/src/src/main.c sqlite3DbFree(db, zName8); db 2161 third_party/sqlite/src/src/main.c rc = sqlite3ApiExit(db, rc); db 2162 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2172 third_party/sqlite/src/src/main.c sqlite3 *db, db 2176 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2177 third_party/sqlite/src/src/main.c db->xCollNeeded = xCollNeeded; db 2178 third_party/sqlite/src/src/main.c db->xCollNeeded16 = 0; db 2179 third_party/sqlite/src/src/main.c db->pCollNeededArg = pCollNeededArg; db 2180 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2190 third_party/sqlite/src/src/main.c sqlite3 *db, db 2194 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2195 third_party/sqlite/src/src/main.c db->xCollNeeded = 0; db 2196 third_party/sqlite/src/src/main.c db->xCollNeeded16 = xCollNeeded16; db 2197 third_party/sqlite/src/src/main.c db->pCollNeededArg = pCollNeededArg; db 2198 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2221 third_party/sqlite/src/src/main.c int sqlite3_get_autocommit(sqlite3 *db){ db 2222 third_party/sqlite/src/src/main.c return db->autoCommit; db 2277 third_party/sqlite/src/src/main.c sqlite3 *db, /* Connection handle */ db 2300 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2301 third_party/sqlite/src/src/main.c sqlite3BtreeEnterAll(db); db 2302 third_party/sqlite/src/src/main.c rc = sqlite3Init(db, &zErrMsg); db 2308 third_party/sqlite/src/src/main.c pTab = sqlite3FindTable(db, zTableName, zDbName); db 2358 third_party/sqlite/src/src/main.c sqlite3BtreeLeaveAll(db); db 2371 third_party/sqlite/src/src/main.c sqlite3DbFree(db, zErrMsg); db 2372 third_party/sqlite/src/src/main.c zErrMsg = sqlite3MPrintf(db, "no such table column: %s.%s", zTableName, db 2376 third_party/sqlite/src/src/main.c sqlite3Error(db, rc, (zErrMsg?"%s":0), zErrMsg); db 2377 third_party/sqlite/src/src/main.c sqlite3DbFree(db, zErrMsg); db 2378 third_party/sqlite/src/src/main.c rc = sqlite3ApiExit(db, rc); db 2379 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2403 third_party/sqlite/src/src/main.c int sqlite3_extended_result_codes(sqlite3 *db, int onoff){ db 2404 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2405 third_party/sqlite/src/src/main.c db->errMask = onoff ? 0xffffffff : 0xff; db 2406 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2413 third_party/sqlite/src/src/main.c int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){ db 2416 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2420 third_party/sqlite/src/src/main.c for(iDb=0; iDb<db->nDb; iDb++){ db 2421 third_party/sqlite/src/src/main.c if( strcmp(db->aDb[iDb].zName, zDbName)==0 ) break; db 2424 third_party/sqlite/src/src/main.c if( iDb<db->nDb ){ db 2425 third_party/sqlite/src/src/main.c Btree *pBtree = db->aDb[iDb].pBt; db 2445 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2599 third_party/sqlite/src/src/main.c sqlite3 *db = va_arg(ap, sqlite3*); db 2601 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(db->mutex); db 2602 third_party/sqlite/src/src/main.c sqlite3BtreeSetPageSize(db->aDb[0].pBt, 0, x, 0); db 2603 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(db->mutex); db 2617 third_party/sqlite/src/src/main.c sqlite3 *db = va_arg(ap, sqlite3*); db 2619 third_party/sqlite/src/src/main.c db->flags = (x & SQLITE_OptMask) | (db->flags & ~SQLITE_OptMask); db 434 third_party/sqlite/src/src/malloc.c static int isLookaside(sqlite3 *db, void *p){ db 435 third_party/sqlite/src/src/malloc.c return p && p>=db->lookaside.pStart && p<db->lookaside.pEnd; db 450 third_party/sqlite/src/src/malloc.c int sqlite3DbMallocSize(sqlite3 *db, void *p){ db 451 third_party/sqlite/src/src/malloc.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); db 452 third_party/sqlite/src/src/malloc.c if( db && isLookaside(db, p) ){ db 453 third_party/sqlite/src/src/malloc.c return db->lookaside.sz; db 457 third_party/sqlite/src/src/malloc.c assert( db!=0 || sqlite3MemdebugNoType(p, MEMTYPE_LOOKASIDE) ); db 484 third_party/sqlite/src/src/malloc.c void sqlite3DbFree(sqlite3 *db, void *p){ db 485 third_party/sqlite/src/src/malloc.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); db 486 third_party/sqlite/src/src/malloc.c if( db ){ db 487 third_party/sqlite/src/src/malloc.c if( db->pnBytesFreed ){ db 488 third_party/sqlite/src/src/malloc.c *db->pnBytesFreed += sqlite3DbMallocSize(db, p); db 491 third_party/sqlite/src/src/malloc.c if( isLookaside(db, p) ){ db 493 third_party/sqlite/src/src/malloc.c pBuf->pNext = db->lookaside.pFree; db 494 third_party/sqlite/src/src/malloc.c db->lookaside.pFree = pBuf; db 495 third_party/sqlite/src/src/malloc.c db->lookaside.nOut--; db 501 third_party/sqlite/src/src/malloc.c assert( db!=0 || sqlite3MemdebugNoType(p, MEMTYPE_LOOKASIDE) ); db 583 third_party/sqlite/src/src/malloc.c void *sqlite3DbMallocZero(sqlite3 *db, int n){ db 584 third_party/sqlite/src/src/malloc.c void *p = sqlite3DbMallocRaw(db, n); db 609 third_party/sqlite/src/src/malloc.c void *sqlite3DbMallocRaw(sqlite3 *db, int n){ db 611 third_party/sqlite/src/src/malloc.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); db 612 third_party/sqlite/src/src/malloc.c assert( db==0 || db->pnBytesFreed==0 ); db 614 third_party/sqlite/src/src/malloc.c if( db ){ db 616 third_party/sqlite/src/src/malloc.c if( db->mallocFailed ){ db 619 third_party/sqlite/src/src/malloc.c if( db->lookaside.bEnabled ){ db 620 third_party/sqlite/src/src/malloc.c if( n>db->lookaside.sz ){ db 621 third_party/sqlite/src/src/malloc.c db->lookaside.anStat[1]++; db 622 third_party/sqlite/src/src/malloc.c }else if( (pBuf = db->lookaside.pFree)==0 ){ db 623 third_party/sqlite/src/src/malloc.c db->lookaside.anStat[2]++; db 625 third_party/sqlite/src/src/malloc.c db->lookaside.pFree = pBuf->pNext; db 626 third_party/sqlite/src/src/malloc.c db->lookaside.nOut++; db 627 third_party/sqlite/src/src/malloc.c db->lookaside.anStat[0]++; db 628 third_party/sqlite/src/src/malloc.c if( db->lookaside.nOut>db->lookaside.mxOut ){ db 629 third_party/sqlite/src/src/malloc.c db->lookaside.mxOut = db->lookaside.nOut; db 636 third_party/sqlite/src/src/malloc.c if( db && db->mallocFailed ){ db 641 third_party/sqlite/src/src/malloc.c if( !p && db ){ db 642 third_party/sqlite/src/src/malloc.c db->mallocFailed = 1; db 645 third_party/sqlite/src/src/malloc.c ((db && db->lookaside.bEnabled) ? MEMTYPE_LOOKASIDE : MEMTYPE_HEAP)); db 653 third_party/sqlite/src/src/malloc.c void *sqlite3DbRealloc(sqlite3 *db, void *p, int n){ db 655 third_party/sqlite/src/src/malloc.c assert( db!=0 ); db 656 third_party/sqlite/src/src/malloc.c assert( sqlite3_mutex_held(db->mutex) ); db 657 third_party/sqlite/src/src/malloc.c if( db->mallocFailed==0 ){ db 659 third_party/sqlite/src/src/malloc.c return sqlite3DbMallocRaw(db, n); db 661 third_party/sqlite/src/src/malloc.c if( isLookaside(db, p) ){ db 662 third_party/sqlite/src/src/malloc.c if( n<=db->lookaside.sz ){ db 665 third_party/sqlite/src/src/malloc.c pNew = sqlite3DbMallocRaw(db, n); db 667 third_party/sqlite/src/src/malloc.c memcpy(pNew, p, db->lookaside.sz); db 668 third_party/sqlite/src/src/malloc.c sqlite3DbFree(db, p); db 677 third_party/sqlite/src/src/malloc.c db->mallocFailed = 1; db 680 third_party/sqlite/src/src/malloc.c (db->lookaside.bEnabled ? MEMTYPE_LOOKASIDE : MEMTYPE_HEAP)); db 690 third_party/sqlite/src/src/malloc.c void *sqlite3DbReallocOrFree(sqlite3 *db, void *p, int n){ db 692 third_party/sqlite/src/src/malloc.c pNew = sqlite3DbRealloc(db, p, n); db 694 third_party/sqlite/src/src/malloc.c sqlite3DbFree(db, p); db 706 third_party/sqlite/src/src/malloc.c char *sqlite3DbStrDup(sqlite3 *db, const char *z){ db 714 third_party/sqlite/src/src/malloc.c zNew = sqlite3DbMallocRaw(db, (int)n); db 720 third_party/sqlite/src/src/malloc.c char *sqlite3DbStrNDup(sqlite3 *db, const char *z, int n){ db 726 third_party/sqlite/src/src/malloc.c zNew = sqlite3DbMallocRaw(db, n+1); db 739 third_party/sqlite/src/src/malloc.c void sqlite3SetString(char **pz, sqlite3 *db, const char *zFormat, ...){ db 744 third_party/sqlite/src/src/malloc.c z = sqlite3VMPrintf(db, zFormat, ap); db 746 third_party/sqlite/src/src/malloc.c sqlite3DbFree(db, *pz); db 764 third_party/sqlite/src/src/malloc.c int sqlite3ApiExit(sqlite3* db, int rc){ db 769 third_party/sqlite/src/src/malloc.c assert( !db || sqlite3_mutex_held(db->mutex) ); db 770 third_party/sqlite/src/src/malloc.c if( db && (db->mallocFailed || rc==SQLITE_IOERR_NOMEM) ){ db 771 third_party/sqlite/src/src/malloc.c sqlite3Error(db, SQLITE_NOMEM, 0); db 772 third_party/sqlite/src/src/malloc.c db->mallocFailed = 0; db 775 third_party/sqlite/src/src/malloc.c return rc & (db ? db->errMask : 0xff); db 57 third_party/sqlite/src/src/notify.c static void checkListProperties(sqlite3 *db){ db 70 third_party/sqlite/src/src/notify.c assert( db==0 || p->pUnlockConnection!=db ); db 71 third_party/sqlite/src/src/notify.c assert( db==0 || p->pBlockingConnection!=db ); db 83 third_party/sqlite/src/src/notify.c static void removeFromBlockedList(sqlite3 *db){ db 87 third_party/sqlite/src/src/notify.c if( *pp==db ){ db 98 third_party/sqlite/src/src/notify.c static void addToBlockedList(sqlite3 *db){ db 103 third_party/sqlite/src/src/notify.c *pp && (*pp)->xUnlockNotify!=db->xUnlockNotify; db 106 third_party/sqlite/src/src/notify.c db->pNextBlocked = *pp; db 107 third_party/sqlite/src/src/notify.c *pp = db; db 149 third_party/sqlite/src/src/notify.c sqlite3 *db, db 155 third_party/sqlite/src/src/notify.c sqlite3_mutex_enter(db->mutex); db 159 third_party/sqlite/src/src/notify.c removeFromBlockedList(db); db 160 third_party/sqlite/src/src/notify.c db->pBlockingConnection = 0; db 161 third_party/sqlite/src/src/notify.c db->pUnlockConnection = 0; db 162 third_party/sqlite/src/src/notify.c db->xUnlockNotify = 0; db 163 third_party/sqlite/src/src/notify.c db->pUnlockArg = 0; db 164 third_party/sqlite/src/src/notify.c }else if( 0==db->pBlockingConnection ){ db 173 third_party/sqlite/src/src/notify.c for(p=db->pBlockingConnection; p && p!=db; p=p->pUnlockConnection){} db 177 third_party/sqlite/src/src/notify.c db->pUnlockConnection = db->pBlockingConnection; db 178 third_party/sqlite/src/src/notify.c db->xUnlockNotify = xNotify; db 179 third_party/sqlite/src/src/notify.c db->pUnlockArg = pArg; db 180 third_party/sqlite/src/src/notify.c removeFromBlockedList(db); db 181 third_party/sqlite/src/src/notify.c addToBlockedList(db); db 186 third_party/sqlite/src/src/notify.c assert( !db->mallocFailed ); db 187 third_party/sqlite/src/src/notify.c sqlite3Error(db, rc, (rc?"database is deadlocked":0)); db 188 third_party/sqlite/src/src/notify.c sqlite3_mutex_leave(db->mutex); db 198 third_party/sqlite/src/src/notify.c void sqlite3ConnectionBlocked(sqlite3 *db, sqlite3 *pBlocker){ db 200 third_party/sqlite/src/src/notify.c if( db->pBlockingConnection==0 && db->pUnlockConnection==0 ){ db 201 third_party/sqlite/src/src/notify.c addToBlockedList(db); db 203 third_party/sqlite/src/src/notify.c db->pBlockingConnection = pBlocker; db 226 third_party/sqlite/src/src/notify.c void sqlite3ConnectionUnlocked(sqlite3 *db){ db 242 third_party/sqlite/src/src/notify.c if( p->pBlockingConnection==db ){ db 247 third_party/sqlite/src/src/notify.c if( p->pUnlockConnection==db ){ db 325 third_party/sqlite/src/src/notify.c void sqlite3ConnectionClosed(sqlite3 *db){ db 326 third_party/sqlite/src/src/notify.c sqlite3ConnectionUnlocked(db); db 328 third_party/sqlite/src/src/notify.c removeFromBlockedList(db); db 329 third_party/sqlite/src/src/notify.c checkListProperties(db); db 149 third_party/sqlite/src/src/parse.y pParse->db->lookaside.bEnabled = 0; db 165 third_party/sqlite/src/src/parse.y sqlite3SelectDelete(pParse->db, S); db 399 third_party/sqlite/src/src/parse.y sqlite3SelectDelete(pParse->db, X); db 403 third_party/sqlite/src/src/parse.y %destructor select {sqlite3SelectDelete(pParse->db, $$);} db 405 third_party/sqlite/src/src/parse.y %destructor oneselect {sqlite3SelectDelete(pParse->db, $$);} db 414 third_party/sqlite/src/src/parse.y sqlite3SelectDelete(pParse->db, X); db 442 third_party/sqlite/src/src/parse.y %destructor selcollist {sqlite3ExprListDelete(pParse->db, $$);} db 444 third_party/sqlite/src/src/parse.y %destructor sclp {sqlite3ExprListDelete(pParse->db, $$);} db 453 third_party/sqlite/src/src/parse.y Expr *p = sqlite3Expr(pParse->db, TK_ALL, 0); db 473 third_party/sqlite/src/src/parse.y %destructor seltablist {sqlite3SrcListDelete(pParse->db, $$);} db 475 third_party/sqlite/src/src/parse.y %destructor stl_prefix {sqlite3SrcListDelete(pParse->db, $$);} db 477 third_party/sqlite/src/src/parse.y %destructor from {sqlite3SrcListDelete(pParse->db, $$);} db 481 third_party/sqlite/src/src/parse.y from(A) ::= . {A = sqlite3DbMallocZero(pParse->db, sizeof(*A));} db 534 third_party/sqlite/src/src/parse.y %destructor fullname {sqlite3SrcListDelete(pParse->db, $$);} db 535 third_party/sqlite/src/src/parse.y fullname(A) ::= nm(X) dbnm(Y). {A = sqlite3SrcListAppend(pParse->db,0,&X,&Y);} db 546 third_party/sqlite/src/src/parse.y %destructor on_opt {sqlite3ExprDelete(pParse->db, $$);} db 566 third_party/sqlite/src/src/parse.y %destructor using_opt {sqlite3IdListDelete(pParse->db, $$);} db 572 third_party/sqlite/src/src/parse.y %destructor orderby_opt {sqlite3ExprListDelete(pParse->db, $$);} db 574 third_party/sqlite/src/src/parse.y %destructor sortlist {sqlite3ExprListDelete(pParse->db, $$);} db 576 third_party/sqlite/src/src/parse.y %destructor sortitem {sqlite3ExprDelete(pParse->db, $$);} db 597 third_party/sqlite/src/src/parse.y %destructor groupby_opt {sqlite3ExprListDelete(pParse->db, $$);} db 602 third_party/sqlite/src/src/parse.y %destructor having_opt {sqlite3ExprDelete(pParse->db, $$);} db 644 third_party/sqlite/src/src/parse.y %destructor where_opt {sqlite3ExprDelete(pParse->db, $$);} db 668 third_party/sqlite/src/src/parse.y %destructor setlist {sqlite3ExprListDelete(pParse->db, $$);} db 695 third_party/sqlite/src/src/parse.y %destructor itemlist {sqlite3ExprListDelete(pParse->db, $$);} db 703 third_party/sqlite/src/src/parse.y %destructor inscollist_opt {sqlite3IdListDelete(pParse->db, $$);} db 705 third_party/sqlite/src/src/parse.y %destructor inscollist {sqlite3IdListDelete(pParse->db, $$);} db 710 third_party/sqlite/src/src/parse.y {A = sqlite3IdListAppend(pParse->db,X,&Y);} db 712 third_party/sqlite/src/src/parse.y {A = sqlite3IdListAppend(pParse->db,0,&Y);} db 718 third_party/sqlite/src/src/parse.y %destructor expr {sqlite3ExprDelete(pParse->db, $$.pExpr);} db 720 third_party/sqlite/src/src/parse.y %destructor term {sqlite3ExprDelete(pParse->db, $$.pExpr);} db 794 third_party/sqlite/src/src/parse.y if( Y && Y->nExpr>pParse->db->aLimit[SQLITE_LIMIT_FUNCTION_ARG] ){ db 896 third_party/sqlite/src/src/parse.y sqlite3 *db = pParse->db; db 897 third_party/sqlite/src/src/parse.y if( db->mallocFailed==0 && pY->op==TK_NULL ){ db 899 third_party/sqlite/src/src/parse.y sqlite3ExprDelete(db, pA->pRight); db 955 third_party/sqlite/src/src/parse.y sqlite3ExprListDelete(pParse->db, pList); db 976 third_party/sqlite/src/src/parse.y sqlite3ExprDelete(pParse->db, X.pExpr); db 983 third_party/sqlite/src/src/parse.y sqlite3ExprListDelete(pParse->db, Y); db 997 third_party/sqlite/src/src/parse.y sqlite3SelectDelete(pParse->db, X); db 1009 third_party/sqlite/src/src/parse.y sqlite3SelectDelete(pParse->db, Y); db 1016 third_party/sqlite/src/src/parse.y SrcList *pSrc = sqlite3SrcListAppend(pParse->db, 0,&Y,&Z); db 1023 third_party/sqlite/src/src/parse.y sqlite3SrcListDelete(pParse->db, pSrc); db 1036 third_party/sqlite/src/src/parse.y sqlite3SelectDelete(pParse->db, Y); db 1050 third_party/sqlite/src/src/parse.y sqlite3ExprListDelete(pParse->db, Y); db 1056 third_party/sqlite/src/src/parse.y %destructor case_exprlist {sqlite3ExprListDelete(pParse->db, $$);} db 1066 third_party/sqlite/src/src/parse.y %destructor case_else {sqlite3ExprDelete(pParse->db, $$);} db 1070 third_party/sqlite/src/src/parse.y %destructor case_operand {sqlite3ExprDelete(pParse->db, $$);} db 1075 third_party/sqlite/src/src/parse.y %destructor exprlist {sqlite3ExprListDelete(pParse->db, $$);} db 1077 third_party/sqlite/src/src/parse.y %destructor nexprlist {sqlite3ExprListDelete(pParse->db, $$);} db 1092 third_party/sqlite/src/src/parse.y sqlite3SrcListAppend(pParse->db,0,&Y,0), Z, U, db 1101 third_party/sqlite/src/src/parse.y %destructor idxlist {sqlite3ExprListDelete(pParse->db, $$);} db 1103 third_party/sqlite/src/src/parse.y %destructor idxlist_opt {sqlite3ExprListDelete(pParse->db, $$);} db 1110 third_party/sqlite/src/src/parse.y p = sqlite3Expr(pParse->db, TK_COLUMN, 0); db 1196 third_party/sqlite/src/src/parse.y %destructor trigger_event {sqlite3IdListDelete(pParse->db, $$.b);} db 1205 third_party/sqlite/src/src/parse.y %destructor when_clause {sqlite3ExprDelete(pParse->db, $$);} db 1210 third_party/sqlite/src/src/parse.y %destructor trigger_cmd_list {sqlite3DeleteTriggerStep(pParse->db, $$);} db 1255 third_party/sqlite/src/src/parse.y %destructor trigger_cmd {sqlite3DeleteTriggerStep(pParse->db, $$);} db 1259 third_party/sqlite/src/src/parse.y { A = sqlite3TriggerUpdateStep(pParse->db, &X, Y, Z, R); } db 1264 third_party/sqlite/src/src/parse.y {A = sqlite3TriggerInsertStep(pParse->db, &X, F, Y, 0, R);} db 1267 third_party/sqlite/src/src/parse.y {A = sqlite3TriggerInsertStep(pParse->db, &X, F, 0, S, R);} db 1271 third_party/sqlite/src/src/parse.y {A = sqlite3TriggerDeleteStep(pParse->db, &X, Y);} db 1274 third_party/sqlite/src/src/parse.y trigger_cmd(A) ::= select(X). {A = sqlite3TriggerSelectStep(pParse->db, X); } db 1318 third_party/sqlite/src/src/parse.y %destructor key_opt {sqlite3ExprDelete(pParse->db, $$);} db 1347 third_party/sqlite/src/src/parse.y pParse->db->lookaside.bEnabled = 0; db 109 third_party/sqlite/src/src/pragma.c sqlite3 *db = pParse->db; db 110 third_party/sqlite/src/src/pragma.c if( db->aDb[1].pBt!=0 ){ db 111 third_party/sqlite/src/src/pragma.c if( !db->autoCommit || sqlite3BtreeIsInReadTrans(db->aDb[1].pBt) ){ db 116 third_party/sqlite/src/src/pragma.c sqlite3BtreeClose(db->aDb[1].pBt); db 117 third_party/sqlite/src/src/pragma.c db->aDb[1].pBt = 0; db 118 third_party/sqlite/src/src/pragma.c sqlite3ResetInternalSchema(db, -1); db 132 third_party/sqlite/src/src/pragma.c sqlite3 *db = pParse->db; db 133 third_party/sqlite/src/src/pragma.c if( db->temp_store==ts ) return SQLITE_OK; db 137 third_party/sqlite/src/src/pragma.c db->temp_store = (u8)ts; db 148 third_party/sqlite/src/src/pragma.c i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value)); db 207 third_party/sqlite/src/src/pragma.c sqlite3 *db = pParse->db; db 213 third_party/sqlite/src/src/pragma.c returnSingleInt(pParse, p->zName, (db->flags & p->mask)!=0 ); db 216 third_party/sqlite/src/src/pragma.c if( db->autoCommit==0 ){ db 223 third_party/sqlite/src/src/pragma.c db->flags |= mask; db 225 third_party/sqlite/src/src/pragma.c db->flags &= ~mask; db 313 third_party/sqlite/src/src/pragma.c sqlite3 *db = pParse->db; db 315 third_party/sqlite/src/src/pragma.c Vdbe *v = pParse->pVdbe = sqlite3VdbeCreate(db); db 324 third_party/sqlite/src/src/pragma.c pDb = &db->aDb[iDb]; db 333 third_party/sqlite/src/src/pragma.c zLeft = sqlite3NameFromToken(db, pId); db 336 third_party/sqlite/src/src/pragma.c zRight = sqlite3MPrintf(db, "-%T", pValue); db 338 third_party/sqlite/src/src/pragma.c zRight = sqlite3NameFromToken(db, pValue); db 391 third_party/sqlite/src/src/pragma.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 416 third_party/sqlite/src/src/pragma.c db->nextPagesize = sqlite3Atoi(zRight); db 417 third_party/sqlite/src/src/pragma.c if( SQLITE_NOMEM==sqlite3BtreeSetPageSize(pBt, db->nextPagesize, -1, 0) ){ db 418 third_party/sqlite/src/src/pragma.c db->mallocFailed = 1; db 440 third_party/sqlite/src/src/pragma.c for(ii=0; ii<db->nDb; ii++){ db 441 third_party/sqlite/src/src/pragma.c sqlite3BtreeSecureDelete(db->aDb[ii].pBt, b); db 491 third_party/sqlite/src/src/pragma.c eMode = db->dfltLockMode; db 504 third_party/sqlite/src/src/pragma.c assert(pDb==&db->aDb[0]); db 505 third_party/sqlite/src/src/pragma.c for(ii=2; ii<db->nDb; ii++){ db 506 third_party/sqlite/src/src/pragma.c pPager = sqlite3BtreePager(db->aDb[ii].pBt); db 509 third_party/sqlite/src/src/pragma.c db->dfltLockMode = (u8)eMode; db 564 third_party/sqlite/src/src/pragma.c for(ii=db->nDb-1; ii>=0; ii--){ db 565 third_party/sqlite/src/src/pragma.c if( db->aDb[ii].pBt && (ii==iDb || pId2->n==0) ){ db 617 third_party/sqlite/src/src/pragma.c db->nextAutovac = (u8)eAuto; db 694 third_party/sqlite/src/src/pragma.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 717 third_party/sqlite/src/src/pragma.c returnSingleInt(pParse, "temp_store", db->temp_store); db 747 third_party/sqlite/src/src/pragma.c rc = sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE, &res); db 754 third_party/sqlite/src/src/pragma.c || (SQLITE_TEMP_STORE==1 && db->temp_store<=1) db 755 third_party/sqlite/src/src/pragma.c || (SQLITE_TEMP_STORE==2 && db->temp_store==1) db 833 third_party/sqlite/src/src/pragma.c if( !db->autoCommit ){ db 866 third_party/sqlite/src/src/pragma.c pTab = sqlite3FindTable(db, zRight, zDb); db 905 third_party/sqlite/src/src/pragma.c pIdx = sqlite3FindIndex(db, zRight, zDb); db 929 third_party/sqlite/src/src/pragma.c pTab = sqlite3FindTable(db, zRight, zDb); db 960 third_party/sqlite/src/src/pragma.c for(i=0; i<db->nDb; i++){ db 961 third_party/sqlite/src/src/pragma.c if( db->aDb[i].pBt==0 ) continue; db 962 third_party/sqlite/src/src/pragma.c assert( db->aDb[i].zName!=0 ); db 964 third_party/sqlite/src/src/pragma.c sqlite3VdbeAddOp4(v, OP_String8, 0, 2, 0, db->aDb[i].zName, 0); db 966 third_party/sqlite/src/src/pragma.c sqlite3BtreeGetFilename(db->aDb[i].pBt), 0); db 978 third_party/sqlite/src/src/pragma.c for(p=sqliteHashFirst(&db->aCollSeq); p; p=sqliteHashNext(p)){ db 992 third_party/sqlite/src/src/pragma.c pTab = sqlite3FindTable(db, zRight, zDb); db 1050 third_party/sqlite/src/src/pragma.c sqlite3RegisterLikeFunctions(db, getBoolean(zRight)); db 1098 third_party/sqlite/src/src/pragma.c for(i=0; i<db->nDb; i++){ db 1115 third_party/sqlite/src/src/pragma.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 1116 third_party/sqlite/src/src/pragma.c pTbls = &db->aDb[i].pSchema->tblHash; db 1138 third_party/sqlite/src/src/pragma.c sqlite3MPrintf(db, "*** in database %s ***\n", db->aDb[i].zName), db 1269 third_party/sqlite/src/src/pragma.c sqlite3VdbeChangeP4(v, -1, encnames[ENC(pParse->db)].zName, P4_STATIC); db 1278 third_party/sqlite/src/src/pragma.c !(DbHasProperty(db, 0, DB_SchemaLoaded)) || db 1279 third_party/sqlite/src/src/pragma.c DbHasProperty(db, 0, DB_Empty) db 1283 third_party/sqlite/src/src/pragma.c ENC(pParse->db) = pEnc->enc ? pEnc->enc : SQLITE_UTF16NATIVE; db 1425 third_party/sqlite/src/src/pragma.c sqlite3_wal_autocheckpoint(db, sqlite3Atoi(zRight)); db 1428 third_party/sqlite/src/src/pragma.c db->xWalCallback==sqlite3WalDefaultHook ? db 1429 third_party/sqlite/src/src/pragma.c SQLITE_PTR_TO_INT(db->pWalArg) : 0); db 1446 third_party/sqlite/src/src/pragma.c for(i=0; i<db->nDb; i++){ db 1451 third_party/sqlite/src/src/pragma.c if( db->aDb[i].zName==0 ) continue; db 1452 third_party/sqlite/src/src/pragma.c sqlite3VdbeAddOp4(v, OP_String8, 0, 1, 0, db->aDb[i].zName, P4_STATIC); db 1453 third_party/sqlite/src/src/pragma.c pBt = db->aDb[i].pBt; db 1456 third_party/sqlite/src/src/pragma.c }else if( sqlite3_file_control(db, i ? db->aDb[i].zName : 0, db 1469 third_party/sqlite/src/src/pragma.c sqlite3_key(db, zRight, sqlite3Strlen30(zRight)); db 1472 third_party/sqlite/src/src/pragma.c sqlite3_rekey(db, zRight, sqlite3Strlen30(zRight)); db 1484 third_party/sqlite/src/src/pragma.c sqlite3_key(db, zKey, i/2); db 1486 third_party/sqlite/src/src/pragma.c sqlite3_rekey(db, zKey, i/2); db 1513 third_party/sqlite/src/src/pragma.c if( db->autoCommit ){ db 1515 third_party/sqlite/src/src/pragma.c (db->flags&SQLITE_FullFSync)!=0, db 1516 third_party/sqlite/src/src/pragma.c (db->flags&SQLITE_CkptFullFSync)!=0); db 1520 third_party/sqlite/src/src/pragma.c sqlite3DbFree(db, zLeft); db 1521 third_party/sqlite/src/src/pragma.c sqlite3DbFree(db, zRight); db 27 third_party/sqlite/src/src/prepare.c sqlite3 *db = pData->db; db 28 third_party/sqlite/src/src/prepare.c if( !db->mallocFailed && (db->flags & SQLITE_RecoveryMode)==0 ){ db 30 third_party/sqlite/src/src/prepare.c sqlite3SetString(pData->pzErrMsg, db, db 33 third_party/sqlite/src/src/prepare.c *pData->pzErrMsg = sqlite3MAppendf(db, *pData->pzErrMsg, db 37 third_party/sqlite/src/src/prepare.c pData->rc = db->mallocFailed ? SQLITE_NOMEM : SQLITE_CORRUPT_BKPT; db 54 third_party/sqlite/src/src/prepare.c sqlite3 *db = pData->db; db 59 third_party/sqlite/src/src/prepare.c assert( sqlite3_mutex_held(db->mutex) ); db 60 third_party/sqlite/src/src/prepare.c DbClearProperty(db, iDb, DB_Empty); db 61 third_party/sqlite/src/src/prepare.c if( db->mallocFailed ){ db 66 third_party/sqlite/src/src/prepare.c assert( iDb>=0 && iDb<db->nDb ); db 80 third_party/sqlite/src/src/prepare.c assert( db->init.busy ); db 81 third_party/sqlite/src/src/prepare.c db->init.iDb = iDb; db 82 third_party/sqlite/src/src/prepare.c db->init.newTnum = sqlite3Atoi(argv[1]); db 83 third_party/sqlite/src/src/prepare.c db->init.orphanTrigger = 0; db 84 third_party/sqlite/src/src/prepare.c TESTONLY(rcp = ) sqlite3_prepare(db, argv[2], -1, &pStmt, 0); db 85 third_party/sqlite/src/src/prepare.c rc = db->errCode; db 87 third_party/sqlite/src/src/prepare.c db->init.iDb = 0; db 89 third_party/sqlite/src/src/prepare.c if( db->init.orphanTrigger ){ db 94 third_party/sqlite/src/src/prepare.c db->mallocFailed = 1; db 96 third_party/sqlite/src/src/prepare.c corruptSchema(pData, argv[0], sqlite3_errmsg(db)); db 111 third_party/sqlite/src/src/prepare.c pIndex = sqlite3FindIndex(db, argv[0], db->aDb[iDb].zName); db 134 third_party/sqlite/src/src/prepare.c static int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg){ db 173 third_party/sqlite/src/src/prepare.c assert( iDb>=0 && iDb<db->nDb ); db 174 third_party/sqlite/src/src/prepare.c assert( db->aDb[iDb].pSchema ); db 175 third_party/sqlite/src/src/prepare.c assert( sqlite3_mutex_held(db->mutex) ); db 176 third_party/sqlite/src/src/prepare.c assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) ); db 194 third_party/sqlite/src/src/prepare.c initData.db = db; db 203 third_party/sqlite/src/src/prepare.c pTab = sqlite3FindTable(db, zMasterName, db->aDb[iDb].zName); db 210 third_party/sqlite/src/src/prepare.c pDb = &db->aDb[iDb]; db 213 third_party/sqlite/src/src/prepare.c DbSetProperty(db, 1, DB_SchemaLoaded); db 225 third_party/sqlite/src/src/prepare.c sqlite3SetString(pzErrMsg, db, "%s", sqlite3ErrStr(rc)); db 264 third_party/sqlite/src/src/prepare.c ENC(db) = encoding; db 265 third_party/sqlite/src/src/prepare.c db->pDfltColl = sqlite3FindCollSeq(db, SQLITE_UTF8, "BINARY", 0); db 268 third_party/sqlite/src/src/prepare.c if( meta[BTREE_TEXT_ENCODING-1]!=ENC(db) ){ db 269 third_party/sqlite/src/src/prepare.c sqlite3SetString(pzErrMsg, db, "attached databases must use the same" db 276 third_party/sqlite/src/src/prepare.c DbSetProperty(db, iDb, DB_Empty); db 278 third_party/sqlite/src/src/prepare.c pDb->pSchema->enc = ENC(db); db 298 third_party/sqlite/src/src/prepare.c sqlite3SetString(pzErrMsg, db, "unsupported file format"); db 309 third_party/sqlite/src/src/prepare.c db->flags &= ~SQLITE_LegacyFileFmt; db 314 third_party/sqlite/src/src/prepare.c assert( db->init.busy ); db 317 third_party/sqlite/src/src/prepare.c zSql = sqlite3MPrintf(db, db 319 third_party/sqlite/src/src/prepare.c db->aDb[iDb].zName, zMasterName); db 323 third_party/sqlite/src/src/prepare.c xAuth = db->xAuth; db 324 third_party/sqlite/src/src/prepare.c db->xAuth = 0; db 326 third_party/sqlite/src/src/prepare.c rc = sqlite3_exec(db, zSql, sqlite3InitCallback, &initData, 0); db 328 third_party/sqlite/src/src/prepare.c db->xAuth = xAuth; db 332 third_party/sqlite/src/src/prepare.c sqlite3DbFree(db, zSql); db 335 third_party/sqlite/src/src/prepare.c sqlite3AnalysisLoad(db, iDb); db 339 third_party/sqlite/src/src/prepare.c if( db->mallocFailed ){ db 341 third_party/sqlite/src/src/prepare.c sqlite3ResetInternalSchema(db, -1); db 343 third_party/sqlite/src/src/prepare.c if( rc==SQLITE_OK || (db->flags&SQLITE_RecoveryMode)){ db 352 third_party/sqlite/src/src/prepare.c DbSetProperty(db, iDb, DB_SchemaLoaded); db 368 third_party/sqlite/src/src/prepare.c db->mallocFailed = 1; db 383 third_party/sqlite/src/src/prepare.c int sqlite3Init(sqlite3 *db, char **pzErrMsg){ db 385 third_party/sqlite/src/src/prepare.c int commit_internal = !(db->flags&SQLITE_InternChanges); db 387 third_party/sqlite/src/src/prepare.c assert( sqlite3_mutex_held(db->mutex) ); db 389 third_party/sqlite/src/src/prepare.c db->init.busy = 1; db 390 third_party/sqlite/src/src/prepare.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 391 third_party/sqlite/src/src/prepare.c if( DbHasProperty(db, i, DB_SchemaLoaded) || i==1 ) continue; db 392 third_party/sqlite/src/src/prepare.c rc = sqlite3InitOne(db, i, pzErrMsg); db 394 third_party/sqlite/src/src/prepare.c sqlite3ResetInternalSchema(db, i); db 403 third_party/sqlite/src/src/prepare.c if( rc==SQLITE_OK && ALWAYS(db->nDb>1) db 404 third_party/sqlite/src/src/prepare.c && !DbHasProperty(db, 1, DB_SchemaLoaded) ){ db 405 third_party/sqlite/src/src/prepare.c rc = sqlite3InitOne(db, 1, pzErrMsg); db 407 third_party/sqlite/src/src/prepare.c sqlite3ResetInternalSchema(db, 1); db 412 third_party/sqlite/src/src/prepare.c db->init.busy = 0; db 414 third_party/sqlite/src/src/prepare.c sqlite3CommitInternalChanges(db); db 426 third_party/sqlite/src/src/prepare.c sqlite3 *db = pParse->db; db 427 third_party/sqlite/src/src/prepare.c assert( sqlite3_mutex_held(db->mutex) ); db 428 third_party/sqlite/src/src/prepare.c if( !db->init.busy ){ db 429 third_party/sqlite/src/src/prepare.c rc = sqlite3Init(db, &pParse->zErrMsg); db 445 third_party/sqlite/src/src/prepare.c sqlite3 *db = pParse->db; db 451 third_party/sqlite/src/src/prepare.c assert( sqlite3_mutex_held(db->mutex) ); db 452 third_party/sqlite/src/src/prepare.c for(iDb=0; iDb<db->nDb; iDb++){ db 454 third_party/sqlite/src/src/prepare.c Btree *pBt = db->aDb[iDb].pBt; /* Btree database to read cookie from */ db 463 third_party/sqlite/src/src/prepare.c db->mallocFailed = 1; db 473 third_party/sqlite/src/src/prepare.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 474 third_party/sqlite/src/src/prepare.c if( cookie!=db->aDb[iDb].pSchema->schema_cookie ){ db 475 third_party/sqlite/src/src/prepare.c sqlite3ResetInternalSchema(db, iDb); db 493 third_party/sqlite/src/src/prepare.c int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){ db 506 third_party/sqlite/src/src/prepare.c assert( sqlite3_mutex_held(db->mutex) ); db 508 third_party/sqlite/src/src/prepare.c for(i=0; ALWAYS(i<db->nDb); i++){ db 509 third_party/sqlite/src/src/prepare.c if( db->aDb[i].pSchema==pSchema ){ db 513 third_party/sqlite/src/src/prepare.c assert( i>=0 && i<db->nDb ); db 522 third_party/sqlite/src/src/prepare.c sqlite3 *db, /* Database handle. */ db 536 third_party/sqlite/src/src/prepare.c pParse = sqlite3StackAllocZero(db, sizeof(*pParse)); db 543 third_party/sqlite/src/src/prepare.c assert( !db->mallocFailed ); db 544 third_party/sqlite/src/src/prepare.c assert( sqlite3_mutex_held(db->mutex) ); db 569 third_party/sqlite/src/src/prepare.c for(i=0; i<db->nDb; i++) { db 570 third_party/sqlite/src/src/prepare.c Btree *pBt = db->aDb[i].pBt; db 575 third_party/sqlite/src/src/prepare.c const char *zDb = db->aDb[i].zName; db 576 third_party/sqlite/src/src/prepare.c sqlite3Error(db, rc, "database schema is locked: %s", zDb); db 577 third_party/sqlite/src/src/prepare.c testcase( db->flags & SQLITE_ReadUncommitted ); db 583 third_party/sqlite/src/src/prepare.c sqlite3VtabUnlockList(db); db 585 third_party/sqlite/src/src/prepare.c pParse->db = db; db 589 third_party/sqlite/src/src/prepare.c int mxLen = db->aLimit[SQLITE_LIMIT_SQL_LENGTH]; db 593 third_party/sqlite/src/src/prepare.c sqlite3Error(db, SQLITE_TOOBIG, "statement too long"); db 594 third_party/sqlite/src/src/prepare.c rc = sqlite3ApiExit(db, SQLITE_TOOBIG); db 597 third_party/sqlite/src/src/prepare.c zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes); db 600 third_party/sqlite/src/src/prepare.c sqlite3DbFree(db, zSqlCopy); db 610 third_party/sqlite/src/src/prepare.c if( db->mallocFailed ){ db 617 third_party/sqlite/src/src/prepare.c if( db->mallocFailed ){ db 648 third_party/sqlite/src/src/prepare.c assert( db->init.busy==0 || saveSqlFlag==0 ); db 649 third_party/sqlite/src/src/prepare.c if( db->init.busy==0 ){ db 653 third_party/sqlite/src/src/prepare.c if( pParse->pVdbe && (rc!=SQLITE_OK || db->mallocFailed) ){ db 661 third_party/sqlite/src/src/prepare.c sqlite3Error(db, rc, "%s", zErrMsg); db 662 third_party/sqlite/src/src/prepare.c sqlite3DbFree(db, zErrMsg); db 664 third_party/sqlite/src/src/prepare.c sqlite3Error(db, rc, 0); db 671 third_party/sqlite/src/src/prepare.c sqlite3DbFree(db, pT); db 676 third_party/sqlite/src/src/prepare.c sqlite3StackFree(db, pParse); db 677 third_party/sqlite/src/src/prepare.c rc = sqlite3ApiExit(db, rc); db 678 third_party/sqlite/src/src/prepare.c assert( (rc&db->errMask)==rc ); db 682 third_party/sqlite/src/src/prepare.c sqlite3 *db, /* Database handle. */ db 693 third_party/sqlite/src/src/prepare.c if( !sqlite3SafetyCheckOk(db) ){ db 696 third_party/sqlite/src/src/prepare.c sqlite3_mutex_enter(db->mutex); db 697 third_party/sqlite/src/src/prepare.c sqlite3BtreeEnterAll(db); db 698 third_party/sqlite/src/src/prepare.c rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail); db 701 third_party/sqlite/src/src/prepare.c rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail); db 703 third_party/sqlite/src/src/prepare.c sqlite3BtreeLeaveAll(db); db 704 third_party/sqlite/src/src/prepare.c sqlite3_mutex_leave(db->mutex); db 720 third_party/sqlite/src/src/prepare.c sqlite3 *db; db 725 third_party/sqlite/src/src/prepare.c db = sqlite3VdbeDb(p); db 726 third_party/sqlite/src/src/prepare.c assert( sqlite3_mutex_held(db->mutex) ); db 727 third_party/sqlite/src/src/prepare.c rc = sqlite3LockAndPrepare(db, zSql, -1, 0, p, &pNew, 0); db 730 third_party/sqlite/src/src/prepare.c db->mallocFailed = 1; db 754 third_party/sqlite/src/src/prepare.c sqlite3 *db, /* Database handle. */ db 761 third_party/sqlite/src/src/prepare.c rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail); db 766 third_party/sqlite/src/src/prepare.c sqlite3 *db, /* Database handle. */ db 773 third_party/sqlite/src/src/prepare.c rc = sqlite3LockAndPrepare(db,zSql,nBytes,1,0,ppStmt,pzTail); db 784 third_party/sqlite/src/src/prepare.c sqlite3 *db, /* Database handle. */ db 801 third_party/sqlite/src/src/prepare.c if( !sqlite3SafetyCheckOk(db) ){ db 804 third_party/sqlite/src/src/prepare.c sqlite3_mutex_enter(db->mutex); db 805 third_party/sqlite/src/src/prepare.c zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE); db 807 third_party/sqlite/src/src/prepare.c rc = sqlite3LockAndPrepare(db, zSql8, -1, saveSqlFlag, 0, ppStmt, &zTail8); db 819 third_party/sqlite/src/src/prepare.c sqlite3DbFree(db, zSql8); db 820 third_party/sqlite/src/src/prepare.c rc = sqlite3ApiExit(db, rc); db 821 third_party/sqlite/src/src/prepare.c sqlite3_mutex_leave(db->mutex); db 834 third_party/sqlite/src/src/prepare.c sqlite3 *db, /* Database handle. */ db 841 third_party/sqlite/src/src/prepare.c rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail); db 846 third_party/sqlite/src/src/prepare.c sqlite3 *db, /* Database handle. */ db 853 third_party/sqlite/src/src/prepare.c rc = sqlite3Prepare16(db,zSql,nBytes,1,ppStmt,pzTail); db 781 third_party/sqlite/src/src/printf.c zNew = sqlite3DbRealloc(p->db, zOld, p->nAlloc); db 809 third_party/sqlite/src/src/printf.c p->zText = sqlite3DbMallocRaw(p->db, p->nChar+1 ); db 829 third_party/sqlite/src/src/printf.c sqlite3DbFree(p->db, p->zText); db 842 third_party/sqlite/src/src/printf.c p->db = 0; db 855 third_party/sqlite/src/src/printf.c char *sqlite3VMPrintf(sqlite3 *db, const char *zFormat, va_list ap){ db 859 third_party/sqlite/src/src/printf.c assert( db!=0 ); db 861 third_party/sqlite/src/src/printf.c db->aLimit[SQLITE_LIMIT_LENGTH]); db 862 third_party/sqlite/src/src/printf.c acc.db = db; db 866 third_party/sqlite/src/src/printf.c db->mallocFailed = 1; db 875 third_party/sqlite/src/src/printf.c char *sqlite3MPrintf(sqlite3 *db, const char *zFormat, ...){ db 879 third_party/sqlite/src/src/printf.c z = sqlite3VMPrintf(db, zFormat, ap); db 892 third_party/sqlite/src/src/printf.c char *sqlite3MAppendf(sqlite3 *db, char *zStr, const char *zFormat, ...){ db 896 third_party/sqlite/src/src/printf.c z = sqlite3VMPrintf(db, zFormat, ap); db 898 third_party/sqlite/src/src/printf.c sqlite3DbFree(db, zStr); db 393 third_party/sqlite/src/src/recover.c static int GetPager(sqlite3 *db, const char *zName, db 397 third_party/sqlite/src/src/recover.c for( i=0; i<db->nDb; ++i ){ db 398 third_party/sqlite/src/src/recover.c if( ascii_strcasecmp(db->aDb[i].zName, zName)==0 ){ db 399 third_party/sqlite/src/src/recover.c pBt = db->aDb[i].pBt; db 492 third_party/sqlite/src/src/recover.c static int getRootPage(sqlite3 *db, const char *zDb, const char *zTable, db 510 third_party/sqlite/src/src/recover.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 535 third_party/sqlite/src/src/recover.c static int getEncoding(sqlite3 *db, const char *zDb, int* piEncoding){ db 543 third_party/sqlite/src/src/recover.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 1517 third_party/sqlite/src/src/recover.c sqlite3 *db; /* Host database connection */ db 1541 third_party/sqlite/src/src/recover.c sqlite3 *db, db 1548 third_party/sqlite/src/src/recover.c return recoverInit(db, pAux, argc, argv, ppVtab, pzErr); db 1553 third_party/sqlite/src/src/recover.c sqlite3 *db, db 1560 third_party/sqlite/src/src/recover.c return recoverInit(db, pAux, argc, argv, ppVtab, pzErr); db 1603 third_party/sqlite/src/src/recover.c rc = getRootPage(pRecover->db, pRecover->zDb, pRecover->zTable, db 1610 third_party/sqlite/src/src/recover.c rc = getEncoding(pRecover->db, pRecover->zDb, &iEncoding); db 1615 third_party/sqlite/src/src/recover.c rc = GetPager(pRecover->db, pRecover->zDb, &pPager, &nPageSize); db 1861 third_party/sqlite/src/src/recover.c int recoverVtableInit(sqlite3 *db){ db 1862 third_party/sqlite/src/src/recover.c return sqlite3_create_module_v2(db, "recover", &recoverModule, NULL, 0); db 2062 third_party/sqlite/src/src/recover.c sqlite3 *db, /* Database connection */ db 2093 third_party/sqlite/src/src/recover.c pRecover->db = db; db 2098 third_party/sqlite/src/src/recover.c pRecover->zDb = sqlite3_strdup(db->aDb[0].zName); db 2123 third_party/sqlite/src/src/recover.c rc = getRootPage(pRecover->db, pRecover->zDb, pRecover->zTable, &iRootPage); db 2138 third_party/sqlite/src/src/recover.c rc = sqlite3_declare_vtab(db, zCreateSql); db 57 third_party/sqlite/src/src/resolve.c sqlite3 *db; /* The database connection */ db 63 third_party/sqlite/src/src/resolve.c db = pParse->db; db 65 third_party/sqlite/src/src/resolve.c pDup = sqlite3ExprDup(db, pOrig, 0); db 73 third_party/sqlite/src/src/resolve.c pDup = sqlite3ExprDup(db, pOrig, 0); db 79 third_party/sqlite/src/src/resolve.c pDup = sqlite3ExprDup(db, pOrig, 0); db 84 third_party/sqlite/src/src/resolve.c pDup->u.zToken = sqlite3DbStrDup(db, zToken); db 96 third_party/sqlite/src/src/resolve.c sqlite3ExprDelete(db, pExpr); db 98 third_party/sqlite/src/src/resolve.c sqlite3DbFree(db, pDup); db 139 third_party/sqlite/src/src/resolve.c sqlite3 *db = pParse->db; /* The database connection */ db 168 third_party/sqlite/src/src/resolve.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 179 third_party/sqlite/src/src/resolve.c if( zDb!=0 && sqlite3StrICmp(db->aDb[iDb].zName, zDb)!=0 ){ db 382 third_party/sqlite/src/src/resolve.c sqlite3ExprDelete(db, pExpr->pLeft); db 384 third_party/sqlite/src/src/resolve.c sqlite3ExprDelete(db, pExpr->pRight); db 409 third_party/sqlite/src/src/resolve.c Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){ db 410 third_party/sqlite/src/src/resolve.c Expr *p = sqlite3ExprAlloc(db, TK_COLUMN, 0, 0); db 523 third_party/sqlite/src/src/resolve.c u8 enc = ENC(pParse->db); /* The database encoding */ db 529 third_party/sqlite/src/src/resolve.c pDef = sqlite3FindFunction(pParse->db, zId, nId, n, enc, 0); db 531 third_party/sqlite/src/src/resolve.c pDef = sqlite3FindFunction(pParse->db, zId, nId, -1, enc, 0); db 608 third_party/sqlite/src/src/resolve.c return (pParse->nErr || pParse->db->mallocFailed) ? WRC_Abort : WRC_Continue; db 670 third_party/sqlite/src/src/resolve.c sqlite3 *db; /* Database connection */ db 685 third_party/sqlite/src/src/resolve.c db = pParse->db; db 686 third_party/sqlite/src/src/resolve.c savedSuppErr = db->suppressErr; db 687 third_party/sqlite/src/src/resolve.c db->suppressErr = 1; db 689 third_party/sqlite/src/src/resolve.c db->suppressErr = savedSuppErr; db 742 third_party/sqlite/src/src/resolve.c sqlite3 *db; db 747 third_party/sqlite/src/src/resolve.c db = pParse->db; db 749 third_party/sqlite/src/src/resolve.c if( pOrderBy->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){ db 780 third_party/sqlite/src/src/resolve.c pDup = sqlite3ExprDup(db, pE, 0); db 781 third_party/sqlite/src/src/resolve.c if( !db->mallocFailed ){ db 785 third_party/sqlite/src/src/resolve.c sqlite3ExprDelete(db, pDup); db 791 third_party/sqlite/src/src/resolve.c sqlite3ExprDelete(db, pE); db 792 third_party/sqlite/src/src/resolve.c pItem->pExpr = pE = sqlite3Expr(db, TK_INTEGER, 0); db 832 third_party/sqlite/src/src/resolve.c sqlite3 *db = pParse->db; db 836 third_party/sqlite/src/src/resolve.c if( pOrderBy==0 || pParse->db->mallocFailed ) return 0; db 838 third_party/sqlite/src/src/resolve.c if( pOrderBy->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){ db 935 third_party/sqlite/src/src/resolve.c sqlite3 *db; /* Database connection */ db 944 third_party/sqlite/src/src/resolve.c db = pParse->db; db 956 third_party/sqlite/src/src/resolve.c return (pParse->nErr || db->mallocFailed) ? WRC_Abort : WRC_Prune; db 1003 third_party/sqlite/src/src/resolve.c if( pParse->nErr || db->mallocFailed ) return WRC_Abort; db 1054 third_party/sqlite/src/src/resolve.c if( db->mallocFailed ){ db 1064 third_party/sqlite/src/src/resolve.c if( resolveOrderGroupBy(&sNC, p, pGroupBy, "GROUP") || db->mallocFailed ){ db 104 third_party/sqlite/src/src/rowset.c sqlite3 *db; /* The database connection */ db 126 third_party/sqlite/src/src/rowset.c RowSet *sqlite3RowSetInit(sqlite3 *db, void *pSpace, unsigned int N){ db 131 third_party/sqlite/src/src/rowset.c p->db = db; db 151 third_party/sqlite/src/src/rowset.c sqlite3DbFree(p->db, pChunk); db 173 third_party/sqlite/src/src/rowset.c pNew = sqlite3DbMallocRaw(p->db, sizeof(*pNew)); db 22 third_party/sqlite/src/src/select.c static void clearSelect(sqlite3 *db, Select *p){ db 23 third_party/sqlite/src/src/select.c sqlite3ExprListDelete(db, p->pEList); db 24 third_party/sqlite/src/src/select.c sqlite3SrcListDelete(db, p->pSrc); db 25 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, p->pWhere); db 26 third_party/sqlite/src/src/select.c sqlite3ExprListDelete(db, p->pGroupBy); db 27 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, p->pHaving); db 28 third_party/sqlite/src/src/select.c sqlite3ExprListDelete(db, p->pOrderBy); db 29 third_party/sqlite/src/src/select.c sqlite3SelectDelete(db, p->pPrior); db 30 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, p->pLimit); db 31 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, p->pOffset); db 64 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; db 65 third_party/sqlite/src/src/select.c pNew = sqlite3DbMallocZero(db, sizeof(*pNew) ); db 66 third_party/sqlite/src/src/select.c assert( db->mallocFailed || !pOffset || pLimit ); /* OFFSET implies LIMIT */ db 72 third_party/sqlite/src/src/select.c pEList = sqlite3ExprListAppend(pParse, 0, sqlite3Expr(db,TK_ALL,0)); db 88 third_party/sqlite/src/src/select.c if( db->mallocFailed ) { db 89 third_party/sqlite/src/src/select.c clearSelect(db, pNew); db 90 third_party/sqlite/src/src/select.c if( pNew!=&standin ) sqlite3DbFree(db, pNew); db 99 third_party/sqlite/src/src/select.c void sqlite3SelectDelete(sqlite3 *db, Select *p){ db 101 third_party/sqlite/src/src/select.c clearSelect(db, p); db 102 third_party/sqlite/src/src/select.c sqlite3DbFree(db, p); db 246 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; db 256 third_party/sqlite/src/src/select.c pE1 = sqlite3CreateColumnExpr(db, pSrc, iLeft, iColLeft); db 257 third_party/sqlite/src/src/select.c pE2 = sqlite3CreateColumnExpr(db, pSrc, iRight, iColRight); db 266 third_party/sqlite/src/src/select.c *ppWhere = sqlite3ExprAnd(db, *ppWhere, pEq); db 372 third_party/sqlite/src/src/select.c p->pWhere = sqlite3ExprAnd(pParse->db, p->pWhere, pRight->pOn); db 748 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; db 755 third_party/sqlite/src/src/select.c pInfo = sqlite3DbMallocZero(db, sizeof(*pInfo) + nExpr*(sizeof(CollSeq*)+1) ); db 759 third_party/sqlite/src/src/select.c pInfo->enc = ENC(db); db 760 third_party/sqlite/src/src/select.c pInfo->db = db; db 765 third_party/sqlite/src/src/select.c pColl = db->pDfltColl; db 804 third_party/sqlite/src/src/select.c char *zMsg = sqlite3MPrintf(pParse->db, "USE TEMP B-TREE FOR %s", zUsage); db 850 third_party/sqlite/src/src/select.c pParse->db, "COMPOUND SUBQUERIES %d AND %d %s(%s)", iSub1, iSub2, db 1066 third_party/sqlite/src/src/select.c int iDb = sqlite3SchemaToIndex(pNC->pParse->db, pTab->pSchema); db 1067 third_party/sqlite/src/src/select.c zOriginDb = pNC->pParse->db->aDb[iDb].zName; db 1151 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; db 1161 third_party/sqlite/src/src/select.c if( pParse->colNamesSet || NEVER(v==0) || db->mallocFailed ) return; db 1163 third_party/sqlite/src/src/select.c fullNames = (db->flags & SQLITE_FullColNames)!=0; db 1164 third_party/sqlite/src/src/select.c shortNames = (db->flags & SQLITE_ShortColNames)!=0; db 1191 third_party/sqlite/src/src/select.c sqlite3DbStrDup(db, pEList->a[i].zSpan), SQLITE_DYNAMIC); db 1194 third_party/sqlite/src/src/select.c zName = sqlite3MPrintf(db, "%s.%s", pTab->zName, zCol); db 1201 third_party/sqlite/src/src/select.c sqlite3DbStrDup(db, pEList->a[i].zSpan), SQLITE_DYNAMIC); db 1226 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; /* Database connection */ db 1236 third_party/sqlite/src/src/select.c aCol = *paCol = sqlite3DbMallocZero(db, sizeof(aCol[0])*nCol); db 1246 third_party/sqlite/src/src/select.c zName = sqlite3DbStrDup(db, zName); db 1256 third_party/sqlite/src/src/select.c zName = sqlite3MPrintf(db, "%s", db 1260 third_party/sqlite/src/src/select.c zName = sqlite3MPrintf(db, "%s", pColExpr->u.zToken); db 1263 third_party/sqlite/src/src/select.c zName = sqlite3MPrintf(db, "%s", pEList->a[i].zSpan); db 1266 third_party/sqlite/src/src/select.c if( db->mallocFailed ){ db 1267 third_party/sqlite/src/src/select.c sqlite3DbFree(db, zName); db 1279 third_party/sqlite/src/src/select.c zNewName = sqlite3MPrintf(db, "%s:%d", zName, ++cnt); db 1280 third_party/sqlite/src/src/select.c sqlite3DbFree(db, zName); db 1288 third_party/sqlite/src/src/select.c if( db->mallocFailed ){ db 1290 third_party/sqlite/src/src/select.c sqlite3DbFree(db, aCol[j].zName); db 1292 third_party/sqlite/src/src/select.c sqlite3DbFree(db, aCol); db 1317 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; db 1327 third_party/sqlite/src/src/select.c assert( nCol==pSelect->pEList->nExpr || db->mallocFailed ); db 1328 third_party/sqlite/src/src/select.c if( db->mallocFailed ) return; db 1334 third_party/sqlite/src/src/select.c pCol->zType = sqlite3DbStrDup(db, columnType(&sNC, p, 0, 0, 0)); db 1339 third_party/sqlite/src/src/select.c pCol->zColl = sqlite3DbStrDup(db, pColl->zName); db 1350 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; db 1353 third_party/sqlite/src/src/select.c savedFlags = db->flags; db 1354 third_party/sqlite/src/src/select.c db->flags &= ~SQLITE_FullColNames; db 1355 third_party/sqlite/src/src/select.c db->flags |= SQLITE_ShortColNames; db 1359 third_party/sqlite/src/src/select.c db->flags = savedFlags; db 1360 third_party/sqlite/src/src/select.c pTab = sqlite3DbMallocZero(db, sizeof(Table) ); db 1366 third_party/sqlite/src/src/select.c assert( db->lookaside.bEnabled==0 ); db 1373 third_party/sqlite/src/src/select.c if( db->mallocFailed ){ db 1374 third_party/sqlite/src/src/select.c sqlite3DeleteTable(db, pTab); db 1387 third_party/sqlite/src/src/select.c v = pParse->pVdbe = sqlite3VdbeCreate(pParse->db); db 1541 third_party/sqlite/src/src/select.c sqlite3 *db; /* Database connection */ db 1551 third_party/sqlite/src/src/select.c db = pParse->db; db 1701 third_party/sqlite/src/src/select.c sqlite3ExprListDelete(db, p->pOrderBy); db 1706 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, p->pLimit); db 1786 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, p->pLimit); db 1838 third_party/sqlite/src/src/select.c pKeyInfo = sqlite3DbMallocZero(db, db 1845 third_party/sqlite/src/src/select.c pKeyInfo->enc = ENC(db); db 1851 third_party/sqlite/src/src/select.c *apColl = db->pDfltColl; db 1869 third_party/sqlite/src/src/select.c sqlite3DbFree(db, pKeyInfo); db 1875 third_party/sqlite/src/src/select.c sqlite3SelectDelete(db, pDelete); db 1930 third_party/sqlite/src/src/select.c if( pParse->db->mallocFailed ) return 0; db 2159 third_party/sqlite/src/src/select.c sqlite3 *db; /* Database connection */ db 2170 third_party/sqlite/src/src/select.c db = pParse->db; db 2191 third_party/sqlite/src/src/select.c for(i=1; db->mallocFailed==0 && i<=p->pEList->nExpr; i++){ db 2198 third_party/sqlite/src/src/select.c Expr *pNew = sqlite3Expr(db, TK_INTEGER, 0); db 2215 third_party/sqlite/src/src/select.c aPermute = sqlite3DbMallocRaw(db, sizeof(int)*nOrderBy); db 2223 third_party/sqlite/src/src/select.c sqlite3DbMallocRaw(db, sizeof(*pKeyMerge)+nOrderBy*(sizeof(CollSeq*)+1)); db 2227 third_party/sqlite/src/src/select.c pKeyMerge->enc = ENC(db); db 2249 third_party/sqlite/src/src/select.c pPrior->pOrderBy = sqlite3ExprListDup(pParse->db, pOrderBy, 0); db 2259 third_party/sqlite/src/src/select.c assert( nOrderBy>=nExpr || db->mallocFailed ); db 2262 third_party/sqlite/src/src/select.c pKeyDup = sqlite3DbMallocZero(db, db 2267 third_party/sqlite/src/src/select.c pKeyDup->enc = ENC(db); db 2294 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, p->pLimit); db 2296 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, p->pOffset); db 2462 third_party/sqlite/src/src/select.c sqlite3SelectDelete(db, p->pPrior); db 2492 third_party/sqlite/src/src/select.c sqlite3 *db, /* Report malloc errors to this connection */ db 2505 third_party/sqlite/src/src/select.c pNew = sqlite3ExprDup(db, pEList->a[pExpr->iColumn].pExpr, 0); db 2509 third_party/sqlite/src/src/select.c sqlite3ExprDelete(db, pExpr); db 2513 third_party/sqlite/src/src/select.c pExpr->pLeft = substExpr(db, pExpr->pLeft, iTable, pEList); db 2514 third_party/sqlite/src/src/select.c pExpr->pRight = substExpr(db, pExpr->pRight, iTable, pEList); db 2516 third_party/sqlite/src/src/select.c substSelect(db, pExpr->x.pSelect, iTable, pEList); db 2518 third_party/sqlite/src/src/select.c substExprList(db, pExpr->x.pList, iTable, pEList); db 2524 third_party/sqlite/src/src/select.c sqlite3 *db, /* Report malloc errors here */ db 2532 third_party/sqlite/src/src/select.c pList->a[i].pExpr = substExpr(db, pList->a[i].pExpr, iTable, pEList); db 2536 third_party/sqlite/src/src/select.c sqlite3 *db, /* Report malloc errors here */ db 2545 third_party/sqlite/src/src/select.c substExprList(db, p->pEList, iTable, pEList); db 2546 third_party/sqlite/src/src/select.c substExprList(db, p->pGroupBy, iTable, pEList); db 2547 third_party/sqlite/src/src/select.c substExprList(db, p->pOrderBy, iTable, pEList); db 2548 third_party/sqlite/src/src/select.c p->pHaving = substExpr(db, p->pHaving, iTable, pEList); db 2549 third_party/sqlite/src/src/select.c p->pWhere = substExpr(db, p->pWhere, iTable, pEList); db 2550 third_party/sqlite/src/src/select.c substSelect(db, p->pPrior, iTable, pEList); db 2555 third_party/sqlite/src/src/select.c substSelect(db, pItem->pSelect, iTable, pEList); db 2690 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; db 2696 third_party/sqlite/src/src/select.c if( db->flags & SQLITE_QueryFlattener ) return 0; db 2851 third_party/sqlite/src/src/select.c pNew = sqlite3SelectDup(db, p, 0); db 2864 third_party/sqlite/src/src/select.c if( db->mallocFailed ) return 1; db 2875 third_party/sqlite/src/src/select.c sqlite3DbFree(db, pSubitem->zDatabase); db 2876 third_party/sqlite/src/src/select.c sqlite3DbFree(db, pSubitem->zName); db 2877 third_party/sqlite/src/src/select.c sqlite3DbFree(db, pSubitem->zAlias); db 2927 third_party/sqlite/src/src/select.c pSrc = pParent->pSrc = sqlite3SrcListAppend(db, 0, 0, 0); db 2929 third_party/sqlite/src/src/select.c assert( db->mallocFailed ); db 2950 third_party/sqlite/src/src/select.c pParent->pSrc = pSrc = sqlite3SrcListEnlarge(db, pSrc, nSubSrc-1,iFrom+1); db 2951 third_party/sqlite/src/src/select.c if( db->mallocFailed ){ db 2960 third_party/sqlite/src/src/select.c sqlite3IdListDelete(db, pSrc->a[i+iFrom].pUsing); db 2983 third_party/sqlite/src/src/select.c pList->a[i].zName = sqlite3DbStrDup(db, zSpan); db 2987 third_party/sqlite/src/src/select.c substExprList(db, pParent->pEList, iParent, pSub->pEList); db 2989 third_party/sqlite/src/src/select.c substExprList(db, pParent->pGroupBy, iParent, pSub->pEList); db 2990 third_party/sqlite/src/src/select.c pParent->pHaving = substExpr(db, pParent->pHaving, iParent, pSub->pEList); db 2997 third_party/sqlite/src/src/select.c substExprList(db, pParent->pOrderBy, iParent, pSub->pEList); db 3000 third_party/sqlite/src/src/select.c pWhere = sqlite3ExprDup(db, pSub->pWhere, 0); db 3008 third_party/sqlite/src/src/select.c pParent->pHaving = substExpr(db, pParent->pHaving, iParent, pSub->pEList); db 3009 third_party/sqlite/src/src/select.c pParent->pHaving = sqlite3ExprAnd(db, pParent->pHaving, db 3010 third_party/sqlite/src/src/select.c sqlite3ExprDup(db, pSub->pHaving, 0)); db 3012 third_party/sqlite/src/src/select.c pParent->pGroupBy = sqlite3ExprListDup(db, pSub->pGroupBy, 0); db 3014 third_party/sqlite/src/src/select.c pParent->pWhere = substExpr(db, pParent->pWhere, iParent, pSub->pEList); db 3015 third_party/sqlite/src/src/select.c pParent->pWhere = sqlite3ExprAnd(db, pParent->pWhere, pWhere); db 3038 third_party/sqlite/src/src/select.c sqlite3SelectDelete(db, pSub1); db 3165 third_party/sqlite/src/src/select.c sqlite3 *db = pParse->db; db 3167 third_party/sqlite/src/src/select.c if( db->mallocFailed ){ db 3201 third_party/sqlite/src/src/select.c pFrom->pTab = pTab = sqlite3DbMallocZero(db, sizeof(Table)); db 3204 third_party/sqlite/src/src/select.c pTab->zName = sqlite3MPrintf(db, "sqlite_subquery_%p_", (void*)pTab); db 3223 third_party/sqlite/src/src/select.c pFrom->pSelect = sqlite3SelectDup(db, pTab->pSelect, 0); db 3237 third_party/sqlite/src/src/select.c if( db->mallocFailed || sqliteProcessJoin(pParse, p) ){ db 3266 third_party/sqlite/src/src/select.c int flags = pParse->db->flags; db 3302 third_party/sqlite/src/src/select.c if( db->mallocFailed ) break; db 3337 third_party/sqlite/src/src/select.c pRight = sqlite3Expr(db, TK_ID, zName); db 3342 third_party/sqlite/src/src/select.c pLeft = sqlite3Expr(db, TK_ID, zTabName); db 3345 third_party/sqlite/src/src/select.c zColname = sqlite3MPrintf(db, "%s.%s", zTabName, zName); db 3355 third_party/sqlite/src/src/select.c sqlite3DbFree(db, zToFree); db 3367 third_party/sqlite/src/src/select.c sqlite3ExprListDelete(db, pEList); db 3371 third_party/sqlite/src/src/select.c if( p->pEList && p->pEList->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){ db 3490 third_party/sqlite/src/src/select.c sqlite3 *db; db 3492 third_party/sqlite/src/src/select.c db = pParse->db; db 3495 third_party/sqlite/src/src/select.c if( pParse->nErr || db->mallocFailed ) return; db 3497 third_party/sqlite/src/src/select.c if( pParse->nErr || db->mallocFailed ) return; db 3592 third_party/sqlite/src/src/select.c pColl = pParse->db->pDfltColl; db 3636 third_party/sqlite/src/src/select.c char *zEqp = sqlite3MPrintf(pParse->db, "SCAN TABLE %s %s%s(~%d rows)", db 3726 third_party/sqlite/src/src/select.c sqlite3 *db; /* The database connection */ db 3733 third_party/sqlite/src/src/select.c db = pParse->db; db 3734 third_party/sqlite/src/src/select.c if( p==0 || db->mallocFailed || pParse->nErr ){ db 3745 third_party/sqlite/src/src/select.c sqlite3ExprListDelete(db, p->pOrderBy); db 3753 third_party/sqlite/src/src/select.c if( pParse->nErr || db->mallocFailed ){ db 3809 third_party/sqlite/src/src/select.c if( /*pParse->nErr ||*/ db->mallocFailed ){ db 3838 third_party/sqlite/src/src/select.c mxSelect = db->aLimit[SQLITE_LIMIT_COMPOUND_SELECT]; db 3855 third_party/sqlite/src/src/select.c p->pGroupBy = sqlite3ExprListDup(db, p->pEList, 0); db 3868 third_party/sqlite/src/src/select.c && (db->flags & SQLITE_GroupByOrder)==0 ){ db 3998 third_party/sqlite/src/src/select.c if( db->mallocFailed ) goto select_end; db 4224 third_party/sqlite/src/src/select.c const int iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 4295 third_party/sqlite/src/src/select.c pMinMax = sqlite3ExprListDup(db, p->pEList->a[0].pExpr->x.pList,0); db 4297 third_party/sqlite/src/src/select.c if( pMinMax && !db->mallocFailed ){ db 4310 third_party/sqlite/src/src/select.c sqlite3ExprListDelete(db, pDel); db 4327 third_party/sqlite/src/src/select.c sqlite3ExprListDelete(db, pDel); db 4366 third_party/sqlite/src/src/select.c sqlite3DbFree(db, sAggInfo.aCol); db 4367 third_party/sqlite/src/src/select.c sqlite3DbFree(db, sAggInfo.aFunc); db 216 third_party/sqlite/src/src/shell.c static sqlite3 *db = 0; db 400 third_party/sqlite/src/src/shell.c sqlite3 *db; /* The database */ db 644 third_party/sqlite/src/src/shell.c if( db ) sqlite3_interrupt(db); db 931 third_party/sqlite/src/src/shell.c sqlite3 *db, /* Database to query */ db 937 third_party/sqlite/src/src/shell.c rc = sqlite3_prepare(db, zSelect, -1, &pSelect, 0); db 957 third_party/sqlite/src/src/shell.c sqlite3 *db /* Database to query */ db 959 third_party/sqlite/src/src/shell.c int nErrMsg = 1+strlen30(sqlite3_errmsg(db)); db 962 third_party/sqlite/src/src/shell.c memcpy(zErrMsg, sqlite3_errmsg(db), nErrMsg); db 971 third_party/sqlite/src/src/shell.c sqlite3 *db, /* Database to query */ db 1020 third_party/sqlite/src/src/shell.c if( pArg && pArg->out && db ){ db 1022 third_party/sqlite/src/src/shell.c sqlite3_db_status(db, SQLITE_DBSTATUS_LOOKASIDE_USED, &iCur, &iHiwtr, bReset); db 1024 third_party/sqlite/src/src/shell.c sqlite3_db_status(db, SQLITE_DBSTATUS_LOOKASIDE_HIT, &iCur, &iHiwtr, bReset); db 1026 third_party/sqlite/src/src/shell.c sqlite3_db_status(db, SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE, &iCur, &iHiwtr, bReset); db 1028 third_party/sqlite/src/src/shell.c sqlite3_db_status(db, SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL, &iCur, &iHiwtr, bReset); db 1031 third_party/sqlite/src/src/shell.c sqlite3_db_status(db, SQLITE_DBSTATUS_CACHE_USED, &iCur, &iHiwtr, bReset); db 1034 third_party/sqlite/src/src/shell.c sqlite3_db_status(db, SQLITE_DBSTATUS_SCHEMA_USED, &iCur, &iHiwtr, bReset); db 1037 third_party/sqlite/src/src/shell.c sqlite3_db_status(db, SQLITE_DBSTATUS_STMT_USED, &iCur, &iHiwtr, bReset); db 1041 third_party/sqlite/src/src/shell.c if( pArg && pArg->out && db && pArg->pStmt ){ db 1063 third_party/sqlite/src/src/shell.c sqlite3 *db, /* An open database */ db 1079 third_party/sqlite/src/src/shell.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &zLeftover); db 1082 third_party/sqlite/src/src/shell.c *pzErrMsg = save_err_msg(db); db 1159 third_party/sqlite/src/src/shell.c display_stats(db, pArg, 0); db 1170 third_party/sqlite/src/src/shell.c *pzErrMsg = save_err_msg(db); db 1238 third_party/sqlite/src/src/shell.c rc = sqlite3_prepare(p->db, zTableInfo, -1, &pTableInfo, 0); db 1271 third_party/sqlite/src/src/shell.c rc = run_table_dump_query(p->out, p->db, zSelect, zPrepStmt); db 1274 third_party/sqlite/src/src/shell.c rc = run_table_dump_query(p->out, p->db, zSelect, 0); db 1294 third_party/sqlite/src/src/shell.c rc = sqlite3_exec(p->db, zQuery, dump_callback, p, pzErrMsg); db 1302 third_party/sqlite/src/src/shell.c rc = sqlite3_exec(p->db, zQ2, dump_callback, p, pzErrMsg); db 1376 third_party/sqlite/src/src/shell.c if( p->db==0 ){ db 1377 third_party/sqlite/src/src/shell.c sqlite3_open(p->zDbFilename, &p->db); db 1378 third_party/sqlite/src/src/shell.c db = p->db; db 1379 third_party/sqlite/src/src/shell.c if( db && sqlite3_errcode(db)==SQLITE_OK ){ db 1380 third_party/sqlite/src/src/shell.c sqlite3_create_function(db, "shellstatic", 0, SQLITE_UTF8, 0, db 1383 third_party/sqlite/src/src/shell.c if( db==0 || SQLITE_OK!=sqlite3_errcode(db) ){ db 1385 third_party/sqlite/src/src/shell.c p->zDbFilename, sqlite3_errmsg(db)); db 1389 third_party/sqlite/src/src/shell.c sqlite3_enable_load_extension(p->db, 1); db 1507 third_party/sqlite/src/src/shell.c pBackup = sqlite3_backup_init(pDest, "main", p->db, zDb); db 1539 third_party/sqlite/src/src/shell.c sqlite3_exec(p->db, "PRAGMA database_list; ", callback, &data, &zErrMsg); db 1556 third_party/sqlite/src/src/shell.c sqlite3_exec(p->db, "PRAGMA writable_schema=ON", 0, 0, 0); db 1566 third_party/sqlite/src/src/shell.c run_table_dump_query(p->out, p->db, db 1578 third_party/sqlite/src/src/shell.c run_table_dump_query(p->out, p->db, db 1591 third_party/sqlite/src/src/shell.c sqlite3_exec(p->db, "PRAGMA writable_schema=OFF", 0, 0, 0); db 1682 third_party/sqlite/src/src/shell.c rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0); db 1686 third_party/sqlite/src/src/shell.c fprintf(stderr,"Error: %s\n", sqlite3_errmsg(db)); db 1706 third_party/sqlite/src/src/shell.c rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0); db 1709 third_party/sqlite/src/src/shell.c fprintf(stderr, "Error: %s\n", sqlite3_errmsg(db)); db 1726 third_party/sqlite/src/src/shell.c sqlite3_exec(p->db, "BEGIN", 0, 0, 0); db 1760 third_party/sqlite/src/src/shell.c fprintf(stderr,"Error: %s\n", sqlite3_errmsg(db)); db 1769 third_party/sqlite/src/src/shell.c sqlite3_exec(p->db, zCommit, 0, 0, 0); db 1780 third_party/sqlite/src/src/shell.c rc = sqlite3_exec(p->db, db 1791 third_party/sqlite/src/src/shell.c rc = sqlite3_exec(p->db, db 1842 third_party/sqlite/src/src/shell.c rc = sqlite3_load_extension(p->db, zFile, zProc, &zErrMsg); db 1984 third_party/sqlite/src/src/shell.c pBackup = sqlite3_backup_init(p->db, zDb, pSrc, "main"); db 1986 third_party/sqlite/src/src/shell.c fprintf(stderr, "Error: %s\n", sqlite3_errmsg(p->db)); db 2004 third_party/sqlite/src/src/shell.c fprintf(stderr, "Error: %s\n", sqlite3_errmsg(p->db)); db 2050 third_party/sqlite/src/src/shell.c rc = sqlite3_exec(p->db, db 2061 third_party/sqlite/src/src/shell.c rc = sqlite3_exec(p->db, db 2120 third_party/sqlite/src/src/shell.c rc = sqlite3_get_table(p->db, db 2131 third_party/sqlite/src/src/shell.c rc = sqlite3_get_table(p->db, db 2222 third_party/sqlite/src/src/shell.c rc = sqlite3_test_control(testctrl, p->db, opt); db 2296 third_party/sqlite/src/src/shell.c sqlite3_busy_timeout(p->db, atoi(azArg[1])); db 2463 third_party/sqlite/src/src/shell.c rc = shell_exec(p->db, zSql, shell_callback, p, &zErrMsg); db 2478 third_party/sqlite/src/src/shell.c fprintf(stderr, "%s %s\n", zPrefix, sqlite3_errmsg(p->db)); db 2869 third_party/sqlite/src/src/shell.c rc = shell_exec(data.db, zFirstCmd, shell_callback, &data, &zErrMsg); db 2913 third_party/sqlite/src/src/shell.c if( data.db ){ db 2914 third_party/sqlite/src/src/shell.c sqlite3_close(data.db); db 87 third_party/sqlite/src/src/sqlite3ext.h int (*errcode)(sqlite3*db); db 911 third_party/sqlite/src/src/sqliteInt.h #define ENC(db) ((db)->aDb[0].pSchema->enc) db 1231 third_party/sqlite/src/src/sqliteInt.h sqlite3 *db; /* Database connection associated with this table */ db 1405 third_party/sqlite/src/src/sqliteInt.h sqlite3 *db; /* The database connection */ db 2169 third_party/sqlite/src/src/sqliteInt.h sqlite3 *db; /* The main database structure */ db 2392 third_party/sqlite/src/src/sqliteInt.h sqlite3 *db; /* Optional database for lookaside. Can be NULL */ db 2408 third_party/sqlite/src/src/sqliteInt.h sqlite3 *db; /* The database being initialized */ db 3000 third_party/sqlite/src/src/sqliteInt.h int sqlite3SchemaToIndex(sqlite3 *db, Schema *); db 3007 third_party/sqlite/src/src/sqliteInt.h int sqlite3ApiExit(sqlite3 *db, int); db 3052 third_party/sqlite/src/src/sqliteInt.h # define sqlite3VtabInSync(db) 0 db 3057 third_party/sqlite/src/src/sqliteInt.h void sqlite3VtabClear(sqlite3 *db, Table*); db 3058 third_party/sqlite/src/src/sqliteInt.h int sqlite3VtabSync(sqlite3 *db, char **); db 3059 third_party/sqlite/src/src/sqliteInt.h int sqlite3VtabRollback(sqlite3 *db); db 3060 third_party/sqlite/src/src/sqliteInt.h int sqlite3VtabCommit(sqlite3 *db); db 3064 third_party/sqlite/src/src/sqliteInt.h # define sqlite3VtabInSync(db) ((db)->nVTrans>0 && (db)->aVTrans==0) db 3167 third_party/sqlite/src/src/sqliteInt.h void sqlite3ConnectionUnlocked(sqlite3 *db); db 3168 third_party/sqlite/src/src/sqliteInt.h void sqlite3ConnectionClosed(sqlite3 *db); db 101 third_party/sqlite/src/src/status.c sqlite3 *db, /* The database connection whose status is desired */ db 108 third_party/sqlite/src/src/status.c sqlite3_mutex_enter(db->mutex); db 111 third_party/sqlite/src/src/status.c *pCurrent = db->lookaside.nOut; db 112 third_party/sqlite/src/src/status.c *pHighwater = db->lookaside.mxOut; db 114 third_party/sqlite/src/src/status.c db->lookaside.mxOut = db->lookaside.nOut; db 128 third_party/sqlite/src/src/status.c *pHighwater = db->lookaside.anStat[op - SQLITE_DBSTATUS_LOOKASIDE_HIT]; db 130 third_party/sqlite/src/src/status.c db->lookaside.anStat[op - SQLITE_DBSTATUS_LOOKASIDE_HIT] = 0; db 143 third_party/sqlite/src/src/status.c sqlite3BtreeEnterAll(db); db 144 third_party/sqlite/src/src/status.c for(i=0; i<db->nDb; i++){ db 145 third_party/sqlite/src/src/status.c Btree *pBt = db->aDb[i].pBt; db 151 third_party/sqlite/src/src/status.c sqlite3BtreeLeaveAll(db); db 166 third_party/sqlite/src/src/status.c sqlite3BtreeEnterAll(db); db 167 third_party/sqlite/src/src/status.c db->pnBytesFreed = &nByte; db 168 third_party/sqlite/src/src/status.c for(i=0; i<db->nDb; i++){ db 169 third_party/sqlite/src/src/status.c Schema *pSchema = db->aDb[i].pSchema; db 185 third_party/sqlite/src/src/status.c sqlite3DeleteTrigger(db, (Trigger*)sqliteHashData(p)); db 188 third_party/sqlite/src/src/status.c sqlite3DeleteTable(db, (Table *)sqliteHashData(p)); db 192 third_party/sqlite/src/src/status.c db->pnBytesFreed = 0; db 193 third_party/sqlite/src/src/status.c sqlite3BtreeLeaveAll(db); db 209 third_party/sqlite/src/src/status.c db->pnBytesFreed = &nByte; db 210 third_party/sqlite/src/src/status.c for(pVdbe=db->pVdbe; pVdbe; pVdbe=pVdbe->pNext){ db 211 third_party/sqlite/src/src/status.c sqlite3VdbeDeleteObject(db, pVdbe); db 213 third_party/sqlite/src/src/status.c db->pnBytesFreed = 0; db 225 third_party/sqlite/src/src/status.c sqlite3_mutex_leave(db->mutex); db 119 third_party/sqlite/src/src/table.c sqlite3 *db, /* The database on which the SQL executes */ db 141 third_party/sqlite/src/src/table.c db->errCode = SQLITE_NOMEM; db 145 third_party/sqlite/src/src/table.c rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg); db 157 third_party/sqlite/src/src/table.c db->errCode = res.rc; /* Assume 32-bit assignment is atomic */ db 170 third_party/sqlite/src/src/table.c db->errCode = SQLITE_NOMEM; db 113 third_party/sqlite/src/src/tclsqlite.c sqlite3 *db; /* The "real" database structure. MUST BE FIRST */ db 186 third_party/sqlite/src/src/tclsqlite.c sqlite3 *db = p->pDb->db; db 203 third_party/sqlite/src/src/tclsqlite.c Tcl_SetResult(interp, (char *)sqlite3_errmsg(db), TCL_VOLATILE); db 341 third_party/sqlite/src/src/tclsqlite.c sqlite3 *db = pDb->db; db 350 third_party/sqlite/src/src/tclsqlite.c rc = sqlite3_blob_open(db, zDb, zTable, zColumn, iRow, !isReadonly, &pBlob); db 352 third_party/sqlite/src/src/tclsqlite.c Tcl_SetResult(interp, (char *)sqlite3_errmsg(pDb->db), TCL_VOLATILE); db 452 third_party/sqlite/src/src/tclsqlite.c static void DbDeleteCmd(void *db){ db 453 third_party/sqlite/src/src/tclsqlite.c SqliteDb *pDb = (SqliteDb*)db; db 456 third_party/sqlite/src/src/tclsqlite.c sqlite3_close(pDb->db); db 601 third_party/sqlite/src/src/tclsqlite.c sqlite3 *db, db 678 third_party/sqlite/src/src/tclsqlite.c sqlite3 *db, db 1011 third_party/sqlite/src/src/tclsqlite.c if( sqlite3_exec(pDb->db, zEnd, 0, 0, 0) ){ db 1023 third_party/sqlite/src/src/tclsqlite.c Tcl_AppendResult(interp, sqlite3_errmsg(pDb->db), 0); db 1026 third_party/sqlite/src/src/tclsqlite.c sqlite3_exec(pDb->db, "ROLLBACK", 0, 0, 0); db 1103 third_party/sqlite/src/src/tclsqlite.c if( SQLITE_OK!=sqlite3_prepare_v2(pDb->db, zSql, -1, &pStmt, pzOut) ){ db 1104 third_party/sqlite/src/src/tclsqlite.c Tcl_SetObjResult(interp, dbTextToObj(sqlite3_errmsg(pDb->db))); db 1108 third_party/sqlite/src/src/tclsqlite.c if( SQLITE_OK!=sqlite3_errcode(pDb->db) ){ db 1110 third_party/sqlite/src/src/tclsqlite.c Tcl_SetObjResult(interp, dbTextToObj(sqlite3_errmsg(pDb->db))); db 1395 third_party/sqlite/src/src/tclsqlite.c Tcl_SetObjResult(pDb->interp, dbTextToObj(sqlite3_errmsg(pDb->db))); db 1655 third_party/sqlite/src/src/tclsqlite.c sqlite3_set_authorizer(pDb->db, auth_callback, pDb); db 1657 third_party/sqlite/src/src/tclsqlite.c sqlite3_set_authorizer(pDb->db, 0, 0); db 1693 third_party/sqlite/src/src/tclsqlite.c pBackup = sqlite3_backup_init(pDest, "main", pDb->db, zSrcDb); db 1741 third_party/sqlite/src/src/tclsqlite.c sqlite3_busy_handler(pDb->db, DbBusyHandler, pDb); db 1743 third_party/sqlite/src/src/tclsqlite.c sqlite3_busy_handler(pDb->db, 0, 0); db 1811 third_party/sqlite/src/src/tclsqlite.c Tcl_SetIntObj(pResult, sqlite3_changes(pDb->db)); db 1848 third_party/sqlite/src/src/tclsqlite.c if( sqlite3_create_collation(pDb->db, zName, SQLITE_UTF8, db 1850 third_party/sqlite/src/src/tclsqlite.c Tcl_SetResult(interp, (char *)sqlite3_errmsg(pDb->db), TCL_VOLATILE); db 1872 third_party/sqlite/src/src/tclsqlite.c sqlite3_collation_needed(pDb->db, pDb, tclCollateNeeded); db 1906 third_party/sqlite/src/src/tclsqlite.c sqlite3_commit_hook(pDb->db, DbCommitHandler, pDb); db 1908 third_party/sqlite/src/src/tclsqlite.c sqlite3_commit_hook(pDb->db, 0, 0); db 2013 third_party/sqlite/src/src/tclsqlite.c rc = sqlite3_prepare(pDb->db, zSql, -1, &pStmt, 0); db 2016 third_party/sqlite/src/src/tclsqlite.c Tcl_AppendResult(interp, "Error: ", sqlite3_errmsg(pDb->db), 0); db 2039 third_party/sqlite/src/src/tclsqlite.c rc = sqlite3_prepare(pDb->db, zSql, -1, &pStmt, 0); db 2042 third_party/sqlite/src/src/tclsqlite.c Tcl_AppendResult(interp, "Error: ", sqlite3_errmsg(pDb->db), 0); db 2058 third_party/sqlite/src/src/tclsqlite.c (void)sqlite3_exec(pDb->db, "BEGIN", 0, 0, 0); db 2103 third_party/sqlite/src/src/tclsqlite.c Tcl_AppendResult(interp,"Error: ", sqlite3_errmsg(pDb->db), 0); db 2111 third_party/sqlite/src/src/tclsqlite.c (void)sqlite3_exec(pDb->db, zCommit, 0, 0, 0); db 2143 third_party/sqlite/src/src/tclsqlite.c sqlite3_enable_load_extension(pDb->db, onoff); db 2159 third_party/sqlite/src/src/tclsqlite.c Tcl_SetObjResult(interp, Tcl_NewIntObj(sqlite3_errcode(pDb->db))); db 2289 third_party/sqlite/src/src/tclsqlite.c rc = sqlite3_create_function(pDb->db, zName, nArg, SQLITE_UTF8, db 2293 third_party/sqlite/src/src/tclsqlite.c Tcl_SetResult(interp, (char *)sqlite3_errmsg(pDb->db), TCL_VOLATILE); db 2345 third_party/sqlite/src/src/tclsqlite.c sqlite3_interrupt(pDb->db); db 2392 third_party/sqlite/src/src/tclsqlite.c rowid = sqlite3_last_insert_rowid(pDb->db); db 2432 third_party/sqlite/src/src/tclsqlite.c sqlite3_progress_handler(pDb->db, N, DbProgressHandler, pDb); db 2434 third_party/sqlite/src/src/tclsqlite.c sqlite3_progress_handler(pDb->db, 0, 0, 0); db 2474 third_party/sqlite/src/src/tclsqlite.c sqlite3_profile(pDb->db, DbProfileHandler, pDb); db 2476 third_party/sqlite/src/src/tclsqlite.c sqlite3_profile(pDb->db, 0, 0); db 2497 third_party/sqlite/src/src/tclsqlite.c rc = sqlite3_rekey(pDb->db, pKey, nKey); db 2535 third_party/sqlite/src/src/tclsqlite.c pBackup = sqlite3_backup_init(pDb->db, zDestDb, pSrc, "main"); db 2538 third_party/sqlite/src/src/tclsqlite.c sqlite3_errmsg(pDb->db), (char*)0); db 2558 third_party/sqlite/src/src/tclsqlite.c sqlite3_errmsg(pDb->db), (char*)0); db 2607 third_party/sqlite/src/src/tclsqlite.c sqlite3_busy_timeout(pDb->db, ms); db 2624 third_party/sqlite/src/src/tclsqlite.c Tcl_SetIntObj(pResult, sqlite3_total_changes(pDb->db)); db 2658 third_party/sqlite/src/src/tclsqlite.c sqlite3_trace(pDb->db, DbTraceHandler, pDb); db 2660 third_party/sqlite/src/src/tclsqlite.c sqlite3_trace(pDb->db, 0, 0); db 2708 third_party/sqlite/src/src/tclsqlite.c rc = sqlite3_exec(pDb->db, zBegin, 0, 0, 0); db 2711 third_party/sqlite/src/src/tclsqlite.c Tcl_AppendResult(interp, sqlite3_errmsg(pDb->db), 0); db 2757 third_party/sqlite/src/src/tclsqlite.c if( sqlite3_unlock_notify(pDb->db, xNotify, pNotifyArg) ){ db 2758 third_party/sqlite/src/src/tclsqlite.c Tcl_AppendResult(interp, sqlite3_errmsg(pDb->db), 0); db 2806 third_party/sqlite/src/src/tclsqlite.c sqlite3_update_hook(pDb->db, (pDb->pUpdateHook?DbUpdateHandler:0), pDb); db 2807 third_party/sqlite/src/src/tclsqlite.c sqlite3_rollback_hook(pDb->db,(pDb->pRollbackHook?DbRollbackHandler:0),pDb); db 2808 third_party/sqlite/src/src/tclsqlite.c sqlite3_wal_hook(pDb->db,(pDb->pWalHook?DbWalHandler:0),pDb); db 2962 third_party/sqlite/src/src/tclsqlite.c sqlite3_open_v2(zFile, &p->db, flags, zVfs); db 2964 third_party/sqlite/src/src/tclsqlite.c if( SQLITE_OK!=sqlite3_errcode(p->db) ){ db 2965 third_party/sqlite/src/src/tclsqlite.c zErrMsg = sqlite3_mprintf("%s", sqlite3_errmsg(p->db)); db 2966 third_party/sqlite/src/src/tclsqlite.c sqlite3_close(p->db); db 2967 third_party/sqlite/src/src/tclsqlite.c p->db = 0; db 2970 third_party/sqlite/src/src/tclsqlite.c if( p->db ){ db 2971 third_party/sqlite/src/src/tclsqlite.c sqlite3_key(p->db, pKey, nKey); db 2974 third_party/sqlite/src/src/tclsqlite.c if( p->db==0 ){ db 3462 third_party/sqlite/src/src/tclsqlite.c int Md5_Register(sqlite3 *db){ db 3463 third_party/sqlite/src/src/tclsqlite.c int rc = sqlite3_create_function(db, "md5sum", -1, SQLITE_UTF8, 0, 0, db 3465 third_party/sqlite/src/src/tclsqlite.c sqlite3_overload_function(db, "md5sum", -1); /* To exercise this API */ db 28 third_party/sqlite/src/src/test1.c sqlite3 *db; db 92 third_party/sqlite/src/src/test1.c sprintf(zBuf, "%p", p->db); db 94 third_party/sqlite/src/src/test1.c sprintf(zBuf, "0x%p", p->db); db 108 third_party/sqlite/src/src/test1.c *ppDb = p->db; db 181 third_party/sqlite/src/src/test1.c int sqlite3TestErrCode(Tcl_Interp *interp, sqlite3 *db, int rc){ db 183 third_party/sqlite/src/src/test1.c && sqlite3_errcode(db)!=rc ){ db 185 third_party/sqlite/src/src/test1.c int r2 = sqlite3_errcode(db); db 311 third_party/sqlite/src/src/test1.c sqlite3 *db; db 322 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 325 third_party/sqlite/src/src/test1.c rc = sqlite3_exec(db, zSql, exec_printf_cb, &str, &zErr); db 332 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 349 third_party/sqlite/src/src/test1.c sqlite3 *db; db 361 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 373 third_party/sqlite/src/src/test1.c rc = sqlite3_exec(db, zSql, exec_printf_cb, &str, &zErr); db 379 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 395 third_party/sqlite/src/src/test1.c sqlite3 *db; db 401 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 402 third_party/sqlite/src/src/test1.c sqlite3_mutex_enter(db->mutex); db 411 third_party/sqlite/src/src/test1.c sqlite3 *db; db 417 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 418 third_party/sqlite/src/src/test1.c sqlite3_mutex_leave(db->mutex); db 433 third_party/sqlite/src/src/test1.c sqlite3 *db; db 445 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 457 third_party/sqlite/src/src/test1.c rc = sqlite3_exec(db, zSql, exec_printf_cb, &str, &zErr); db 464 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 480 third_party/sqlite/src/src/test1.c sqlite3 *db; db 488 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 489 third_party/sqlite/src/src/test1.c rc = sqlite3_exec(db, argv[2], 0, 0, &zErr); db 490 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 580 third_party/sqlite/src/src/test1.c sqlite3 *db; db 598 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 602 third_party/sqlite/src/src/test1.c rc = sqlite3_get_table(db, zSql, &aResult, 0, 0, &zErr); db 604 third_party/sqlite/src/src/test1.c rc = sqlite3_get_table(db, zSql, &aResult, &nRow, &nCol, &zErr); db 625 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 643 third_party/sqlite/src/src/test1.c sqlite3 *db; db 650 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 651 third_party/sqlite/src/src/test1.c sprintf(zBuf, "%lld", sqlite3_last_insert_rowid(db)); db 667 third_party/sqlite/src/src/test1.c sqlite3 *db; db 675 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 679 third_party/sqlite/src/src/test1.c sqlite3_key(db, zKey, nKey); db 695 third_party/sqlite/src/src/test1.c sqlite3 *db; db 703 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 707 third_party/sqlite/src/src/test1.c sqlite3_rekey(db, zKey, nKey); db 723 third_party/sqlite/src/src/test1.c sqlite3 *db; db 730 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 731 third_party/sqlite/src/src/test1.c rc = sqlite3_close(db); db 996 third_party/sqlite/src/src/test1.c sqlite3 *db; db 1003 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 1004 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, "x_coalesce", -1, SQLITE_ANY, 0, db 1007 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, "hex8", 1, SQLITE_ANY, 0, db 1012 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, "hex16", 1, SQLITE_ANY, 0, db 1017 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, "tkt2213func", 1, SQLITE_ANY, 0, db 1021 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, "pointer_change", 4, SQLITE_ANY, 0, db 1031 third_party/sqlite/src/src/test1.c sqlite3_mutex_enter(db->mutex); db 1032 third_party/sqlite/src/src/test1.c pVal = sqlite3ValueNew(db); db 1035 third_party/sqlite/src/src/test1.c if( db->mallocFailed ){ db 1038 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function16(db, zUtf16, db 1039 third_party/sqlite/src/src/test1.c 1, SQLITE_UTF16, db, sqlite3ExecFunc, 0, 0); db 1042 third_party/sqlite/src/src/test1.c sqlite3_mutex_leave(db->mutex); db 1046 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 1139 third_party/sqlite/src/src/test1.c sqlite3 *db; db 1146 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 1147 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, "x_count", 0, SQLITE_UTF8, 0, 0, db 1150 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, "x_count", 1, SQLITE_UTF8, 0, 0, db 1155 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, "legacy_count", 0, SQLITE_ANY, 0, 0, db 1160 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 1510 third_party/sqlite/src/src/test1.c sqlite3 *db; db 1516 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1518 third_party/sqlite/src/src/test1.c sqlite3_extended_result_codes(db, enable); db 1547 third_party/sqlite/src/src/test1.c sqlite3 *db; db 1564 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1571 third_party/sqlite/src/src/test1.c rc = sqlite3_table_column_metadata(db, zDb, zTbl, zCol, db 1575 third_party/sqlite/src/src/test1.c Tcl_AppendResult(interp, sqlite3_errmsg(db), 0); db 1853 third_party/sqlite/src/src/test1.c sqlite3 *db; db 1860 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1869 third_party/sqlite/src/src/test1.c rc = sqlite3_create_collation_v2(db, Tcl_GetString(objv[2]), 16, db 1877 third_party/sqlite/src/src/test1.c rc = sqlite3_create_collation_v2(db, Tcl_GetString(objv[2]), SQLITE_UTF8, db 1927 third_party/sqlite/src/src/test1.c sqlite3 *db; db 1952 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1992 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function_v2(db, zFunc, nArg, enc, (void *)p, db 2016 third_party/sqlite/src/src/test1.c sqlite3 *db; db 2038 third_party/sqlite/src/src/test1.c db = ((struct SqliteDb*)cmdInfo.objClientData)->db; db 2039 third_party/sqlite/src/src/test1.c assert(db); db 2049 third_party/sqlite/src/src/test1.c rc = sqlite3_load_extension(db, zFile, zProc, &zErr); db 2072 third_party/sqlite/src/src/test1.c sqlite3 *db; db 2087 third_party/sqlite/src/src/test1.c db = ((struct SqliteDb*)cmdInfo.objClientData)->db; db 2088 third_party/sqlite/src/src/test1.c assert(db); db 2099 third_party/sqlite/src/src/test1.c sqlite3_enable_load_extension(db, onoff); db 2176 third_party/sqlite/src/src/test1.c sqlite3 *db; db 2183 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 2184 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, argv[2], -1, SQLITE_UTF8, 0, db 2190 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 2207 third_party/sqlite/src/src/test1.c sqlite3 *db = 0; db 2218 third_party/sqlite/src/src/test1.c db = StmtToDb(pStmt); db 2222 third_party/sqlite/src/src/test1.c if( db && sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 2283 third_party/sqlite/src/src/test1.c sqlite3 *db = 0; db 2292 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 2294 third_party/sqlite/src/src/test1.c pStmt = sqlite3_next_stmt(db, pStmt); db 2427 third_party/sqlite/src/src/test1.c sqlite3 *db; db 2433 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 2434 third_party/sqlite/src/src/test1.c Tcl_SetObjResult(interp, Tcl_NewIntObj(sqlite3_changes(db))); db 2584 third_party/sqlite/src/src/test1.c sqlite3 *db; db 2591 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 2594 third_party/sqlite/src/src/test1.c rc = sqlite3_create_collation(db, "test_collate", SQLITE_UTF8, db 2599 third_party/sqlite/src/src/test1.c rc = sqlite3_create_collation(db, "test_collate", SQLITE_UTF16LE, db 2608 third_party/sqlite/src/src/test1.c sqlite3_mutex_enter(db->mutex); db 2609 third_party/sqlite/src/src/test1.c pVal = sqlite3ValueNew(db); db 2612 third_party/sqlite/src/src/test1.c if( db->mallocFailed ){ db 2615 third_party/sqlite/src/src/test1.c rc = sqlite3_create_collation16(db, zUtf16, SQLITE_UTF16BE, db 2619 third_party/sqlite/src/src/test1.c sqlite3_mutex_leave(db->mutex); db 2621 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 2651 third_party/sqlite/src/src/test1.c sqlite3 *db, db 2655 third_party/sqlite/src/src/test1.c int enc = ENC(db); db 2663 third_party/sqlite/src/src/test1.c db, "test_collate", ENC(db), SQLITE_INT_TO_PTR(enc), test_collate_func); db 2675 third_party/sqlite/src/src/test1.c sqlite3 *db; db 2679 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 2680 third_party/sqlite/src/src/test1.c rc = sqlite3_collation_needed16(db, 0, test_collate_needed_cb); db 2682 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 2726 third_party/sqlite/src/src/test1.c sqlite3 *db; db 2728 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 2729 third_party/sqlite/src/src/test1.c sqlite3_create_collation(db, "utf16_unaligned", SQLITE_UTF16, db 2731 third_party/sqlite/src/src/test1.c sqlite3_create_collation(db, "utf16_aligned", SQLITE_UTF16_ALIGNED, db 2845 third_party/sqlite/src/src/test1.c sqlite3 *db; db 2849 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 2853 third_party/sqlite/src/src/test1.c sqlite3_create_function(db, "test_function", 1, SQLITE_UTF8, db 2858 third_party/sqlite/src/src/test1.c sqlite3_create_function(db, "test_function", 1, SQLITE_UTF16LE, db 2863 third_party/sqlite/src/src/test1.c sqlite3_create_function(db, "test_function", 1, SQLITE_UTF16BE, db 3415 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3423 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3424 third_party/sqlite/src/src/test1.c rc = sqlite3_extended_errcode(db); db 3442 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3450 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3451 third_party/sqlite/src/src/test1.c rc = sqlite3_errcode(db); db 3468 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3476 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3478 third_party/sqlite/src/src/test1.c zErr = sqlite3_errmsg(db); db 3498 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3508 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3510 third_party/sqlite/src/src/test1.c zErr = sqlite3_errmsg16(db); db 3534 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3547 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3551 third_party/sqlite/src/src/test1.c rc = sqlite3_prepare(db, zSql, bytes, &pStmt, objc>=5 ? &zTail : 0); db 3553 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 3566 third_party/sqlite/src/src/test1.c Tcl_AppendResult(interp, zBuf, sqlite3_errmsg(db), 0); db 3591 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3604 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3608 third_party/sqlite/src/src/test1.c rc = sqlite3_prepare_v2(db, zSql, bytes, &pStmt, objc>=5 ? &zTail : 0); db 3611 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 3621 third_party/sqlite/src/src/test1.c Tcl_AppendResult(interp, zBuf, sqlite3_errmsg(db), 0); db 3644 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3655 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3656 third_party/sqlite/src/src/test1.c rc = sqlite3_prepare_v2(db, &zSql[1], 0, &pStmt, 0); db 3658 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 3662 third_party/sqlite/src/src/test1.c Tcl_AppendResult(interp, zBuf, sqlite3_errmsg(db), 0); db 3688 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3703 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3707 third_party/sqlite/src/src/test1.c rc = sqlite3_prepare16(db, zSql, bytes, &pStmt, objc>=5 ? &zTail : 0); db 3708 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 3748 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3763 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 3767 third_party/sqlite/src/src/test1.c rc = sqlite3_prepare16_v2(db, zSql, bytes, &pStmt, objc>=5 ? &zTail : 0); db 3768 third_party/sqlite/src/src/test1.c if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; db 3803 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3814 third_party/sqlite/src/src/test1.c rc = sqlite3_open(zFilename, &db); db 3816 third_party/sqlite/src/src/test1.c if( sqlite3TestMakePointerStr(interp, zBuf, db) ) return TCL_ERROR; db 3832 third_party/sqlite/src/src/test1.c sqlite3 *db; db 3843 third_party/sqlite/src/src/test1.c rc = sqlite3_open16(zFilename, &db); db 3845 third_party/sqlite/src/src/test1.c if( sqlite3TestMakePointerStr(interp, zBuf, db) ) return TCL_ERROR; db 4248 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4254 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 4256 third_party/sqlite/src/src/test1.c db->magic = SQLITE_MAGIC_OPEN; db 4258 third_party/sqlite/src/src/test1.c db->magic = SQLITE_MAGIC_CLOSED; db 4260 third_party/sqlite/src/src/test1.c db->magic = SQLITE_MAGIC_BUSY; db 4262 third_party/sqlite/src/src/test1.c db->magic = SQLITE_MAGIC_ERROR; db 4263 third_party/sqlite/src/src/test1.c }else if( Tcl_GetInt(interp, argv[2], (int*)&db->magic) ){ db 4280 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4285 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 4286 third_party/sqlite/src/src/test1.c sqlite3_interrupt(db); db 4321 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4328 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 4330 third_party/sqlite/src/src/test1.c (void)sqlite3_exec(db, argv[2], 0, 0, 0); db 4350 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4356 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 4357 third_party/sqlite/src/src/test1.c rc = sqlite3_create_function(db, argv[2], -1, SQLITE_UTF8, 0, 0, 0, 0); db 4376 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4382 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 4383 third_party/sqlite/src/src/test1.c rc = sqlite3_create_collation(db, argv[2], SQLITE_UTF8, 0, 0); db 4401 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4407 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 4408 third_party/sqlite/src/src/test1.c sprintf(zBuf, "%d", sqlite3_get_autocommit(db)); db 4427 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4433 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; db 4435 third_party/sqlite/src/src/test1.c rc = sqlite3_busy_timeout(db, ms); db 4552 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4562 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 4564 third_party/sqlite/src/src/test1.c for(i=0; i<db->nDb; i++){ db 4565 third_party/sqlite/src/src/test1.c if( db->aDb[i].pBt==0 ){ db 4568 third_party/sqlite/src/src/test1.c sqlite3_mutex_enter(db->mutex); db 4569 third_party/sqlite/src/src/test1.c a = sqlite3PagerStats(sqlite3BtreePager(db->aDb[i].pBt)); db 4571 third_party/sqlite/src/src/test1.c sqlite3_mutex_leave(db->mutex); db 4794 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4802 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 4803 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, 0, 0, &iArg); db 4805 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, "notadatabase", SQLITE_FCNTL_LOCKSTATE, &iArg); db 4807 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, "main", -1, &iArg); db 4809 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, "temp", -1, &iArg); db 4829 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4837 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ){ db 4840 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, NULL, SQLITE_LAST_ERRNO, &iArg); db 4868 third_party/sqlite/src/src/test1.c sqlite3 *db; /* Database handle */ db 4875 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) db 4883 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, zDb, SQLITE_FCNTL_CHUNK_SIZE, (void *)&nSize); db 4906 third_party/sqlite/src/src/test1.c sqlite3 *db; /* Database handle */ db 4913 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) db 4921 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, zDb, SQLITE_FCNTL_SIZE_HINT, (void *)&nSize); db 4942 third_party/sqlite/src/src/test1.c sqlite3 *db; db 4951 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ){ db 4974 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, NULL, SQLITE_SET_LOCKPROXYFILE, proxyPath); db 4979 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, NULL, SQLITE_GET_LOCKPROXYFILE, &testPath); db 4989 third_party/sqlite/src/src/test1.c rc = sqlite3_file_control(db, NULL, SQLITE_SET_LOCKPROXYFILE, proxyPath); db 5036 third_party/sqlite/src/src/test1.c sqlite3 *db; db 5067 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 5080 third_party/sqlite/src/src/test1.c rc = sqlite3_limit(db, id, val); db 5181 third_party/sqlite/src/src/test1.c sqlite3 *db; db 5189 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ){ db 5192 third_party/sqlite/src/src/test1.c rc = sqlite3_unlock_notify(db, test_unlock_notify_cb, (void *)interp); db 5208 third_party/sqlite/src/src/test1.c sqlite3 *db; db 5216 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ){ db 5222 third_party/sqlite/src/src/test1.c rc = sqlite3_wal_checkpoint(db, zDb); db 5252 third_party/sqlite/src/src/test1.c sqlite3 *db; db 5273 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) db 5279 third_party/sqlite/src/src/test1.c rc = sqlite3_wal_checkpoint_v2(db, zDb, eMode, &nLog, &nCkpt); db 5281 third_party/sqlite/src/src/test1.c Tcl_SetResult(interp, (char *)sqlite3_errmsg(db), TCL_VOLATILE); db 5439 third_party/sqlite/src/src/test1.c sqlite3 *db; db 5461 third_party/sqlite/src/src/test1.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 5479 third_party/sqlite/src/src/test1.c sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS, db, mask); db 186 third_party/sqlite/src/src/test3.c sqlite3_mutex_enter(pBt->db->mutex); db 203 third_party/sqlite/src/src/test3.c sqlite3_mutex_leave(pBt->db->mutex); db 526 third_party/sqlite/src/src/test3.c sqlite3 *db; db 544 third_party/sqlite/src/src/test3.c db = *((sqlite3 **)info.objClientData); db 545 third_party/sqlite/src/src/test3.c assert( db ); db 547 third_party/sqlite/src/src/test3.c pBt = db->aDb[iDb].pBt; db 573 third_party/sqlite/src/src/test3.c sqlite3_mutex_enter(pBt->db->mutex); db 577 third_party/sqlite/src/src/test3.c sqlite3_mutex_leave(pBt->db->mutex); db 604 third_party/sqlite/src/src/test3.c sqlite3_mutex_enter(pBt->db->mutex); db 608 third_party/sqlite/src/src/test3.c sqlite3_mutex_leave(pBt->db->mutex); db 40 third_party/sqlite/src/src/test4.c sqlite3 *db; /* Open database */ db 63 third_party/sqlite/src/src/test4.c if( p->db ){ db 64 third_party/sqlite/src/src/test4.c sqlite3_close(p->db); db 66 third_party/sqlite/src/src/test4.c sqlite3_open(p->zFilename, &p->db); db 67 third_party/sqlite/src/src/test4.c if( SQLITE_OK!=sqlite3_errcode(p->db) ){ db 68 third_party/sqlite/src/src/test4.c p->zErr = strdup(sqlite3_errmsg(p->db)); db 69 third_party/sqlite/src/src/test4.c sqlite3_close(p->db); db 70 third_party/sqlite/src/src/test4.c p->db = 0; db 88 third_party/sqlite/src/src/test4.c if( p->db ){ db 89 third_party/sqlite/src/src/test4.c sqlite3_close(p->db); db 90 third_party/sqlite/src/src/test4.c p->db = 0; db 441 third_party/sqlite/src/src/test4.c if( p->db==0 ){ db 450 third_party/sqlite/src/src/test4.c p->rc = sqlite3_prepare(p->db, p->zArg, -1, &p->pStmt, 0); db 611 third_party/sqlite/src/src/test4.c temp = threadset[i].db; db 612 third_party/sqlite/src/src/test4.c threadset[i].db = threadset[j].db; db 613 third_party/sqlite/src/src/test4.c threadset[j].db = temp; db 645 third_party/sqlite/src/src/test4.c sqlite3TestMakePointerStr(interp, zBuf, threadset[i].db); db 646 third_party/sqlite/src/src/test4.c threadset[i].db = 0; db 676 third_party/sqlite/src/src/test4.c assert( !threadset[i].db ); db 677 third_party/sqlite/src/src/test4.c threadset[i].db = (sqlite3*)sqlite3TestTextToPtr(argv[2]); db 63 third_party/sqlite/src/src/test7.c sqlite3 *db; /* Open database */ db 85 third_party/sqlite/src/src/test7.c if( p->db ){ db 86 third_party/sqlite/src/src/test7.c sqlite3_client_close(p->db); db 88 third_party/sqlite/src/src/test7.c sqlite3_client_open(p->zFilename, &p->db); db 89 third_party/sqlite/src/src/test7.c if( SQLITE_OK!=sqlite3_errcode(p->db) ){ db 90 third_party/sqlite/src/src/test7.c p->zErr = strdup(sqlite3_errmsg(p->db)); db 91 third_party/sqlite/src/src/test7.c sqlite3_client_close(p->db); db 92 third_party/sqlite/src/src/test7.c p->db = 0; db 110 third_party/sqlite/src/src/test7.c if( p->db ){ db 111 third_party/sqlite/src/src/test7.c sqlite3_client_close(p->db); db 112 third_party/sqlite/src/src/test7.c p->db = 0; db 472 third_party/sqlite/src/src/test7.c if( p->db==0 ){ db 481 third_party/sqlite/src/src/test7.c p->rc = sqlite3_client_prepare(p->db, p->zArg, -1, &p->pStmt, 0); db 686 third_party/sqlite/src/src/test7.c temp = threadset[i].db; db 687 third_party/sqlite/src/src/test7.c threadset[i].db = threadset[j].db; db 688 third_party/sqlite/src/src/test7.c threadset[j].db = temp; db 75 third_party/sqlite/src/src/test8.c sqlite3 *db; /* Database connection */ db 156 third_party/sqlite/src/src/test8.c sqlite3 *db, db 176 third_party/sqlite/src/src/test8.c rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0); db 236 third_party/sqlite/src/src/test8.c sqlite3 *db, /* Database connection */ db 259 third_party/sqlite/src/src/test8.c rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0); db 273 third_party/sqlite/src/src/test8.c rc = sqlite3_prepare(db, zSql, -1, &pStmt2, 0); db 332 third_party/sqlite/src/src/test8.c sqlite3 *db db 338 third_party/sqlite/src/src/test8.c rc = sqlite3_prepare(db, db 346 third_party/sqlite/src/src/test8.c rc = sqlite3_declare_vtab(db, zCreateTable); db 358 third_party/sqlite/src/src/test8.c rc = getColumnNames(db, pVtab->zTableName, &pVtab->aCol, &pVtab->nCol); db 361 third_party/sqlite/src/src/test8.c rc = getIndexArray(db, pVtab->zTableName, pVtab->nCol, &pVtab->aIndex); db 395 third_party/sqlite/src/src/test8.c sqlite3 *db, db 411 third_party/sqlite/src/src/test8.c pVtab->db = db; db 445 third_party/sqlite/src/src/test8.c rc = echoDeclareVtab(pVtab, db); db 460 third_party/sqlite/src/src/test8.c sqlite3 *db, db 468 third_party/sqlite/src/src/test8.c rc = echoConstructor(db, pAux, argc, argv, ppVtab, pzErr); db 485 third_party/sqlite/src/src/test8.c rc = sqlite3_exec(db, zSql, 0, 0, 0); db 488 third_party/sqlite/src/src/test8.c *pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db)); db 508 third_party/sqlite/src/src/test8.c sqlite3 *db, db 515 third_party/sqlite/src/src/test8.c return echoConstructor(db, pAux, argc, argv, ppVtab, pzErr); db 538 third_party/sqlite/src/src/test8.c rc = sqlite3_exec(p->db, zSql, 0, 0, 0); db 671 third_party/sqlite/src/src/test8.c sqlite3 *db = pVtab->db; db 693 third_party/sqlite/src/src/test8.c rc = sqlite3_prepare(db, idxStr, -1, &pCur->pStmt, 0); db 806 third_party/sqlite/src/src/test8.c rc = sqlite3_prepare(pVtab->db, zQuery, -1, &pStmt, 0); db 930 third_party/sqlite/src/src/test8.c sqlite3 *db = pVtab->db; db 1019 third_party/sqlite/src/src/test8.c rc = sqlite3_prepare(db, z, -1, &pStmt, 0); db 1042 third_party/sqlite/src/src/test8.c *pRowid = sqlite3_last_insert_rowid(db); db 1045 third_party/sqlite/src/src/test8.c tab->zErrMsg = sqlite3_mprintf("echo-vtab-error: %s", sqlite3_errmsg(db)); db 1228 third_party/sqlite/src/src/test8.c rc = sqlite3_exec(p->db, zSql, 0, 0, 0); db 1280 third_party/sqlite/src/src/test8.c sqlite3 *db; db 1286 third_party/sqlite/src/src/test8.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1289 third_party/sqlite/src/src/test8.c sqlite3_create_module_v2(db, "echo", &echoModule, (void*)pMod, moduleDestroy); db 1304 third_party/sqlite/src/src/test8.c sqlite3 *db; db 1310 third_party/sqlite/src/src/test8.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1311 third_party/sqlite/src/src/test8.c rc = sqlite3_declare_vtab(db, Tcl_GetString(objv[2])); db 1313 third_party/sqlite/src/src/test8.c Tcl_SetResult(interp, (char *)sqlite3_errmsg(db), TCL_VOLATILE); db 32 third_party/sqlite/src/src/test9.c sqlite3 *db; db 41 third_party/sqlite/src/src/test9.c rc = sqlite3_open(":memory:", &db); db 47 third_party/sqlite/src/src/test9.c rc = sqlite3_create_collation(db, "collate", 456, 0, 0); db 49 third_party/sqlite/src/src/test9.c sqlite3_close(db); db 54 third_party/sqlite/src/src/test9.c sqlite3_close(db); db 114 third_party/sqlite/src/src/test9.c sqlite3 *db = 0; db 126 third_party/sqlite/src/src/test9.c rc = sqlite3_open(":memory:", &db); db 131 third_party/sqlite/src/src/test9.c sqlite3_close(db); db 134 third_party/sqlite/src/src/test9.c rc = sqlite3_errcode(db); db 141 third_party/sqlite/src/src/test9.c rc = sqlite3_prepare(db, 0, 0, &pStmt, 0); db 149 third_party/sqlite/src/src/test9.c rc = sqlite3_prepare_v2(db, 0, 0, &pStmt, 0); db 158 third_party/sqlite/src/src/test9.c rc = sqlite3_prepare16(db, 0, 0, &pStmt, 0); db 165 third_party/sqlite/src/src/test9.c rc = sqlite3_prepare16_v2(db, 0, 0, &pStmt, 0); db 36 third_party/sqlite/src/src/test_autoext.c sqlite3 *db, db 41 third_party/sqlite/src/src/test_autoext.c sqlite3_create_function(db, "sqr", 1, SQLITE_ANY, 0, sqrFunc, 0, 0); db 61 third_party/sqlite/src/src/test_autoext.c sqlite3 *db, db 66 third_party/sqlite/src/src/test_autoext.c sqlite3_create_function(db, "cube", 1, SQLITE_ANY, 0, cubeFunc, 0, 0); db 74 third_party/sqlite/src/src/test_autoext.c sqlite3 *db, db 164 third_party/sqlite/src/src/test_func.c sqlite3 * db = sqlite3_context_db_handle(ctx); db 167 third_party/sqlite/src/src/test_func.c z = sqlite3_errmsg16(db); db 297 third_party/sqlite/src/src/test_func.c sqlite3 *db = sqlite3_context_db_handle(pCtx); db 301 third_party/sqlite/src/src/test_func.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); db 312 third_party/sqlite/src/src/test_func.c zErr = sqlite3_mprintf("sqlite3_prepare_v2() error: %s",sqlite3_errmsg(db)); db 425 third_party/sqlite/src/src/test_func.c static int registerTestFunctions(sqlite3 *db){ db 451 third_party/sqlite/src/src/test_func.c sqlite3_create_function(db, aFuncs[i].zName, aFuncs[i].nArg, db 455 third_party/sqlite/src/src/test_func.c sqlite3_create_function(db, "test_agg_errmsg16", 0, SQLITE_ANY, 0, 0, db 503 third_party/sqlite/src/src/test_func.c sqlite3 *db; db 507 third_party/sqlite/src/src/test_func.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 509 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "tx", 1, SQLITE_UTF8, 0, tStep,tStep,tFinal); db 512 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "tx", 1, SQLITE_UTF8, 0, tStep, tStep, 0); db 515 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "tx", 1, SQLITE_UTF8, 0, tStep, 0, tFinal); db 518 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "tx", 1, SQLITE_UTF8, 0, 0, 0, tFinal); db 521 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "tx", 1, SQLITE_UTF8, 0, 0, tStep, 0); db 524 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "tx", -2, SQLITE_UTF8, 0, tStep, 0, 0); db 527 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "tx", 128, SQLITE_UTF8, 0, tStep, 0, 0); db 530 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "funcxx" db 543 third_party/sqlite/src/src/test_func.c sqlite3_limit(db, SQLITE_LIMIT_FUNCTION_ARG, 10000); db 544 third_party/sqlite/src/src/test_func.c mxArg = sqlite3_limit(db, SQLITE_LIMIT_FUNCTION_ARG, -1); db 545 third_party/sqlite/src/src/test_func.c rc = sqlite3_create_function(db, "nullx" db 188 third_party/sqlite/src/src/test_fuzzer.c sqlite3 *db, db 205 third_party/sqlite/src/src/test_fuzzer.c sqlite3_declare_vtab(db, "CREATE TABLE x(word,distance,cFrom,cTo,cost)"); db 890 third_party/sqlite/src/src/test_fuzzer.c int fuzzer_register(sqlite3 *db){ db 893 third_party/sqlite/src/src/test_fuzzer.c rc = sqlite3_create_module(db, "fuzzer", &fuzzerModule, 0); db 914 third_party/sqlite/src/src/test_fuzzer.c sqlite3 *db; db 919 third_party/sqlite/src/src/test_fuzzer.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 920 third_party/sqlite/src/src/test_fuzzer.c fuzzer_register(db); db 80 third_party/sqlite/src/src/test_intarray.c sqlite3 *db, /* Database where module is created */ db 93 third_party/sqlite/src/src/test_intarray.c rc = sqlite3_declare_vtab(db, "CREATE TABLE x(value INTEGER PRIMARY KEY)"); db 220 third_party/sqlite/src/src/test_intarray.c sqlite3 *db, db 233 third_party/sqlite/src/src/test_intarray.c rc = sqlite3_create_module_v2(db, zName, &intarrayModule, p, db 239 third_party/sqlite/src/src/test_intarray.c rc = sqlite3_exec(db, zSql, 0, 0, 0); db 295 third_party/sqlite/src/src/test_intarray.c sqlite3 *db; db 305 third_party/sqlite/src/src/test_intarray.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 308 third_party/sqlite/src/src/test_intarray.c rc = sqlite3_intarray_create(db, zName, &pArray); db 97 third_party/sqlite/src/src/test_intarray.h sqlite3 *db, db 95 third_party/sqlite/src/src/test_loadext.c sqlite3 *db, db 101 third_party/sqlite/src/src/test_loadext.c nErr |= sqlite3_create_function(db, "half", 1, SQLITE_ANY, 0, halfFunc, 0, 0); db 102 third_party/sqlite/src/src/test_loadext.c nErr |= sqlite3_create_function(db, "sqlite3_status", 1, SQLITE_ANY, 0, db 104 third_party/sqlite/src/src/test_loadext.c nErr |= sqlite3_create_function(db, "sqlite3_status", 2, SQLITE_ANY, 0, db 113 third_party/sqlite/src/src/test_loadext.c sqlite3 *db, db 1073 third_party/sqlite/src/src/test_malloc.c sqlite3 *db; db 1081 third_party/sqlite/src/src/test_malloc.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1086 third_party/sqlite/src/src/test_malloc.c rc = sqlite3_db_config(db, SQLITE_DBCONFIG_LOOKASIDE, 0, sz, cnt); db 1088 third_party/sqlite/src/src/test_malloc.c rc = sqlite3_db_config(db, SQLITE_DBCONFIG_LOOKASIDE, azBuf[bufid], sz,cnt); db 1151 third_party/sqlite/src/src/test_malloc.c sqlite3 *db; db 1159 third_party/sqlite/src/src/test_malloc.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1160 third_party/sqlite/src/src/test_malloc.c if( sqlite3_db_config(db, 99999)!=SQLITE_ERROR ){ db 1287 third_party/sqlite/src/src/test_malloc.c sqlite3 *db; db 1306 third_party/sqlite/src/src/test_malloc.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 1322 third_party/sqlite/src/src/test_malloc.c rc = sqlite3_db_status(db, op, &iValue, &mxValue, resetFlag); db 235 third_party/sqlite/src/src/test_multiplex.c sqlite3 *db = sqlite3_context_db_handle(context); db 239 third_party/sqlite/src/src/test_multiplex.c if( !db || argc!=2 ){ db 262 third_party/sqlite/src/src/test_multiplex.c rc = sqlite3_file_control(db, 0, op, &iVal); db 272 third_party/sqlite/src/src/test_multiplex.c sqlite3 *db, db 277 third_party/sqlite/src/src/test_multiplex.c rc = sqlite3_create_function(db, "multiplex_control", 2, SQLITE_ANY, db 1106 third_party/sqlite/src/src/test_multiplex.c sqlite3 *db; /* Underlying db handle for HANDLE */ db 1131 third_party/sqlite/src/src/test_multiplex.c db = *(sqlite3 **)cmdInfo.objClientData; db 1151 third_party/sqlite/src/src/test_multiplex.c rc = sqlite3_file_control(db, Tcl_GetString(objv[2]), aSub[idx].op, pArg); db 362 third_party/sqlite/src/src/test_mutex.c sqlite3 *db; db 366 third_party/sqlite/src/src/test_mutex.c db = *((sqlite3 **)info.objClientData); db 368 third_party/sqlite/src/src/test_mutex.c db = (sqlite3*)sqlite3TestTextToPtr(zCmd); db 370 third_party/sqlite/src/src/test_mutex.c assert( db ); db 371 third_party/sqlite/src/src/test_mutex.c return db; db 380 third_party/sqlite/src/src/test_mutex.c sqlite3 *db; db 385 third_party/sqlite/src/src/test_mutex.c db = getDbPointer(interp, objv[1]); db 386 third_party/sqlite/src/src/test_mutex.c if( !db ){ db 389 third_party/sqlite/src/src/test_mutex.c sqlite3_mutex_enter(sqlite3_db_mutex(db)); db 399 third_party/sqlite/src/src/test_mutex.c sqlite3 *db; db 404 third_party/sqlite/src/src/test_mutex.c db = getDbPointer(interp, objv[1]); db 405 third_party/sqlite/src/src/test_mutex.c if( !db ){ db 408 third_party/sqlite/src/src/test_mutex.c sqlite3_mutex_leave(sqlite3_db_mutex(db)); db 855 third_party/sqlite/src/src/test_osinst.c sqlite3 *db, db 892 third_party/sqlite/src/src/test_osinst.c sqlite3_declare_vtab(db, db 1062 third_party/sqlite/src/src/test_osinst.c int sqlite3_vfslog_register(sqlite3 *db){ db 1086 third_party/sqlite/src/src/test_osinst.c sqlite3_create_module(db, "vfslog", &vfslog_module, 0); db 1106 third_party/sqlite/src/src/test_osinst.c struct SqliteDb { sqlite3 *db; }; db 1107 third_party/sqlite/src/src/test_osinst.c sqlite3 *db; db 1191 third_party/sqlite/src/src/test_osinst.c db = ((struct SqliteDb*)cmdInfo.objClientData)->db; db 1192 third_party/sqlite/src/src/test_osinst.c rc = sqlite3_vfslog_register(db); db 248 third_party/sqlite/src/src/test_rtree.c sqlite3 *db; db 255 third_party/sqlite/src/src/test_rtree.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 256 third_party/sqlite/src/src/test_rtree.c rc = sqlite3_rtree_geometry_callback(db, "cube", cube_geom, (void *)&gHere); db 276 third_party/sqlite/src/src/test_rtree.c sqlite3 *db; db 283 third_party/sqlite/src/src/test_rtree.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 284 third_party/sqlite/src/src/test_rtree.c rc = sqlite3_rtree_geometry_callback(db, "circle", circle_geom, 0); db 55 third_party/sqlite/src/src/test_schema.c sqlite3 *db; db 84 third_party/sqlite/src/src/test_schema.c sqlite3 *db, db 94 third_party/sqlite/src/src/test_schema.c pVtab->db = db; db 96 third_party/sqlite/src/src/test_schema.c rc = sqlite3_declare_vtab(db, SCHEMA); db 211 third_party/sqlite/src/src/test_schema.c rc = sqlite3_prepare(pVtab->db, zSql, -1, &pCur->pTableList, 0); db 229 third_party/sqlite/src/src/test_schema.c rc = sqlite3_prepare(pVtab->db, zSql, -1, &pCur->pColumnList, 0); db 255 third_party/sqlite/src/src/test_schema.c rc = sqlite3_prepare(pVtab->db,"PRAGMA database_list", -1, &pCur->pDbList, 0); db 311 third_party/sqlite/src/src/test_schema.c sqlite3 *db; db 316 third_party/sqlite/src/src/test_schema.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 318 third_party/sqlite/src/src/test_schema.c sqlite3_create_module(db, "schema", &schemaModule, 0); db 348 third_party/sqlite/src/src/test_schema.c sqlite3 *db, db 354 third_party/sqlite/src/src/test_schema.c sqlite3_create_module(db, "schema", &schemaModule, 0); db 131 third_party/sqlite/src/src/test_stat.c sqlite3 *db; db 142 third_party/sqlite/src/src/test_stat.c sqlite3 *db, db 152 third_party/sqlite/src/src/test_stat.c pTab->db = db; db 154 third_party/sqlite/src/src/test_stat.c sqlite3_declare_vtab(db, VTAB_SCHEMA); db 207 third_party/sqlite/src/src/test_stat.c rc = sqlite3_prepare_v2(pTab->db, db 370 third_party/sqlite/src/src/test_stat.c Btree *pBt = pTab->db->aDb[0].pBt; db 542 third_party/sqlite/src/src/test_stat.c int sqlite3_dbstat_register(sqlite3 *db){ db 565 third_party/sqlite/src/src/test_stat.c sqlite3_create_module(db, "dbstat", &dbstat_module, 0); db 585 third_party/sqlite/src/src/test_stat.c struct SqliteDb { sqlite3 *db; }; db 596 third_party/sqlite/src/src/test_stat.c sqlite3* db = ((struct SqliteDb*)cmdInfo.objClientData)->db; db 597 third_party/sqlite/src/src/test_stat.c sqlite3_dbstat_register(db); db 42 third_party/sqlite/src/src/test_superlock.c sqlite3 *db; /* Database handle used to lock db */ db 71 third_party/sqlite/src/src/test_superlock.c rc = sqlite3_prepare(pLock->db, "PRAGMA main.journal_mode", -1, &pStmt, 0); db 110 third_party/sqlite/src/src/test_superlock.c sqlite3 *db, /* Database handle open on WAL database */ db 118 third_party/sqlite/src/src/test_superlock.c rc = sqlite3_file_control(db, "main", SQLITE_FCNTL_FILE_POINTER, (void *)&fd); db 157 third_party/sqlite/src/src/test_superlock.c rc = sqlite3_file_control(p->db, "main", SQLITE_FCNTL_FILE_POINTER, (void *)&fd); db 163 third_party/sqlite/src/src/test_superlock.c sqlite3_close(p->db); db 199 third_party/sqlite/src/src/test_superlock.c zPath, &pLock->db, SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE, zVfs db 218 third_party/sqlite/src/src/test_superlock.c sqlite3_busy_handler(pLock->db, superlockBusyHandler, (void *)&busy); db 219 third_party/sqlite/src/src/test_superlock.c rc = sqlite3_exec(pLock->db, "BEGIN EXCLUSIVE", 0, 0, 0); db 233 third_party/sqlite/src/src/test_superlock.c rc = sqlite3_exec(pLock->db, "COMMIT", 0, 0, 0); db 235 third_party/sqlite/src/src/test_superlock.c rc = superlockWalLock(pLock->db, &busy); db 49 third_party/sqlite/src/src/test_tclvar.c sqlite3 *db, db 62 third_party/sqlite/src/src/test_tclvar.c sqlite3_declare_vtab(db, zSchema); db 298 third_party/sqlite/src/src/test_tclvar.c sqlite3 *db; db 303 third_party/sqlite/src/src/test_tclvar.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 305 third_party/sqlite/src/src/test_tclvar.c sqlite3_create_module(db, "tclvar", &tclvarModule, (void *)interp); db 275 third_party/sqlite/src/src/test_thread.c sqlite3 *db; db 284 third_party/sqlite/src/src/test_thread.c rc = sqlite3_open(zFilename, &db); db 285 third_party/sqlite/src/src/test_thread.c Md5_Register(db); db 286 third_party/sqlite/src/src/test_thread.c sqlite3_busy_handler(db, xBusy, 0); db 288 third_party/sqlite/src/src/test_thread.c if( sqlite3TestMakePointerStr(interp, zBuf, db) ) return TCL_ERROR; db 440 third_party/sqlite/src/src/test_thread.c static int wait_for_unlock_notify(sqlite3 *db){ db 450 third_party/sqlite/src/src/test_thread.c rc = sqlite3_unlock_notify(db, unlock_notify_cb, (void *)&un); db 509 third_party/sqlite/src/src/test_thread.c sqlite3 *db, /* Database handle. */ db 516 third_party/sqlite/src/src/test_thread.c while( SQLITE_LOCKED==(rc = sqlite3_prepare_v2(db, zSql, nSql, ppStmt, pz)) ){ db 517 third_party/sqlite/src/src/test_thread.c rc = wait_for_unlock_notify(db); db 561 third_party/sqlite/src/src/test_thread.c sqlite3 *db; db 575 third_party/sqlite/src/src/test_thread.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 580 third_party/sqlite/src/src/test_thread.c rc = sqlite3_blocking_prepare_v2(db, zSql, bytes, &pStmt, &zTail); db 582 third_party/sqlite/src/src/test_thread.c rc = sqlite3_prepare_v2(db, zSql, bytes, &pStmt, &zTail); db 595 third_party/sqlite/src/src/test_thread.c Tcl_AppendResult(interp, zBuf, sqlite3_errmsg(db), 0); db 42 third_party/sqlite/src/src/test_wholenumber.c sqlite3 *db, db 51 third_party/sqlite/src/src/test_wholenumber.c sqlite3_declare_vtab(db, "CREATE TABLE x(value)"); db 257 third_party/sqlite/src/src/test_wholenumber.c int wholenumber_register(sqlite3 *db){ db 260 third_party/sqlite/src/src/test_wholenumber.c rc = sqlite3_create_module(db, "wholenumber", &wholenumberModule, 0); db 281 third_party/sqlite/src/src/test_wholenumber.c sqlite3 *db; db 286 third_party/sqlite/src/src/test_wholenumber.c if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; db 287 third_party/sqlite/src/src/test_wholenumber.c wholenumber_register(db); db 395 third_party/sqlite/src/src/tokenize.c sqlite3 *db = pParse->db; /* The database connection */ db 399 third_party/sqlite/src/src/tokenize.c mxSqlLen = db->aLimit[SQLITE_LIMIT_SQL_LENGTH]; db 400 third_party/sqlite/src/src/tokenize.c if( db->activeVdbeCnt==0 ){ db 401 third_party/sqlite/src/src/tokenize.c db->u1.isInterrupted = 0; db 409 third_party/sqlite/src/src/tokenize.c db->mallocFailed = 1; db 418 third_party/sqlite/src/src/tokenize.c enableLookaside = db->lookaside.bEnabled; db 419 third_party/sqlite/src/src/tokenize.c if( db->lookaside.pStart ) db->lookaside.bEnabled = 1; db 420 third_party/sqlite/src/src/tokenize.c while( !db->mallocFailed && zSql[i]!=0 ){ db 431 third_party/sqlite/src/src/tokenize.c if( db->u1.isInterrupted ){ db 439 third_party/sqlite/src/src/tokenize.c sqlite3DbFree(db, *pzErrMsg); db 440 third_party/sqlite/src/src/tokenize.c *pzErrMsg = sqlite3MPrintf(db, "unrecognized token: \"%T\"", db 473 third_party/sqlite/src/src/tokenize.c db->lookaside.bEnabled = enableLookaside; db 474 third_party/sqlite/src/src/tokenize.c if( db->mallocFailed ){ db 478 third_party/sqlite/src/src/tokenize.c sqlite3SetString(&pParse->zErrMsg, db, "%s", sqlite3ErrStr(pParse->rc)); db 493 third_party/sqlite/src/src/tokenize.c sqlite3DbFree(db, pParse->aTableLock); db 507 third_party/sqlite/src/src/tokenize.c sqlite3DeleteTable(db, pParse->pNewTable); db 510 third_party/sqlite/src/src/tokenize.c sqlite3DeleteTrigger(db, pParse->pNewTrigger); db 511 third_party/sqlite/src/src/tokenize.c sqlite3DbFree(db, pParse->apVarExpr); db 512 third_party/sqlite/src/src/tokenize.c sqlite3DbFree(db, pParse->aAlias); db 516 third_party/sqlite/src/src/tokenize.c sqlite3DbFree(db, p); db 521 third_party/sqlite/src/src/tokenize.c sqlite3DeleteTable(db, p); db 19 third_party/sqlite/src/src/trigger.c void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){ db 24 third_party/sqlite/src/src/trigger.c sqlite3ExprDelete(db, pTmp->pWhere); db 25 third_party/sqlite/src/src/trigger.c sqlite3ExprListDelete(db, pTmp->pExprList); db 26 third_party/sqlite/src/src/trigger.c sqlite3SelectDelete(db, pTmp->pSelect); db 27 third_party/sqlite/src/src/trigger.c sqlite3IdListDelete(db, pTmp->pIdList); db 29 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, pTmp); db 48 third_party/sqlite/src/src/trigger.c Schema * const pTmpSchema = pParse->db->aDb[1].pSchema; db 57 third_party/sqlite/src/src/trigger.c assert( sqlite3SchemaMutexHeld(pParse->db, 0, pTmpSchema) ); db 95 third_party/sqlite/src/src/trigger.c sqlite3 *db = pParse->db; /* The database connection */ db 126 third_party/sqlite/src/src/trigger.c if( !pTableName || db->mallocFailed ){ db 130 third_party/sqlite/src/src/trigger.c if( db->init.busy==0 && pName2->n==0 && pTab db 131 third_party/sqlite/src/src/trigger.c && pTab->pSchema==db->aDb[1].pSchema ){ db 136 third_party/sqlite/src/src/trigger.c if( db->mallocFailed ) goto trigger_cleanup; db 145 third_party/sqlite/src/src/trigger.c if( db->init.iDb==1 ){ db 154 third_party/sqlite/src/src/trigger.c db->init.orphanTrigger = 1; db 165 third_party/sqlite/src/src/trigger.c zName = sqlite3NameFromToken(db, pName); db 169 third_party/sqlite/src/src/trigger.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 170 third_party/sqlite/src/src/trigger.c if( sqlite3HashFind(&(db->aDb[iDb].pSchema->trigHash), db 175 third_party/sqlite/src/src/trigger.c assert( !db->init.busy ); db 201 third_party/sqlite/src/src/trigger.c iTabDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 206 third_party/sqlite/src/src/trigger.c const char *zDb = db->aDb[iTabDb].zName; db 207 third_party/sqlite/src/src/trigger.c const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb; db 228 third_party/sqlite/src/src/trigger.c pTrigger = (Trigger*)sqlite3DbMallocZero(db, sizeof(Trigger)); db 232 third_party/sqlite/src/src/trigger.c pTrigger->table = sqlite3DbStrDup(db, pTableName->a[0].zName); db 233 third_party/sqlite/src/src/trigger.c pTrigger->pSchema = db->aDb[iDb].pSchema; db 237 third_party/sqlite/src/src/trigger.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); db 238 third_party/sqlite/src/src/trigger.c pTrigger->pColumns = sqlite3IdListDup(db, pColumns); db 243 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, zName); db 244 third_party/sqlite/src/src/trigger.c sqlite3SrcListDelete(db, pTableName); db 245 third_party/sqlite/src/src/trigger.c sqlite3IdListDelete(db, pColumns); db 246 third_party/sqlite/src/src/trigger.c sqlite3ExprDelete(db, pWhen); db 248 third_party/sqlite/src/src/trigger.c sqlite3DeleteTrigger(db, pTrigger); db 265 third_party/sqlite/src/src/trigger.c sqlite3 *db = pParse->db; /* The database */ db 273 third_party/sqlite/src/src/trigger.c iDb = sqlite3SchemaToIndex(pParse->db, pTrig->pSchema); db 289 third_party/sqlite/src/src/trigger.c if( !db->init.busy ){ db 297 third_party/sqlite/src/src/trigger.c z = sqlite3DbStrNDup(db, (char*)pAll->z, pAll->n); db 300 third_party/sqlite/src/src/trigger.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), zName, db 302 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, z); db 305 third_party/sqlite/src/src/trigger.c db, "type='trigger' AND name='%q'", zName), P4_DYNAMIC db 309 third_party/sqlite/src/src/trigger.c if( db->init.busy ){ db 311 third_party/sqlite/src/src/trigger.c Hash *pHash = &db->aDb[iDb].pSchema->trigHash; db 312 third_party/sqlite/src/src/trigger.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 315 third_party/sqlite/src/src/trigger.c db->mallocFailed = 1; db 327 third_party/sqlite/src/src/trigger.c sqlite3DeleteTrigger(db, pTrig); db 329 third_party/sqlite/src/src/trigger.c sqlite3DeleteTriggerStep(db, pStepList); db 339 third_party/sqlite/src/src/trigger.c TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){ db 340 third_party/sqlite/src/src/trigger.c TriggerStep *pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep)); db 342 third_party/sqlite/src/src/trigger.c sqlite3SelectDelete(db, pSelect); db 358 third_party/sqlite/src/src/trigger.c sqlite3 *db, /* Database connection */ db 364 third_party/sqlite/src/src/trigger.c pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep) + pName->n); db 383 third_party/sqlite/src/src/trigger.c sqlite3 *db, /* The database connection */ db 393 third_party/sqlite/src/src/trigger.c assert(pEList != 0 || pSelect != 0 || db->mallocFailed); db 395 third_party/sqlite/src/src/trigger.c pTriggerStep = triggerStepAllocate(db, TK_INSERT, pTableName); db 397 third_party/sqlite/src/src/trigger.c pTriggerStep->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE); db 399 third_party/sqlite/src/src/trigger.c pTriggerStep->pExprList = sqlite3ExprListDup(db, pEList, EXPRDUP_REDUCE); db 402 third_party/sqlite/src/src/trigger.c sqlite3IdListDelete(db, pColumn); db 404 third_party/sqlite/src/src/trigger.c sqlite3ExprListDelete(db, pEList); db 405 third_party/sqlite/src/src/trigger.c sqlite3SelectDelete(db, pSelect); db 416 third_party/sqlite/src/src/trigger.c sqlite3 *db, /* The database connection */ db 424 third_party/sqlite/src/src/trigger.c pTriggerStep = triggerStepAllocate(db, TK_UPDATE, pTableName); db 426 third_party/sqlite/src/src/trigger.c pTriggerStep->pExprList = sqlite3ExprListDup(db, pEList, EXPRDUP_REDUCE); db 427 third_party/sqlite/src/src/trigger.c pTriggerStep->pWhere = sqlite3ExprDup(db, pWhere, EXPRDUP_REDUCE); db 430 third_party/sqlite/src/src/trigger.c sqlite3ExprListDelete(db, pEList); db 431 third_party/sqlite/src/src/trigger.c sqlite3ExprDelete(db, pWhere); db 441 third_party/sqlite/src/src/trigger.c sqlite3 *db, /* Database connection */ db 447 third_party/sqlite/src/src/trigger.c pTriggerStep = triggerStepAllocate(db, TK_DELETE, pTableName); db 449 third_party/sqlite/src/src/trigger.c pTriggerStep->pWhere = sqlite3ExprDup(db, pWhere, EXPRDUP_REDUCE); db 452 third_party/sqlite/src/src/trigger.c sqlite3ExprDelete(db, pWhere); db 459 third_party/sqlite/src/src/trigger.c void sqlite3DeleteTrigger(sqlite3 *db, Trigger *pTrigger){ db 461 third_party/sqlite/src/src/trigger.c sqlite3DeleteTriggerStep(db, pTrigger->step_list); db 462 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, pTrigger->zName); db 463 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, pTrigger->table); db 464 third_party/sqlite/src/src/trigger.c sqlite3ExprDelete(db, pTrigger->pWhen); db 465 third_party/sqlite/src/src/trigger.c sqlite3IdListDelete(db, pTrigger->pColumns); db 466 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, pTrigger); db 483 third_party/sqlite/src/src/trigger.c sqlite3 *db = pParse->db; db 485 third_party/sqlite/src/src/trigger.c if( db->mallocFailed ) goto drop_trigger_cleanup; db 494 third_party/sqlite/src/src/trigger.c assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); db 495 third_party/sqlite/src/src/trigger.c for(i=OMIT_TEMPDB; i<db->nDb; i++){ db 497 third_party/sqlite/src/src/trigger.c if( zDb && sqlite3StrICmp(db->aDb[j].zName, zDb) ) continue; db 498 third_party/sqlite/src/src/trigger.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); db 499 third_party/sqlite/src/src/trigger.c pTrigger = sqlite3HashFind(&(db->aDb[j].pSchema->trigHash), zName, nName); db 514 third_party/sqlite/src/src/trigger.c sqlite3SrcListDelete(db, pName); db 533 third_party/sqlite/src/src/trigger.c sqlite3 *db = pParse->db; db 536 third_party/sqlite/src/src/trigger.c iDb = sqlite3SchemaToIndex(pParse->db, pTrigger->pSchema); db 537 third_party/sqlite/src/src/trigger.c assert( iDb>=0 && iDb<db->nDb ); db 544 third_party/sqlite/src/src/trigger.c const char *zDb = db->aDb[iDb].zName; db 588 third_party/sqlite/src/src/trigger.c void sqlite3UnlinkAndDeleteTrigger(sqlite3 *db, int iDb, const char *zName){ db 592 third_party/sqlite/src/src/trigger.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 593 third_party/sqlite/src/src/trigger.c pHash = &(db->aDb[iDb].pSchema->trigHash); db 602 third_party/sqlite/src/src/trigger.c sqlite3DeleteTrigger(db, pTrigger); db 603 third_party/sqlite/src/src/trigger.c db->flags |= SQLITE_InternChanges; db 642 third_party/sqlite/src/src/trigger.c if( (pParse->db->flags & SQLITE_EnableTrigger)!=0 ){ db 674 third_party/sqlite/src/src/trigger.c pSrc = sqlite3SrcListAppend(pParse->db, 0, &pStep->target, 0); db 678 third_party/sqlite/src/src/trigger.c iDb = sqlite3SchemaToIndex(pParse->db, pStep->pTrig->pSchema); db 680 third_party/sqlite/src/src/trigger.c sqlite3 *db = pParse->db; db 681 third_party/sqlite/src/src/trigger.c assert( iDb<pParse->db->nDb ); db 682 third_party/sqlite/src/src/trigger.c pSrc->a[pSrc->nSrc-1].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zName); db 699 third_party/sqlite/src/src/trigger.c sqlite3 *db = pParse->db; db 724 third_party/sqlite/src/src/trigger.c sqlite3ExprListDup(db, pStep->pExprList, 0), db 725 third_party/sqlite/src/src/trigger.c sqlite3ExprDup(db, pStep->pWhere, 0), db 733 third_party/sqlite/src/src/trigger.c sqlite3ExprListDup(db, pStep->pExprList, 0), db 734 third_party/sqlite/src/src/trigger.c sqlite3SelectDup(db, pStep->pSelect, 0), db 735 third_party/sqlite/src/src/trigger.c sqlite3IdListDup(db, pStep->pIdList), db 743 third_party/sqlite/src/src/trigger.c sqlite3ExprDup(db, pStep->pWhere, 0) db 749 third_party/sqlite/src/src/trigger.c Select *pSelect = sqlite3SelectDup(db, pStep->pSelect, 0); db 752 third_party/sqlite/src/src/trigger.c sqlite3SelectDelete(db, pSelect); db 794 third_party/sqlite/src/src/trigger.c sqlite3DbFree(pFrom->db, pFrom->zErrMsg); db 809 third_party/sqlite/src/src/trigger.c sqlite3 *db = pParse->db; /* Database handle */ db 824 third_party/sqlite/src/src/trigger.c pPrg = sqlite3DbMallocZero(db, sizeof(TriggerPrg)); db 828 third_party/sqlite/src/src/trigger.c pPrg->pProgram = pProgram = sqlite3DbMallocZero(db, sizeof(SubProgram)); db 838 third_party/sqlite/src/src/trigger.c pSubParse = sqlite3StackAllocZero(db, sizeof(Parse)); db 842 third_party/sqlite/src/src/trigger.c pSubParse->db = db; db 861 third_party/sqlite/src/src/trigger.c sqlite3MPrintf(db, "-- TRIGGER %s", pTrigger->zName), P4_DYNAMIC db 869 third_party/sqlite/src/src/trigger.c pWhen = sqlite3ExprDup(db, pTrigger->pWhen, 0); db 871 third_party/sqlite/src/src/trigger.c && db->mallocFailed==0 db 876 third_party/sqlite/src/src/trigger.c sqlite3ExprDelete(db, pWhen); db 890 third_party/sqlite/src/src/trigger.c if( db->mallocFailed==0 ){ db 903 third_party/sqlite/src/src/trigger.c sqlite3StackFree(db, pSubParse); db 959 third_party/sqlite/src/src/trigger.c assert( pPrg || pParse->nErr || pParse->db->mallocFailed ); db 964 third_party/sqlite/src/src/trigger.c int bRecursive = (p->zName && 0==(pParse->db->flags&SQLITE_RecTriggers)); db 1045 third_party/sqlite/src/src/trigger.c || p->pSchema==pParse->db->aDb[1].pSchema ); db 103 third_party/sqlite/src/src/update.c sqlite3 *db; /* The database structure */ db 133 third_party/sqlite/src/src/update.c db = pParse->db; db 134 third_party/sqlite/src/src/update.c if( pParse->nErr || db->mallocFailed ){ db 143 third_party/sqlite/src/src/update.c iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema); db 168 third_party/sqlite/src/src/update.c aXRef = sqlite3DbMallocRaw(db, sizeof(int) * pTab->nCol ); db 222 third_party/sqlite/src/src/update.c pTab->aCol[j].zName, db->aDb[iDb].zName); db 241 third_party/sqlite/src/src/update.c aRegIdx = sqlite3DbMallocRaw(db, sizeof(Index*) * nIdx ); db 331 third_party/sqlite/src/src/update.c if( (db->flags & SQLITE_CountRows) && !pParse->pTriggerTab ){ db 514 third_party/sqlite/src/src/update.c if( (db->flags & SQLITE_CountRows) && !pParse->pTriggerTab){ db 548 third_party/sqlite/src/src/update.c if( (db->flags&SQLITE_CountRows) && !pParse->pTriggerTab && !pParse->nested ){ db 556 third_party/sqlite/src/src/update.c sqlite3DbFree(db, aRegIdx); db 557 third_party/sqlite/src/src/update.c sqlite3DbFree(db, aXRef); db 558 third_party/sqlite/src/src/update.c sqlite3SrcListDelete(db, pTabList); db 559 third_party/sqlite/src/src/update.c sqlite3ExprListDelete(db, pChanges); db 560 third_party/sqlite/src/src/update.c sqlite3ExprDelete(db, pWhere); db 610 third_party/sqlite/src/src/update.c sqlite3 *db = pParse->db; /* Database connection */ db 611 third_party/sqlite/src/src/update.c const char *pVTab = (const char*)sqlite3GetVTable(db, pTab); db 617 third_party/sqlite/src/src/update.c pEList = sqlite3ExprListAppend(pParse, 0, sqlite3Expr(db, TK_ID, "_rowid_")); db 620 third_party/sqlite/src/src/update.c sqlite3ExprDup(db, pRowid, 0)); db 625 third_party/sqlite/src/src/update.c pExpr = sqlite3ExprDup(db, pChanges->a[aXRef[i]].pExpr, 0); db 627 third_party/sqlite/src/src/update.c pExpr = sqlite3Expr(db, TK_ID, pTab->aCol[i].zName); db 663 third_party/sqlite/src/src/update.c sqlite3SelectDelete(db, pSelect); db 212 third_party/sqlite/src/src/utf.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 276 third_party/sqlite/src/src/utf.c zOut = sqlite3DbMallocRaw(pMem->db, len); db 440 third_party/sqlite/src/src/utf.c char *sqlite3Utf16to8(sqlite3 *db, const void *z, int nByte, u8 enc){ db 443 third_party/sqlite/src/src/utf.c m.db = db; db 446 third_party/sqlite/src/src/utf.c if( db->mallocFailed ){ db 450 third_party/sqlite/src/src/utf.c assert( (m.flags & MEM_Term)!=0 || db->mallocFailed ); db 451 third_party/sqlite/src/src/utf.c assert( (m.flags & MEM_Str)!=0 || db->mallocFailed ); db 452 third_party/sqlite/src/src/utf.c assert( (m.flags & MEM_Dyn)!=0 || db->mallocFailed ); db 453 third_party/sqlite/src/src/utf.c assert( m.z || db->mallocFailed ); db 468 third_party/sqlite/src/src/utf.c char *sqlite3Utf8to16(sqlite3 *db, u8 enc, char *z, int n, int *pnOut){ db 471 third_party/sqlite/src/src/utf.c m.db = db; db 474 third_party/sqlite/src/src/utf.c assert( db->mallocFailed ); db 117 third_party/sqlite/src/src/util.c void sqlite3Error(sqlite3 *db, int err_code, const char *zFormat, ...){ db 118 third_party/sqlite/src/src/util.c if( db && (db->pErr || (db->pErr = sqlite3ValueNew(db))!=0) ){ db 119 third_party/sqlite/src/src/util.c db->errCode = err_code; db 124 third_party/sqlite/src/src/util.c z = sqlite3VMPrintf(db, zFormat, ap); db 126 third_party/sqlite/src/src/util.c sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC); db 128 third_party/sqlite/src/src/util.c sqlite3ValueSetStr(db->pErr, 0, 0, SQLITE_UTF8, SQLITE_STATIC); db 153 third_party/sqlite/src/src/util.c sqlite3 *db = pParse->db; db 155 third_party/sqlite/src/src/util.c zMsg = sqlite3VMPrintf(db, zFormat, ap); db 157 third_party/sqlite/src/src/util.c if( db->suppressErr ){ db 158 third_party/sqlite/src/src/util.c sqlite3DbFree(db, zMsg); db 161 third_party/sqlite/src/src/util.c sqlite3DbFree(db, pParse->zErrMsg); db 1011 third_party/sqlite/src/src/util.c void *sqlite3HexToBlob(sqlite3 *db, const char *z, int n){ db 1015 third_party/sqlite/src/src/util.c zBlob = (char *)sqlite3DbMallocRaw(db, n/2 + 1); db 1053 third_party/sqlite/src/src/util.c int sqlite3SafetyCheckOk(sqlite3 *db){ db 1055 third_party/sqlite/src/src/util.c if( db==0 ){ db 1059 third_party/sqlite/src/src/util.c magic = db->magic; db 1061 third_party/sqlite/src/src/util.c if( sqlite3SafetyCheckSickOrOk(db) ){ db 1070 third_party/sqlite/src/src/util.c int sqlite3SafetyCheckSickOrOk(sqlite3 *db){ db 1072 third_party/sqlite/src/src/util.c magic = db->magic; db 25 third_party/sqlite/src/src/vacuum.c static int vacuumFinalize(sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg){ db 29 third_party/sqlite/src/src/vacuum.c sqlite3SetString(pzErrMsg, db, sqlite3_errmsg(db)); db 37 third_party/sqlite/src/src/vacuum.c static int execSql(sqlite3 *db, char **pzErrMsg, const char *zSql){ db 43 third_party/sqlite/src/src/vacuum.c if( SQLITE_OK!=sqlite3_prepare(db, zSql, -1, &pStmt, 0) ){ db 44 third_party/sqlite/src/src/vacuum.c sqlite3SetString(pzErrMsg, db, sqlite3_errmsg(db)); db 45 third_party/sqlite/src/src/vacuum.c return sqlite3_errcode(db); db 49 third_party/sqlite/src/src/vacuum.c return vacuumFinalize(db, pStmt, pzErrMsg); db 56 third_party/sqlite/src/src/vacuum.c static int execExecSql(sqlite3 *db, char **pzErrMsg, const char *zSql){ db 60 third_party/sqlite/src/src/vacuum.c rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0); db 64 third_party/sqlite/src/src/vacuum.c rc = execSql(db, pzErrMsg, (char*)sqlite3_column_text(pStmt, 0)); db 66 third_party/sqlite/src/src/vacuum.c vacuumFinalize(db, pStmt, pzErrMsg); db 71 third_party/sqlite/src/src/vacuum.c return vacuumFinalize(db, pStmt, pzErrMsg); db 95 third_party/sqlite/src/src/vacuum.c int sqlite3RunVacuum(char **pzErrMsg, sqlite3 *db){ db 109 third_party/sqlite/src/src/vacuum.c if( !db->autoCommit ){ db 110 third_party/sqlite/src/src/vacuum.c sqlite3SetString(pzErrMsg, db, "cannot VACUUM from within a transaction"); db 113 third_party/sqlite/src/src/vacuum.c if( db->activeVdbeCnt>1 ){ db 114 third_party/sqlite/src/src/vacuum.c sqlite3SetString(pzErrMsg, db,"cannot VACUUM - SQL statements in progress"); db 121 third_party/sqlite/src/src/vacuum.c saved_flags = db->flags; db 122 third_party/sqlite/src/src/vacuum.c saved_nChange = db->nChange; db 123 third_party/sqlite/src/src/vacuum.c saved_nTotalChange = db->nTotalChange; db 124 third_party/sqlite/src/src/vacuum.c saved_xTrace = db->xTrace; db 125 third_party/sqlite/src/src/vacuum.c db->flags |= SQLITE_WriteSchema | SQLITE_IgnoreChecks | SQLITE_PreferBuiltin; db 126 third_party/sqlite/src/src/vacuum.c db->flags &= ~(SQLITE_ForeignKeys | SQLITE_ReverseOrder); db 127 third_party/sqlite/src/src/vacuum.c db->xTrace = 0; db 129 third_party/sqlite/src/src/vacuum.c pMain = db->aDb[0].pBt; db 146 third_party/sqlite/src/src/vacuum.c nDb = db->nDb; db 147 third_party/sqlite/src/src/vacuum.c if( sqlite3TempInMemory(db) ){ db 152 third_party/sqlite/src/src/vacuum.c rc = execSql(db, pzErrMsg, zSql); db 153 third_party/sqlite/src/src/vacuum.c if( db->nDb>nDb ){ db 154 third_party/sqlite/src/src/vacuum.c pDb = &db->aDb[db->nDb-1]; db 158 third_party/sqlite/src/src/vacuum.c pTemp = db->aDb[db->nDb-1].pBt; db 170 third_party/sqlite/src/src/vacuum.c if( db->nextPagesize ){ db 174 third_party/sqlite/src/src/vacuum.c sqlite3CodecGetKey(db, 0, (void**)&zKey, &nKey); db 175 third_party/sqlite/src/src/vacuum.c if( nKey ) db->nextPagesize = 0; db 182 third_party/sqlite/src/src/vacuum.c db->nextPagesize = 0; db 186 third_party/sqlite/src/src/vacuum.c || (!isMemDb && sqlite3BtreeSetPageSize(pTemp, db->nextPagesize, nRes, 0)) db 187 third_party/sqlite/src/src/vacuum.c || NEVER(db->mallocFailed) db 192 third_party/sqlite/src/src/vacuum.c rc = execSql(db, pzErrMsg, "PRAGMA vacuum_db.synchronous=OFF"); db 198 third_party/sqlite/src/src/vacuum.c sqlite3BtreeSetAutoVacuum(pTemp, db->nextAutovac>=0 ? db->nextAutovac : db 203 third_party/sqlite/src/src/vacuum.c rc = execSql(db, pzErrMsg, "BEGIN EXCLUSIVE;"); db 209 third_party/sqlite/src/src/vacuum.c rc = execExecSql(db, pzErrMsg, db 215 third_party/sqlite/src/src/vacuum.c rc = execExecSql(db, pzErrMsg, db 219 third_party/sqlite/src/src/vacuum.c rc = execExecSql(db, pzErrMsg, db 228 third_party/sqlite/src/src/vacuum.c rc = execExecSql(db, pzErrMsg, db 239 third_party/sqlite/src/src/vacuum.c rc = execExecSql(db, pzErrMsg, db 244 third_party/sqlite/src/src/vacuum.c rc = execExecSql(db, pzErrMsg, db 257 third_party/sqlite/src/src/vacuum.c rc = execSql(db, pzErrMsg, db 317 third_party/sqlite/src/src/vacuum.c db->flags = saved_flags; db 318 third_party/sqlite/src/src/vacuum.c db->nChange = saved_nChange; db 319 third_party/sqlite/src/src/vacuum.c db->nTotalChange = saved_nTotalChange; db 320 third_party/sqlite/src/src/vacuum.c db->xTrace = saved_xTrace; db 330 third_party/sqlite/src/src/vacuum.c db->autoCommit = 1; db 340 third_party/sqlite/src/src/vacuum.c sqlite3ResetInternalSchema(db, -1); db 478 third_party/sqlite/src/src/vdbe.c if( db->u1.isInterrupted ) goto abort_due_to_interrupt; db 492 third_party/sqlite/src/src/vdbe.c static int checkSavepointCount(sqlite3 *db){ db 495 third_party/sqlite/src/src/vdbe.c for(p=db->pSavepoint; p; p=p->pNext) n++; db 496 third_party/sqlite/src/src/vdbe.c assert( n==(db->nSavepoint + db->isTransactionSavepoint) ); db 507 third_party/sqlite/src/src/vdbe.c sqlite3 *db = p->db; db 508 third_party/sqlite/src/src/vdbe.c sqlite3DbFree(db, p->zErrMsg); db 509 third_party/sqlite/src/src/vdbe.c p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg); db 553 third_party/sqlite/src/src/vdbe.c sqlite3 *db = p->db; /* The database */ db 555 third_party/sqlite/src/src/vdbe.c u8 encoding = ENC(db); /* The database encoding */ db 584 third_party/sqlite/src/src/vdbe.c db->busyHandler.nBusy = 0; db 588 third_party/sqlite/src/src/vdbe.c checkProgress = db->xProgress!=0; db 592 third_party/sqlite/src/src/vdbe.c if( p->pc==0 && (p->db->flags & SQLITE_VdbeListing)!=0 ){ db 604 third_party/sqlite/src/src/vdbe.c if( db->mallocFailed ) goto no_mem; db 631 third_party/sqlite/src/src/vdbe.c sqlite3_interrupt(db); db 644 third_party/sqlite/src/src/vdbe.c if( db->nProgressOps==nProgressOps ){ db 646 third_party/sqlite/src/src/vdbe.c prc = db->xProgress(db->pProgressArg); db 834 third_party/sqlite/src/src/vdbe.c sqlite3VdbeSetChanges(db, p->nChange); db 854 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "%s", pOp->p4.z); db 867 third_party/sqlite/src/src/vdbe.c assert( rc==SQLITE_OK || db->nDeferredCons>0 ); db 928 third_party/sqlite/src/src/vdbe.c sqlite3DbFree(db, pOp->p4.z); db 935 third_party/sqlite/src/src/vdbe.c if( pOp->p1>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 1095 third_party/sqlite/src/src/vdbe.c assert( db->flags&SQLITE_CountRows ); db 1115 third_party/sqlite/src/src/vdbe.c assert( p->iStatement==0 || db->flags&SQLITE_CountRows ); db 1138 third_party/sqlite/src/src/vdbe.c if( db->mallocFailed ) goto no_mem; db 1174 third_party/sqlite/src/src/vdbe.c if( nByte>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 1378 third_party/sqlite/src/src/vdbe.c ctx.s.db = db; db 1397 third_party/sqlite/src/src/vdbe.c if( db->mallocFailed ){ db 1418 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3_value_text(&ctx.s)); db 1595 third_party/sqlite/src/src/vdbe.c assert( pIn1->flags & MEM_Str || db->mallocFailed ); db 1615 third_party/sqlite/src/src/vdbe.c assert( pIn1->flags & MEM_Str || db->mallocFailed ); db 1794 third_party/sqlite/src/src/vdbe.c if( db->mallocFailed ) goto no_mem; db 2176 third_party/sqlite/src/src/vdbe.c assert( db->aLimit[SQLITE_LIMIT_LENGTH]>=0 ); db 2177 third_party/sqlite/src/src/vdbe.c if( payloadSize > (u32)db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 2262 third_party/sqlite/src/src/vdbe.c sMem.db = 0; db 2485 third_party/sqlite/src/src/vdbe.c if( nByte>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 2567 third_party/sqlite/src/src/vdbe.c assert( db->pSavepoint==0 || db->autoCommit==0 ); db 2569 third_party/sqlite/src/src/vdbe.c assert( db->pSavepoint || db->isTransactionSavepoint==0 ); db 2570 third_party/sqlite/src/src/vdbe.c assert( checkSavepointCount(db) ); db 2573 third_party/sqlite/src/src/vdbe.c if( db->writeVdbeCnt>0 ){ db 2577 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "cannot open savepoint - " db 2584 third_party/sqlite/src/src/vdbe.c pNew = sqlite3DbMallocRaw(db, sizeof(Savepoint)+nName+1); db 2591 third_party/sqlite/src/src/vdbe.c if( db->autoCommit ){ db 2592 third_party/sqlite/src/src/vdbe.c db->autoCommit = 0; db 2593 third_party/sqlite/src/src/vdbe.c db->isTransactionSavepoint = 1; db 2595 third_party/sqlite/src/src/vdbe.c db->nSavepoint++; db 2599 third_party/sqlite/src/src/vdbe.c pNew->pNext = db->pSavepoint; db 2600 third_party/sqlite/src/src/vdbe.c db->pSavepoint = pNew; db 2601 third_party/sqlite/src/src/vdbe.c pNew->nDeferredCons = db->nDeferredCons; db 2610 third_party/sqlite/src/src/vdbe.c pSavepoint = db->pSavepoint; db 2617 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "no such savepoint: %s", zName); db 2620 third_party/sqlite/src/src/vdbe.c db->writeVdbeCnt>0 || (p1==SAVEPOINT_ROLLBACK && db->activeVdbeCnt>1) db 2626 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, db 2637 third_party/sqlite/src/src/vdbe.c int isTransaction = pSavepoint->pNext==0 && db->isTransactionSavepoint; db 2642 third_party/sqlite/src/src/vdbe.c db->autoCommit = 1; db 2645 third_party/sqlite/src/src/vdbe.c db->autoCommit = 0; db 2649 third_party/sqlite/src/src/vdbe.c db->isTransactionSavepoint = 0; db 2652 third_party/sqlite/src/src/vdbe.c iSavepoint = db->nSavepoint - iSavepoint - 1; db 2653 third_party/sqlite/src/src/vdbe.c for(ii=0; ii<db->nDb; ii++){ db 2654 third_party/sqlite/src/src/vdbe.c rc = sqlite3BtreeSavepoint(db->aDb[ii].pBt, p1, iSavepoint); db 2659 third_party/sqlite/src/src/vdbe.c if( p1==SAVEPOINT_ROLLBACK && (db->flags&SQLITE_InternChanges)!=0 ){ db 2660 third_party/sqlite/src/src/vdbe.c sqlite3ExpirePreparedStatements(db); db 2661 third_party/sqlite/src/src/vdbe.c sqlite3ResetInternalSchema(db, -1); db 2662 third_party/sqlite/src/src/vdbe.c db->flags = (db->flags | SQLITE_InternChanges); db 2668 third_party/sqlite/src/src/vdbe.c while( db->pSavepoint!=pSavepoint ){ db 2669 third_party/sqlite/src/src/vdbe.c pTmp = db->pSavepoint; db 2670 third_party/sqlite/src/src/vdbe.c db->pSavepoint = pTmp->pNext; db 2671 third_party/sqlite/src/src/vdbe.c sqlite3DbFree(db, pTmp); db 2672 third_party/sqlite/src/src/vdbe.c db->nSavepoint--; db 2680 third_party/sqlite/src/src/vdbe.c assert( pSavepoint==db->pSavepoint ); db 2681 third_party/sqlite/src/src/vdbe.c db->pSavepoint = pSavepoint->pNext; db 2682 third_party/sqlite/src/src/vdbe.c sqlite3DbFree(db, pSavepoint); db 2684 third_party/sqlite/src/src/vdbe.c db->nSavepoint--; db 2687 third_party/sqlite/src/src/vdbe.c db->nDeferredCons = pSavepoint->nDeferredCons; db 2711 third_party/sqlite/src/src/vdbe.c turnOnAC = desiredAutoCommit && !db->autoCommit; db 2714 third_party/sqlite/src/src/vdbe.c assert( db->activeVdbeCnt>0 ); /* At least this one VM is active */ db 2716 third_party/sqlite/src/src/vdbe.c if( turnOnAC && iRollback && db->activeVdbeCnt>1 ){ db 2721 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "cannot rollback transaction - " db 2724 third_party/sqlite/src/src/vdbe.c }else if( turnOnAC && !iRollback && db->writeVdbeCnt>0 ){ db 2728 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "cannot commit transaction - " db 2731 third_party/sqlite/src/src/vdbe.c }else if( desiredAutoCommit!=db->autoCommit ){ db 2734 third_party/sqlite/src/src/vdbe.c sqlite3RollbackAll(db); db 2735 third_party/sqlite/src/src/vdbe.c db->autoCommit = 1; db 2739 third_party/sqlite/src/src/vdbe.c db->autoCommit = (u8)desiredAutoCommit; db 2742 third_party/sqlite/src/src/vdbe.c db->autoCommit = (u8)(1-desiredAutoCommit); db 2747 third_party/sqlite/src/src/vdbe.c assert( db->nStatement==0 ); db 2748 third_party/sqlite/src/src/vdbe.c sqlite3CloseSavepoints(db); db 2756 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, db 2800 third_party/sqlite/src/src/vdbe.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 2802 third_party/sqlite/src/src/vdbe.c pBt = db->aDb[pOp->p1].pBt; db 2816 third_party/sqlite/src/src/vdbe.c && (db->autoCommit==0 || db->activeVdbeCnt>1) db 2820 third_party/sqlite/src/src/vdbe.c assert( db->nStatement>=0 && db->nSavepoint>=0 ); db 2821 third_party/sqlite/src/src/vdbe.c db->nStatement++; db 2822 third_party/sqlite/src/src/vdbe.c p->iStatement = db->nSavepoint + db->nStatement; db 2829 third_party/sqlite/src/src/vdbe.c p->nStmtDefCons = db->nDeferredCons; db 2855 third_party/sqlite/src/src/vdbe.c assert( iDb>=0 && iDb<db->nDb ); db 2856 third_party/sqlite/src/src/vdbe.c assert( db->aDb[iDb].pBt!=0 ); db 2859 third_party/sqlite/src/src/vdbe.c sqlite3BtreeGetMeta(db->aDb[iDb].pBt, iCookie, (u32 *)&iMeta); db 2877 third_party/sqlite/src/src/vdbe.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 2879 third_party/sqlite/src/src/vdbe.c pDb = &db->aDb[pOp->p1]; db 2881 third_party/sqlite/src/src/vdbe.c assert( sqlite3SchemaMutexHeld(db, pOp->p1, 0) ); db 2889 third_party/sqlite/src/src/vdbe.c db->flags |= SQLITE_InternChanges; db 2897 third_party/sqlite/src/src/vdbe.c sqlite3ExpirePreparedStatements(db); db 2926 third_party/sqlite/src/src/vdbe.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 2928 third_party/sqlite/src/src/vdbe.c assert( sqlite3SchemaMutexHeld(db, pOp->p1, 0) ); db 2929 third_party/sqlite/src/src/vdbe.c pBt = db->aDb[pOp->p1].pBt; db 2932 third_party/sqlite/src/src/vdbe.c iGen = db->aDb[pOp->p1].pSchema->iGeneration; db 2937 third_party/sqlite/src/src/vdbe.c sqlite3DbFree(db, p->zErrMsg); db 2938 third_party/sqlite/src/src/vdbe.c p->zErrMsg = sqlite3DbStrDup(db, "database schema has changed"); db 2952 third_party/sqlite/src/src/vdbe.c if( db->aDb[pOp->p1].pSchema->schema_cookie!=iMeta ){ db 2953 third_party/sqlite/src/src/vdbe.c sqlite3ResetInternalSchema(db, pOp->p1); db 3031 third_party/sqlite/src/src/vdbe.c assert( iDb>=0 && iDb<db->nDb ); db 3033 third_party/sqlite/src/src/vdbe.c pDb = &db->aDb[iDb]; db 3038 third_party/sqlite/src/src/vdbe.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); db 3064 third_party/sqlite/src/src/vdbe.c pKeyInfo->enc = ENC(p->db); db 3135 third_party/sqlite/src/src/vdbe.c rc = sqlite3BtreeOpen(0, db, &pCx->pBt, db 3155 third_party/sqlite/src/src/vdbe.c pCx->pKeyInfo->enc = ENC(p->db); db 3795 third_party/sqlite/src/src/vdbe.c v = db->lastRowid; db 3905 third_party/sqlite/src/src/vdbe.c if( pOp->p5 & OPFLAG_LASTROWID ) db->lastRowid = iKey; db 3928 third_party/sqlite/src/src/vdbe.c if( rc==SQLITE_OK && db->xUpdateCallback && pOp->p4.z ){ db 3929 third_party/sqlite/src/src/vdbe.c zDb = db->aDb[pC->iDb].zName; db 3933 third_party/sqlite/src/src/vdbe.c db->xUpdateCallback(db->pUpdateArg, op, zDb, zTbl, iKey); db 3972 third_party/sqlite/src/src/vdbe.c if( db->xUpdateCallback && pOp->p4.z ){ db 3994 third_party/sqlite/src/src/vdbe.c if( rc==SQLITE_OK && db->xUpdateCallback && pOp->p4.z ){ db 3995 third_party/sqlite/src/src/vdbe.c const char *zDb = db->aDb[pC->iDb].zName; db 3997 third_party/sqlite/src/src/vdbe.c db->xUpdateCallback(db->pUpdateArg, SQLITE_DELETE, zDb, zTbl, iKey); db 4011 third_party/sqlite/src/src/vdbe.c sqlite3VdbeSetChanges(db, p->nChange); db 4071 third_party/sqlite/src/src/vdbe.c if( n64>db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 4078 third_party/sqlite/src/src/vdbe.c if( n>(u32)db->aLimit[SQLITE_LIMIT_LENGTH] ){ db 4410 third_party/sqlite/src/src/vdbe.c rc = sqlite3VdbeIdxRowid(db, pCrsr, &rowid); db 4513 third_party/sqlite/src/src/vdbe.c for(pVdbe=db->pVdbe; pVdbe; pVdbe = pVdbe->pNext){ db 4519 third_party/sqlite/src/src/vdbe.c iCnt = db->activeVdbeCnt; db 4529 third_party/sqlite/src/src/vdbe.c rc = sqlite3BtreeDropTable(db->aDb[iDb].pBt, pOp->p1, &iMoved); db 4534 third_party/sqlite/src/src/vdbe.c sqlite3RootPageMoved(db, iDb, iMoved, pOp->p1); db 4568 third_party/sqlite/src/src/vdbe.c db->aDb[pOp->p2].pBt, pOp->p1, (pOp->p3 ? &nChange : 0) db 4610 third_party/sqlite/src/src/vdbe.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 4612 third_party/sqlite/src/src/vdbe.c pDb = &db->aDb[pOp->p1]; db 4644 third_party/sqlite/src/src/vdbe.c for(iDb=0; iDb<db->nDb; iDb++){ db 4645 third_party/sqlite/src/src/vdbe.c assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) ); db 4650 third_party/sqlite/src/src/vdbe.c assert( iDb>=0 && iDb<db->nDb ); db 4651 third_party/sqlite/src/src/vdbe.c assert( DbHasProperty(db, iDb, DB_SchemaLoaded) ); db 4654 third_party/sqlite/src/src/vdbe.c initData.db = db; db 4657 third_party/sqlite/src/src/vdbe.c zSql = sqlite3MPrintf(db, db 4659 third_party/sqlite/src/src/vdbe.c db->aDb[iDb].zName, zMaster, pOp->p4.z); db 4663 third_party/sqlite/src/src/vdbe.c assert( db->init.busy==0 ); db 4664 third_party/sqlite/src/src/vdbe.c db->init.busy = 1; db 4666 third_party/sqlite/src/src/vdbe.c assert( !db->mallocFailed ); db 4667 third_party/sqlite/src/src/vdbe.c rc = sqlite3_exec(db, zSql, sqlite3InitCallback, &initData, 0); db 4669 third_party/sqlite/src/src/vdbe.c sqlite3DbFree(db, zSql); db 4670 third_party/sqlite/src/src/vdbe.c db->init.busy = 0; db 4687 third_party/sqlite/src/src/vdbe.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 4688 third_party/sqlite/src/src/vdbe.c rc = sqlite3AnalysisLoad(db, pOp->p1); db 4701 third_party/sqlite/src/src/vdbe.c sqlite3UnlinkAndDeleteTable(db, pOp->p1, pOp->p4.z); db 4713 third_party/sqlite/src/src/vdbe.c sqlite3UnlinkAndDeleteIndex(db, pOp->p1, pOp->p4.z); db 4725 third_party/sqlite/src/src/vdbe.c sqlite3UnlinkAndDeleteTrigger(db, pOp->p1, pOp->p4.z); db 4761 third_party/sqlite/src/src/vdbe.c aRoot = sqlite3DbMallocRaw(db, sizeof(int)*(nRoot+1) ); db 4772 third_party/sqlite/src/src/vdbe.c assert( pOp->p5<db->nDb ); db 4774 third_party/sqlite/src/src/vdbe.c z = sqlite3BtreeIntegrityCheck(db->aDb[pOp->p5].pBt, aRoot, nRoot, db 4776 third_party/sqlite/src/src/vdbe.c sqlite3DbFree(db, aRoot); db 4939 third_party/sqlite/src/src/vdbe.c if( p->nFrame>=db->aLimit[SQLITE_LIMIT_TRIGGER_DEPTH] ){ db 4941 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "too many levels of trigger recursion"); db 4959 third_party/sqlite/src/src/vdbe.c pFrame = sqlite3DbMallocZero(db, nByte); db 4982 third_party/sqlite/src/src/vdbe.c pMem->db = db; db 4993 third_party/sqlite/src/src/vdbe.c pFrame->lastRowid = db->lastRowid; db 5041 third_party/sqlite/src/src/vdbe.c db->nDeferredCons += pOp->p2; db 5061 third_party/sqlite/src/src/vdbe.c if( db->nDeferredCons==0 ) pc = pOp->p2-1; db 5187 third_party/sqlite/src/src/vdbe.c ctx.s.db = db; db 5198 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3_value_text(&ctx.s)); db 5226 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3_value_text(pMem)); db 5259 third_party/sqlite/src/src/vdbe.c rc = sqlite3Checkpoint(db, pOp->p1, pOp->p2, &aRes[1], &aRes[2]); db 5299 third_party/sqlite/src/src/vdbe.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 5301 third_party/sqlite/src/src/vdbe.c pBt = db->aDb[pOp->p1].pBt; db 5323 third_party/sqlite/src/src/vdbe.c if( !db->autoCommit || db->activeVdbeCnt>1 ){ db 5325 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, db 5382 third_party/sqlite/src/src/vdbe.c rc = sqlite3RunVacuum(&p->zErrMsg, db); db 5397 third_party/sqlite/src/src/vdbe.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); db 5399 third_party/sqlite/src/src/vdbe.c pBt = db->aDb[pOp->p1].pBt; db 5420 third_party/sqlite/src/src/vdbe.c sqlite3ExpirePreparedStatements(db); db 5444 third_party/sqlite/src/src/vdbe.c if( isWriteLock || 0==(db->flags&SQLITE_ReadUncommitted) ){ db 5446 third_party/sqlite/src/src/vdbe.c assert( p1>=0 && p1<db->nDb ); db 5449 third_party/sqlite/src/src/vdbe.c rc = sqlite3BtreeLockTable(db->aDb[p1].pBt, pOp->p2, isWriteLock); db 5452 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "database table is locked: %s", z); db 5472 third_party/sqlite/src/src/vdbe.c rc = sqlite3VtabBegin(db, pVTab); db 5485 third_party/sqlite/src/src/vdbe.c rc = sqlite3VtabCallCreate(db, pOp->p1, pOp->p4.z, &p->zErrMsg); db 5498 third_party/sqlite/src/src/vdbe.c rc = sqlite3VtabCallDestroy(db, pOp->p1, pOp->p4.z); db 5534 third_party/sqlite/src/src/vdbe.c db->mallocFailed = 1; db 5794 third_party/sqlite/src/src/vdbe.c db->lastRowid = rowid; db 5808 third_party/sqlite/src/src/vdbe.c pOut->u.i = sqlite3BtreeLastPage(db->aDb[pOp->p1].pBt); db 5827 third_party/sqlite/src/src/vdbe.c pBt = db->aDb[pOp->p1].pBt; db 5850 third_party/sqlite/src/src/vdbe.c if( db->xTrace ){ db 5852 third_party/sqlite/src/src/vdbe.c db->xTrace(db->pTraceArg, z); db 5853 third_party/sqlite/src/src/vdbe.c sqlite3DbFree(db, z); db 5856 third_party/sqlite/src/src/vdbe.c if( (db->flags & SQLITE_SqlTrace)!=0 ){ db 5934 third_party/sqlite/src/src/vdbe.c if( rc==SQLITE_IOERR_NOMEM ) db->mallocFailed = 1; db 5937 third_party/sqlite/src/src/vdbe.c sqlite3ResetInternalSchema(db, resetSchemaOnFault-1); db 5951 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "string or blob too big"); db 5958 third_party/sqlite/src/src/vdbe.c db->mallocFailed = 1; db 5959 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "out of memory"); db 5968 third_party/sqlite/src/src/vdbe.c if( db->mallocFailed ) rc = SQLITE_NOMEM; db 5970 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3ErrStr(rc)); db 5978 third_party/sqlite/src/src/vdbe.c assert( db->u1.isInterrupted ); db 5981 third_party/sqlite/src/src/vdbe.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3ErrStr(rc)); db 138 third_party/sqlite/src/src/vdbeInt.h sqlite3 *db; /* The associated database connection */ db 269 third_party/sqlite/src/src/vdbeInt.h sqlite3 *db; /* The database connection that owns this statement */ db 40 third_party/sqlite/src/src/vdbeapi.c if( p->db==0 ){ db 73 third_party/sqlite/src/src/vdbeapi.c sqlite3 *db = v->db; db 79 third_party/sqlite/src/src/vdbeapi.c mutex = v->db->mutex; db 83 third_party/sqlite/src/src/vdbeapi.c rc = sqlite3ApiExit(db, rc); db 103 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_enter(v->db->mutex); db 106 third_party/sqlite/src/src/vdbeapi.c assert( (rc & (v->db->errMask))==rc ); db 107 third_party/sqlite/src/src/vdbeapi.c rc = sqlite3ApiExit(v->db, rc); db 108 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(v->db->mutex); db 121 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex; db 210 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 214 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 218 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 224 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 230 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 234 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 238 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 247 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 257 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 266 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 275 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 280 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 284 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 297 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 305 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 308 third_party/sqlite/src/src/vdbeapi.c pCtx->s.db->mallocFailed = 1; db 315 third_party/sqlite/src/src/vdbeapi.c static int doWalCallbacks(sqlite3 *db){ db 319 third_party/sqlite/src/src/vdbeapi.c for(i=0; i<db->nDb; i++){ db 320 third_party/sqlite/src/src/vdbeapi.c Btree *pBt = db->aDb[i].pBt; db 323 third_party/sqlite/src/src/vdbeapi.c if( db->xWalCallback && nEntry>0 && rc==SQLITE_OK ){ db 324 third_party/sqlite/src/src/vdbeapi.c rc = db->xWalCallback(db->pWalArg, db, db->aDb[i].zName, nEntry); db 342 third_party/sqlite/src/src/vdbeapi.c sqlite3 *db; db 375 third_party/sqlite/src/src/vdbeapi.c db = p->db; db 376 third_party/sqlite/src/src/vdbeapi.c if( db->mallocFailed ){ db 391 third_party/sqlite/src/src/vdbeapi.c if( db->activeVdbeCnt==0 ){ db 392 third_party/sqlite/src/src/vdbeapi.c db->u1.isInterrupted = 0; db 395 third_party/sqlite/src/src/vdbeapi.c assert( db->writeVdbeCnt>0 || db->autoCommit==0 || db->nDeferredCons==0 ); db 398 third_party/sqlite/src/src/vdbeapi.c if( db->xProfile && !db->init.busy ){ db 399 third_party/sqlite/src/src/vdbeapi.c sqlite3OsCurrentTimeInt64(db->pVfs, &p->startTime); db 403 third_party/sqlite/src/src/vdbeapi.c db->activeVdbeCnt++; db 404 third_party/sqlite/src/src/vdbeapi.c if( p->readOnly==0 ) db->writeVdbeCnt++; db 413 third_party/sqlite/src/src/vdbeapi.c db->vdbeExecCnt++; db 415 third_party/sqlite/src/src/vdbeapi.c db->vdbeExecCnt--; db 421 third_party/sqlite/src/src/vdbeapi.c if( rc!=SQLITE_ROW && db->xProfile && !db->init.busy && p->zSql ){ db 423 third_party/sqlite/src/src/vdbeapi.c sqlite3OsCurrentTimeInt64(db->pVfs, &iNow); db 424 third_party/sqlite/src/src/vdbeapi.c db->xProfile(db->pProfileArg, p->zSql, (iNow - p->startTime)*1000000); db 430 third_party/sqlite/src/src/vdbeapi.c p->rc = doWalCallbacks(db); db 436 third_party/sqlite/src/src/vdbeapi.c db->errCode = rc; db 437 third_party/sqlite/src/src/vdbeapi.c if( SQLITE_NOMEM==sqlite3ApiExit(p->db, p->rc) ){ db 457 third_party/sqlite/src/src/vdbeapi.c rc = db->errCode = p->rc; db 459 third_party/sqlite/src/src/vdbeapi.c return (rc&db->errMask); db 472 third_party/sqlite/src/src/vdbeapi.c sqlite3 *db; /* The database connection */ db 477 third_party/sqlite/src/src/vdbeapi.c db = v->db; db 478 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_enter(db->mutex); db 485 third_party/sqlite/src/src/vdbeapi.c if( rc2!=SQLITE_OK && ALWAYS(v->isPrepareV2) && ALWAYS(db->pErr) ){ db 494 third_party/sqlite/src/src/vdbeapi.c const char *zErr = (const char *)sqlite3_value_text(db->pErr); db 495 third_party/sqlite/src/src/vdbeapi.c sqlite3DbFree(db, v->zErrMsg); db 496 third_party/sqlite/src/src/vdbeapi.c if( !db->mallocFailed ){ db 497 third_party/sqlite/src/src/vdbeapi.c v->zErrMsg = sqlite3DbStrDup(db, zErr); db 504 third_party/sqlite/src/src/vdbeapi.c rc = sqlite3ApiExit(db, rc); db 505 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(db->mutex); db 530 third_party/sqlite/src/src/vdbeapi.c return p->s.db; db 563 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(p->s.db->mutex) ); db 590 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 613 third_party/sqlite/src/src/vdbeapi.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); db 618 third_party/sqlite/src/src/vdbeapi.c pVdbeFunc = sqlite3DbRealloc(pCtx->s.db, pVdbeFunc, nMalloc); db 689 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_enter(pVm->db->mutex); db 713 third_party/sqlite/src/src/vdbeapi.c if( pVm && ALWAYS(pVm->db) ){ db 714 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_enter(pVm->db->mutex); db 715 third_party/sqlite/src/src/vdbeapi.c sqlite3Error(pVm->db, SQLITE_RANGE, 0); db 749 third_party/sqlite/src/src/vdbeapi.c p->rc = sqlite3ApiExit(p->db, p->rc); db 750 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 852 third_party/sqlite/src/src/vdbeapi.c sqlite3 *db = p->db; db 854 third_party/sqlite/src/src/vdbeapi.c assert( db!=0 ); db 858 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_enter(db->mutex); db 859 third_party/sqlite/src/src/vdbeapi.c assert( db->mallocFailed==0 ); db 864 third_party/sqlite/src/src/vdbeapi.c if( db->mallocFailed ){ db 865 third_party/sqlite/src/src/vdbeapi.c db->mallocFailed = 0; db 868 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(db->mutex); db 985 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_enter(p->db->mutex); db 987 third_party/sqlite/src/src/vdbeapi.c sqlite3Error(p->db, SQLITE_MISUSE, 0); db 988 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 994 third_party/sqlite/src/src/vdbeapi.c sqlite3Error(p->db, SQLITE_RANGE, 0); db 995 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 1002 third_party/sqlite/src/src/vdbeapi.c sqlite3Error(p->db, SQLITE_OK, 0); db 1042 third_party/sqlite/src/src/vdbeapi.c rc = sqlite3VdbeChangeEncoding(pVar, ENC(p->db)); db 1044 third_party/sqlite/src/src/vdbeapi.c sqlite3Error(p->db, rc, 0); db 1045 third_party/sqlite/src/src/vdbeapi.c rc = sqlite3ApiExit(p->db, rc); db 1047 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 1073 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 1086 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 1095 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 1156 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 1179 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_enter(p->db->mutex); db 1192 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(p->db->mutex); db 1243 third_party/sqlite/src/src/vdbeapi.c assert( pTo->db==pFrom->db ); db 1245 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_enter(pTo->db->mutex); db 1249 third_party/sqlite/src/src/vdbeapi.c sqlite3_mutex_leave(pTo->db->mutex); db 1289 third_party/sqlite/src/src/vdbeapi.c return pStmt ? ((Vdbe*)pStmt)->db : 0; db 35 third_party/sqlite/src/src/vdbeaux.c Vdbe *sqlite3VdbeCreate(sqlite3 *db){ db 37 third_party/sqlite/src/src/vdbeaux.c p = sqlite3DbMallocZero(db, sizeof(Vdbe) ); db 39 third_party/sqlite/src/src/vdbeaux.c p->db = db; db 40 third_party/sqlite/src/src/vdbeaux.c if( db->pVdbe ){ db 41 third_party/sqlite/src/src/vdbeaux.c db->pVdbe->pPrev = p; db 43 third_party/sqlite/src/src/vdbeaux.c p->pNext = db->pVdbe; db 45 third_party/sqlite/src/src/vdbeaux.c db->pVdbe = p; db 60 third_party/sqlite/src/src/vdbeaux.c p->zSql = sqlite3DbStrNDup(p->db, z, n); db 114 third_party/sqlite/src/src/vdbeaux.c pNew = sqlite3DbRealloc(p->db, p->aOp, nNew*sizeof(Op)); db 116 third_party/sqlite/src/src/vdbeaux.c p->nOpAlloc = sqlite3DbMallocSize(p->db, pNew)/sizeof(Op); db 164 third_party/sqlite/src/src/vdbeaux.c for(j=0; j<p->db->nDb; j++) sqlite3VdbeUsesBtree(p, j); db 240 third_party/sqlite/src/src/vdbeaux.c p->aLabel = sqlite3DbReallocOrFree(p->db, p->aLabel, db 242 third_party/sqlite/src/src/vdbeaux.c p->nLabelAlloc = sqlite3DbMallocSize(p->db, p->aLabel)/sizeof(p->aLabel[0]); db 328 third_party/sqlite/src/src/vdbeaux.c p->apSub = sqlite3DbReallocOrFree(v->db, p->apSub, nByte); db 381 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(v->db, sIter.apSub); db 388 third_party/sqlite/src/src/vdbeaux.c return ( v->db->mallocFailed || hasAbort==mayAbort ); db 436 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(p->db, p->aLabel); db 463 third_party/sqlite/src/src/vdbeaux.c assert( aOp && !p->db->mallocFailed ); db 577 third_party/sqlite/src/src/vdbeaux.c static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){ db 579 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, pDef); db 588 third_party/sqlite/src/src/vdbeaux.c static void freeP4(sqlite3 *db, int p4type, void *p4){ db 590 third_party/sqlite/src/src/vdbeaux.c assert( db ); db 598 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p4); db 602 third_party/sqlite/src/src/vdbeaux.c if( db->pnBytesFreed==0 ) sqlite3_free(p4); db 607 third_party/sqlite/src/src/vdbeaux.c freeEphemeralFunction(db, pVdbeFunc->pFunc); db 608 third_party/sqlite/src/src/vdbeaux.c if( db->pnBytesFreed==0 ) sqlite3VdbeDeleteAuxData(pVdbeFunc, 0); db 609 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, pVdbeFunc); db 613 third_party/sqlite/src/src/vdbeaux.c freeEphemeralFunction(db, (FuncDef*)p4); db 617 third_party/sqlite/src/src/vdbeaux.c if( db->pnBytesFreed==0 ){ db 621 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->zMalloc); db 622 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p); db 627 third_party/sqlite/src/src/vdbeaux.c if( db->pnBytesFreed==0 ) sqlite3VtabUnlock((VTable *)p4); db 639 third_party/sqlite/src/src/vdbeaux.c static void vdbeFreeOpArray(sqlite3 *db, Op *aOp, int nOp){ db 643 third_party/sqlite/src/src/vdbeaux.c freeP4(db, pOp->p4type, pOp->p4.p); db 645 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, pOp->zComment); db 649 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, aOp); db 668 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db = p->db; db 670 third_party/sqlite/src/src/vdbeaux.c freeP4(db, pOp->p4type, pOp->p4.p); db 705 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db; db 707 third_party/sqlite/src/src/vdbeaux.c db = p->db; db 709 third_party/sqlite/src/src/vdbeaux.c if( p->aOp==0 || db->mallocFailed ){ db 711 third_party/sqlite/src/src/vdbeaux.c freeP4(db, n, (void*)*(char**)&zP4); db 721 third_party/sqlite/src/src/vdbeaux.c freeP4(db, pOp->p4type, pOp->p4.p); db 749 third_party/sqlite/src/src/vdbeaux.c p->db->mallocFailed = 1; db 759 third_party/sqlite/src/src/vdbeaux.c assert( ((VTable *)zP4)->db==p->db ); db 765 third_party/sqlite/src/src/vdbeaux.c pOp->p4.z = sqlite3DbStrNDup(p->db, zP4, n); db 781 third_party/sqlite/src/src/vdbeaux.c assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed ); db 785 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(p->db, *pz); db 786 third_party/sqlite/src/src/vdbeaux.c *pz = sqlite3VMPrintf(p->db, zFormat, ap); db 795 third_party/sqlite/src/src/vdbeaux.c assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed ); db 799 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(p->db, *pz); db 800 third_party/sqlite/src/src/vdbeaux.c *pz = sqlite3VMPrintf(p->db, zFormat, ap); db 838 third_party/sqlite/src/src/vdbeaux.c assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed ); db 839 third_party/sqlite/src/src/vdbeaux.c if( p->db->mallocFailed ){ db 959 third_party/sqlite/src/src/vdbeaux.c assert( i>=0 && i<p->db->nDb && i<(int)sizeof(yDbMask)*8 ); db 962 third_party/sqlite/src/src/vdbeaux.c if( i!=1 && sqlite3BtreeSharable(p->db->aDb[i].pBt) ){ db 992 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db; db 996 third_party/sqlite/src/src/vdbeaux.c db = p->db; db 997 third_party/sqlite/src/src/vdbeaux.c aDb = db->aDb; db 998 third_party/sqlite/src/src/vdbeaux.c nDb = db->nDb; db 1014 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db; db 1018 third_party/sqlite/src/src/vdbeaux.c db = p->db; db 1019 third_party/sqlite/src/src/vdbeaux.c aDb = db->aDb; db 1020 third_party/sqlite/src/src/vdbeaux.c nDb = db->nDb; db 1057 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db = p->db; db 1058 third_party/sqlite/src/src/vdbeaux.c u8 malloc_failed = db->mallocFailed; db 1059 third_party/sqlite/src/src/vdbeaux.c if( db->pnBytesFreed ){ db 1061 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->zMalloc); db 1066 third_party/sqlite/src/src/vdbeaux.c assert( (&p[1])==pEnd || p[0].db==p[1].db ); db 1083 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->zMalloc); db 1089 third_party/sqlite/src/src/vdbeaux.c db->mallocFailed = malloc_failed; db 1105 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(p->v->db, p); db 1131 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db = p->db; /* The database connection */ db 1149 third_party/sqlite/src/src/vdbeaux.c db->mallocFailed = 1; db 1185 third_party/sqlite/src/src/vdbeaux.c }else if( db->u1.isInterrupted ){ db 1188 third_party/sqlite/src/src/vdbeaux.c sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3ErrStr(p->rc)); db 1256 third_party/sqlite/src/src/vdbeaux.c assert( p->db->mallocFailed ); db 1273 third_party/sqlite/src/src/vdbeaux.c assert( p->db->mallocFailed ); db 1420 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db = p->db; db 1448 third_party/sqlite/src/src/vdbeaux.c if( nVar>=0 && ALWAYS(db->mallocFailed==0) ){ db 1481 third_party/sqlite/src/src/vdbeaux.c p->pFree = sqlite3DbMallocZero(db, nByte); db 1485 third_party/sqlite/src/src/vdbeaux.c }while( nByte && !db->mallocFailed ); db 1492 third_party/sqlite/src/src/vdbeaux.c p->aVar[n].db = db; db 1500 third_party/sqlite/src/src/vdbeaux.c p->aMem[n].db = db; db 1506 third_party/sqlite/src/src/vdbeaux.c assert( p->aMem[n].db==db ); db 1570 third_party/sqlite/src/src/vdbeaux.c v->db->lastRowid = pFrame->lastRowid; db 1620 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db = p->db; db 1630 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->zErrMsg); db 1644 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db = p->db; db 1647 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->aColName); db 1650 third_party/sqlite/src/src/vdbeaux.c p->aColName = pColName = (Mem*)sqlite3DbMallocZero(db, sizeof(Mem)*n ); db 1654 third_party/sqlite/src/src/vdbeaux.c pColName->db = p->db; db 1680 third_party/sqlite/src/src/vdbeaux.c if( p->db->mallocFailed ){ db 1697 third_party/sqlite/src/src/vdbeaux.c static int vdbeCommit(sqlite3 *db, Vdbe *p){ db 1716 third_party/sqlite/src/src/vdbeaux.c rc = sqlite3VtabSync(db, &p->zErrMsg); db 1724 third_party/sqlite/src/src/vdbeaux.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 1725 third_party/sqlite/src/src/vdbeaux.c Btree *pBt = db->aDb[i].pBt; db 1737 third_party/sqlite/src/src/vdbeaux.c if( needXcommit && db->xCommitCallback ){ db 1738 third_party/sqlite/src/src/vdbeaux.c rc = db->xCommitCallback(db->pCommitArg); db 1753 third_party/sqlite/src/src/vdbeaux.c if( 0==sqlite3Strlen30(sqlite3BtreeGetFilename(db->aDb[0].pBt)) db 1756 third_party/sqlite/src/src/vdbeaux.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 1757 third_party/sqlite/src/src/vdbeaux.c Btree *pBt = db->aDb[i].pBt; db 1768 third_party/sqlite/src/src/vdbeaux.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 1769 third_party/sqlite/src/src/vdbeaux.c Btree *pBt = db->aDb[i].pBt; db 1775 third_party/sqlite/src/src/vdbeaux.c sqlite3VtabCommit(db); db 1785 third_party/sqlite/src/src/vdbeaux.c sqlite3_vfs *pVfs = db->pVfs; db 1788 third_party/sqlite/src/src/vdbeaux.c char const *zMainFile = sqlite3BtreeGetFilename(db->aDb[0].pBt); db 1796 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, zMaster); db 1798 third_party/sqlite/src/src/vdbeaux.c zMaster = sqlite3MPrintf(db, "%s-mj%08X", zMainFile, iRandom&0x7fffffff); db 1812 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, zMaster); db 1822 third_party/sqlite/src/src/vdbeaux.c for(i=0; i<db->nDb; i++){ db 1823 third_party/sqlite/src/src/vdbeaux.c Btree *pBt = db->aDb[i].pBt; db 1838 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, zMaster); db 1853 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, zMaster); db 1867 third_party/sqlite/src/src/vdbeaux.c for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ db 1868 third_party/sqlite/src/src/vdbeaux.c Btree *pBt = db->aDb[i].pBt; db 1876 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, zMaster); db 1885 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, zMaster); db 1900 third_party/sqlite/src/src/vdbeaux.c for(i=0; i<db->nDb; i++){ db 1901 third_party/sqlite/src/src/vdbeaux.c Btree *pBt = db->aDb[i].pBt; db 1909 third_party/sqlite/src/src/vdbeaux.c sqlite3VtabCommit(db); db 1926 third_party/sqlite/src/src/vdbeaux.c static void checkActiveVdbeCnt(sqlite3 *db){ db 1930 third_party/sqlite/src/src/vdbeaux.c p = db->pVdbe; db 1938 third_party/sqlite/src/src/vdbeaux.c assert( cnt==db->activeVdbeCnt ); db 1939 third_party/sqlite/src/src/vdbeaux.c assert( nWrite==db->writeVdbeCnt ); db 1961 third_party/sqlite/src/src/vdbeaux.c static void invalidateCursorsOnModifiedBtrees(sqlite3 *db){ db 1963 third_party/sqlite/src/src/vdbeaux.c for(i=0; i<db->nDb; i++){ db 1964 third_party/sqlite/src/src/vdbeaux.c Btree *p = db->aDb[i].pBt; db 1982 third_party/sqlite/src/src/vdbeaux.c sqlite3 *const db = p->db; db 1990 third_party/sqlite/src/src/vdbeaux.c if( db->nStatement && p->iStatement ){ db 1995 third_party/sqlite/src/src/vdbeaux.c assert( db->nStatement>0 ); db 1996 third_party/sqlite/src/src/vdbeaux.c assert( p->iStatement==(db->nStatement+db->nSavepoint) ); db 1998 third_party/sqlite/src/src/vdbeaux.c for(i=0; i<db->nDb; i++){ db 2000 third_party/sqlite/src/src/vdbeaux.c Btree *pBt = db->aDb[i].pBt; db 2013 third_party/sqlite/src/src/vdbeaux.c db->nStatement--; db 2020 third_party/sqlite/src/src/vdbeaux.c db->nDeferredCons = p->nStmtDefCons; db 2038 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db = p->db; db 2039 third_party/sqlite/src/src/vdbeaux.c if( (deferred && db->nDeferredCons>0) || (!deferred && p->nFkConstraint>0) ){ db 2042 third_party/sqlite/src/src/vdbeaux.c sqlite3SetString(&p->zErrMsg, db, "foreign key constraint failed"); db 2064 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db = p->db; db 2082 third_party/sqlite/src/src/vdbeaux.c if( p->db->mallocFailed ){ db 2089 third_party/sqlite/src/src/vdbeaux.c checkActiveVdbeCnt(db); db 2125 third_party/sqlite/src/src/vdbeaux.c invalidateCursorsOnModifiedBtrees(db); db 2126 third_party/sqlite/src/src/vdbeaux.c sqlite3RollbackAll(db); db 2127 third_party/sqlite/src/src/vdbeaux.c sqlite3CloseSavepoints(db); db 2128 third_party/sqlite/src/src/vdbeaux.c db->autoCommit = 1; db 2144 third_party/sqlite/src/src/vdbeaux.c if( !sqlite3VtabInSync(db) db 2145 third_party/sqlite/src/src/vdbeaux.c && db->autoCommit db 2146 third_party/sqlite/src/src/vdbeaux.c && db->writeVdbeCnt==(p->readOnly==0) db 2161 third_party/sqlite/src/src/vdbeaux.c rc = vdbeCommit(db, p); db 2168 third_party/sqlite/src/src/vdbeaux.c sqlite3RollbackAll(db); db 2170 third_party/sqlite/src/src/vdbeaux.c db->nDeferredCons = 0; db 2171 third_party/sqlite/src/src/vdbeaux.c sqlite3CommitInternalChanges(db); db 2174 third_party/sqlite/src/src/vdbeaux.c sqlite3RollbackAll(db); db 2176 third_party/sqlite/src/src/vdbeaux.c db->nStatement = 0; db 2183 third_party/sqlite/src/src/vdbeaux.c invalidateCursorsOnModifiedBtrees(db); db 2184 third_party/sqlite/src/src/vdbeaux.c sqlite3RollbackAll(db); db 2185 third_party/sqlite/src/src/vdbeaux.c sqlite3CloseSavepoints(db); db 2186 third_party/sqlite/src/src/vdbeaux.c db->autoCommit = 1; db 2207 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->zErrMsg); db 2210 third_party/sqlite/src/src/vdbeaux.c invalidateCursorsOnModifiedBtrees(db); db 2211 third_party/sqlite/src/src/vdbeaux.c sqlite3RollbackAll(db); db 2212 third_party/sqlite/src/src/vdbeaux.c sqlite3CloseSavepoints(db); db 2213 third_party/sqlite/src/src/vdbeaux.c db->autoCommit = 1; db 2222 third_party/sqlite/src/src/vdbeaux.c sqlite3VdbeSetChanges(db, p->nChange); db 2224 third_party/sqlite/src/src/vdbeaux.c sqlite3VdbeSetChanges(db, 0); db 2230 third_party/sqlite/src/src/vdbeaux.c if( p->rc!=SQLITE_OK && db->flags&SQLITE_InternChanges ){ db 2231 third_party/sqlite/src/src/vdbeaux.c sqlite3ResetInternalSchema(db, -1); db 2232 third_party/sqlite/src/src/vdbeaux.c db->flags = (db->flags | SQLITE_InternChanges); db 2241 third_party/sqlite/src/src/vdbeaux.c db->activeVdbeCnt--; db 2243 third_party/sqlite/src/src/vdbeaux.c db->writeVdbeCnt--; db 2245 third_party/sqlite/src/src/vdbeaux.c assert( db->activeVdbeCnt>=db->writeVdbeCnt ); db 2248 third_party/sqlite/src/src/vdbeaux.c checkActiveVdbeCnt(db); db 2249 third_party/sqlite/src/src/vdbeaux.c if( p->db->mallocFailed ){ db 2257 third_party/sqlite/src/src/vdbeaux.c if( db->autoCommit ){ db 2258 third_party/sqlite/src/src/vdbeaux.c sqlite3ConnectionUnlocked(db); db 2261 third_party/sqlite/src/src/vdbeaux.c assert( db->activeVdbeCnt>0 || db->autoCommit==0 || db->nStatement==0 ); db 2286 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db; db 2287 third_party/sqlite/src/src/vdbeaux.c db = p->db; db 2303 third_party/sqlite/src/src/vdbeaux.c sqlite3ValueSetStr(db->pErr,-1,p->zErrMsg,SQLITE_UTF8,SQLITE_TRANSIENT); db 2305 third_party/sqlite/src/src/vdbeaux.c db->errCode = p->rc; db 2306 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->zErrMsg); db 2309 third_party/sqlite/src/src/vdbeaux.c sqlite3Error(db, p->rc, 0); db 2311 third_party/sqlite/src/src/vdbeaux.c sqlite3Error(db, SQLITE_OK, 0); db 2319 third_party/sqlite/src/src/vdbeaux.c sqlite3Error(db, p->rc, 0); db 2320 third_party/sqlite/src/src/vdbeaux.c sqlite3ValueSetStr(db->pErr, -1, p->zErrMsg, SQLITE_UTF8, SQLITE_TRANSIENT); db 2321 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->zErrMsg); db 2354 third_party/sqlite/src/src/vdbeaux.c return p->rc & db->errMask; db 2365 third_party/sqlite/src/src/vdbeaux.c assert( (rc & p->db->errMask)==rc ); db 2396 third_party/sqlite/src/src/vdbeaux.c void sqlite3VdbeDeleteObject(sqlite3 *db, Vdbe *p){ db 2398 third_party/sqlite/src/src/vdbeaux.c assert( p->db==0 || p->db==db ); db 2403 third_party/sqlite/src/src/vdbeaux.c vdbeFreeOpArray(db, pSub->aOp, pSub->nOp); db 2404 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, pSub); db 2406 third_party/sqlite/src/src/vdbeaux.c vdbeFreeOpArray(db, p->aOp, p->nOp); db 2407 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->aLabel); db 2408 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->aColName); db 2409 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->zSql); db 2410 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p->pFree); db 2411 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(db, p); db 2418 third_party/sqlite/src/src/vdbeaux.c sqlite3 *db; db 2421 third_party/sqlite/src/src/vdbeaux.c db = p->db; db 2425 third_party/sqlite/src/src/vdbeaux.c assert( db->pVdbe==p ); db 2426 third_party/sqlite/src/src/vdbeaux.c db->pVdbe = p->pNext; db 2432 third_party/sqlite/src/src/vdbeaux.c p->db = 0; db 2433 third_party/sqlite/src/src/vdbeaux.c sqlite3VdbeDeleteObject(db, p); db 2555 third_party/sqlite/src/src/vdbeaux.c assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) ); db 2831 third_party/sqlite/src/src/vdbeaux.c p = sqlite3DbMallocRaw(pKeyInfo->db, nByte); db 2850 third_party/sqlite/src/src/vdbeaux.c pMem->db = pKeyInfo->db; db 2880 third_party/sqlite/src/src/vdbeaux.c sqlite3DbFree(p->pKeyInfo->db, p); db 2926 third_party/sqlite/src/src/vdbeaux.c mem1.db = pKeyInfo->db; db 3019 third_party/sqlite/src/src/vdbeaux.c int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){ db 3027 third_party/sqlite/src/src/vdbeaux.c UNUSED_PARAMETER(db); db 3133 third_party/sqlite/src/src/vdbeaux.c void sqlite3VdbeSetChanges(sqlite3 *db, int nChange){ db 3134 third_party/sqlite/src/src/vdbeaux.c assert( sqlite3_mutex_held(db->mutex) ); db 3135 third_party/sqlite/src/src/vdbeaux.c db->nChange = nChange; db 3136 third_party/sqlite/src/src/vdbeaux.c db->nTotalChange += nChange; db 3157 third_party/sqlite/src/src/vdbeaux.c void sqlite3ExpirePreparedStatements(sqlite3 *db){ db 3159 third_party/sqlite/src/src/vdbeaux.c for(p = db->pVdbe; p; p=p->pNext){ db 3168 third_party/sqlite/src/src/vdbeaux.c return v->db; db 3184 third_party/sqlite/src/src/vdbeaux.c sqlite3_value *pRet = sqlite3ValueNew(v->db); db 32 third_party/sqlite/src/src/vdbeblob.c sqlite3 *db; /* The associated database */ db 69 third_party/sqlite/src/src/vdbeblob.c zErr = sqlite3MPrintf(p->db, "cannot open value of type %s", db 91 third_party/sqlite/src/src/vdbeblob.c zErr = sqlite3MPrintf(p->db, "no such rowid: %lld", iRow); db 94 third_party/sqlite/src/src/vdbeblob.c zErr = sqlite3MPrintf(p->db, "%s", sqlite3_errmsg(p->db)); db 109 third_party/sqlite/src/src/vdbeblob.c sqlite3* db, /* The database connection */ db 162 third_party/sqlite/src/src/vdbeblob.c sqlite3_mutex_enter(db->mutex); db 164 third_party/sqlite/src/src/vdbeblob.c pBlob = (Incrblob *)sqlite3DbMallocZero(db, sizeof(Incrblob)); db 166 third_party/sqlite/src/src/vdbeblob.c pParse = sqlite3StackAllocRaw(db, sizeof(*pParse)); db 171 third_party/sqlite/src/src/vdbeblob.c pParse->db = db; db 172 third_party/sqlite/src/src/vdbeblob.c sqlite3DbFree(db, zErr); db 175 third_party/sqlite/src/src/vdbeblob.c sqlite3BtreeEnterAll(db); db 189 third_party/sqlite/src/src/vdbeblob.c sqlite3DbFree(db, zErr); db 194 third_party/sqlite/src/src/vdbeblob.c sqlite3BtreeLeaveAll(db); db 205 third_party/sqlite/src/src/vdbeblob.c sqlite3DbFree(db, zErr); db 206 third_party/sqlite/src/src/vdbeblob.c zErr = sqlite3MPrintf(db, "no such column: \"%s\"", zColumn); db 208 third_party/sqlite/src/src/vdbeblob.c sqlite3BtreeLeaveAll(db); db 220 third_party/sqlite/src/src/vdbeblob.c if( db->flags&SQLITE_ForeignKeys ){ db 245 third_party/sqlite/src/src/vdbeblob.c sqlite3DbFree(db, zErr); db 246 third_party/sqlite/src/src/vdbeblob.c zErr = sqlite3MPrintf(db, "cannot open %s column for writing", zFault); db 248 third_party/sqlite/src/src/vdbeblob.c sqlite3BtreeLeaveAll(db); db 253 third_party/sqlite/src/src/vdbeblob.c pBlob->pStmt = (sqlite3_stmt *)sqlite3VdbeCreate(db); db 254 third_party/sqlite/src/src/vdbeblob.c assert( pBlob->pStmt || db->mallocFailed ); db 257 third_party/sqlite/src/src/vdbeblob.c int iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 299 third_party/sqlite/src/src/vdbeblob.c if( !db->mallocFailed ){ db 306 third_party/sqlite/src/src/vdbeblob.c pBlob->db = db; db 307 third_party/sqlite/src/src/vdbeblob.c sqlite3BtreeLeaveAll(db); db 308 third_party/sqlite/src/src/vdbeblob.c if( db->mallocFailed ){ db 316 third_party/sqlite/src/src/vdbeblob.c if( rc==SQLITE_OK && db->mallocFailed==0 ){ db 320 third_party/sqlite/src/src/vdbeblob.c sqlite3DbFree(db, pBlob); db 322 third_party/sqlite/src/src/vdbeblob.c sqlite3Error(db, rc, (zErr ? "%s" : 0), zErr); db 323 third_party/sqlite/src/src/vdbeblob.c sqlite3DbFree(db, zErr); db 324 third_party/sqlite/src/src/vdbeblob.c sqlite3StackFree(db, pParse); db 325 third_party/sqlite/src/src/vdbeblob.c rc = sqlite3ApiExit(db, rc); db 326 third_party/sqlite/src/src/vdbeblob.c sqlite3_mutex_leave(db->mutex); db 337 third_party/sqlite/src/src/vdbeblob.c sqlite3 *db; db 340 third_party/sqlite/src/src/vdbeblob.c db = p->db; db 341 third_party/sqlite/src/src/vdbeblob.c sqlite3_mutex_enter(db->mutex); db 343 third_party/sqlite/src/src/vdbeblob.c sqlite3DbFree(db, p); db 344 third_party/sqlite/src/src/vdbeblob.c sqlite3_mutex_leave(db->mutex); db 364 third_party/sqlite/src/src/vdbeblob.c sqlite3 *db; db 367 third_party/sqlite/src/src/vdbeblob.c db = p->db; db 368 third_party/sqlite/src/src/vdbeblob.c sqlite3_mutex_enter(db->mutex); db 374 third_party/sqlite/src/src/vdbeblob.c sqlite3Error(db, SQLITE_ERROR, 0); db 384 third_party/sqlite/src/src/vdbeblob.c assert( db == v->db ); db 392 third_party/sqlite/src/src/vdbeblob.c db->errCode = rc; db 396 third_party/sqlite/src/src/vdbeblob.c rc = sqlite3ApiExit(db, rc); db 397 third_party/sqlite/src/src/vdbeblob.c sqlite3_mutex_leave(db->mutex); db 439 third_party/sqlite/src/src/vdbeblob.c sqlite3 *db; db 442 third_party/sqlite/src/src/vdbeblob.c db = p->db; db 443 third_party/sqlite/src/src/vdbeblob.c sqlite3_mutex_enter(db->mutex); db 454 third_party/sqlite/src/src/vdbeblob.c sqlite3Error(db, rc, (zErr ? "%s" : 0), zErr); db 455 third_party/sqlite/src/src/vdbeblob.c sqlite3DbFree(db, zErr); db 460 third_party/sqlite/src/src/vdbeblob.c rc = sqlite3ApiExit(db, rc); db 462 third_party/sqlite/src/src/vdbeblob.c sqlite3_mutex_leave(db->mutex); db 48 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 87 third_party/sqlite/src/src/vdbemem.c if( sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){ db 89 third_party/sqlite/src/src/vdbemem.c pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n); db 92 third_party/sqlite/src/src/vdbemem.c sqlite3DbFree(pMem->db, pMem->zMalloc); db 93 third_party/sqlite/src/src/vdbemem.c pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n); db 124 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 153 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 177 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 208 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 252 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 255 third_party/sqlite/src/src/vdbemem.c ctx.s.db = pMem->db; db 260 third_party/sqlite/src/src/vdbemem.c sqlite3DbFree(pMem->db, pMem->zMalloc); db 273 third_party/sqlite/src/src/vdbemem.c assert( p->db==0 || sqlite3_mutex_held(p->db->mutex) ); db 302 third_party/sqlite/src/src/vdbemem.c sqlite3DbFree(p->db, p->zMalloc); db 362 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 387 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 411 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 438 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 452 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 471 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 556 third_party/sqlite/src/src/vdbemem.c sqlite3 *db = pMem->db; db 557 third_party/sqlite/src/src/vdbemem.c assert( db!=0 ); db 560 third_party/sqlite/src/src/vdbemem.c pMem->zMalloc = sqlite3DbMallocRaw(db, 64); db 561 third_party/sqlite/src/src/vdbemem.c if( db->mallocFailed ){ db 565 third_party/sqlite/src/src/vdbemem.c pMem->u.pRowSet = sqlite3RowSetInit(db, pMem->zMalloc, db 566 third_party/sqlite/src/src/vdbemem.c sqlite3DbMallocSize(db, pMem->zMalloc)); db 577 third_party/sqlite/src/src/vdbemem.c assert( p->db!=0 ); db 583 third_party/sqlite/src/src/vdbemem.c return n>p->db->aLimit[SQLITE_LIMIT_LENGTH]; db 662 third_party/sqlite/src/src/vdbemem.c assert( pFrom->db==0 || sqlite3_mutex_held(pFrom->db->mutex) ); db 663 third_party/sqlite/src/src/vdbemem.c assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) ); db 664 third_party/sqlite/src/src/vdbemem.c assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db ); db 699 third_party/sqlite/src/src/vdbemem.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); db 708 third_party/sqlite/src/src/vdbemem.c if( pMem->db ){ db 709 third_party/sqlite/src/src/vdbemem.c iLimit = pMem->db->aLimit[SQLITE_LIMIT_LENGTH]; db 960 third_party/sqlite/src/src/vdbemem.c assert( pVal->db==0 || sqlite3_mutex_held(pVal->db->mutex) ); db 984 third_party/sqlite/src/src/vdbemem.c assert(pVal->enc==(enc & ~SQLITE_UTF16_ALIGNED) || pVal->db==0 db 985 third_party/sqlite/src/src/vdbemem.c || pVal->db->mallocFailed ); db 996 third_party/sqlite/src/src/vdbemem.c sqlite3_value *sqlite3ValueNew(sqlite3 *db){ db 997 third_party/sqlite/src/src/vdbemem.c Mem *p = sqlite3DbMallocZero(db, sizeof(*p)); db 1001 third_party/sqlite/src/src/vdbemem.c p->db = db; db 1017 third_party/sqlite/src/src/vdbemem.c sqlite3 *db, /* The database connection */ db 1057 third_party/sqlite/src/src/vdbemem.c pVal = sqlite3ValueNew(db); db 1062 third_party/sqlite/src/src/vdbemem.c zVal = sqlite3MPrintf(db, "%s%s", zNeg, pExpr->u.zToken); db 1078 third_party/sqlite/src/src/vdbemem.c if( SQLITE_OK==sqlite3ValueFromExpr(db,pExpr->pLeft,enc,affinity,&pVal) ){ db 1091 third_party/sqlite/src/src/vdbemem.c pVal = sqlite3ValueNew(db); db 1099 third_party/sqlite/src/src/vdbemem.c pVal = sqlite3ValueNew(db); db 1104 third_party/sqlite/src/src/vdbemem.c sqlite3VdbeMemSetStr(pVal, sqlite3HexToBlob(db, zVal, nVal), nVal/2, db 1116 third_party/sqlite/src/src/vdbemem.c db->mallocFailed = 1; db 1117 third_party/sqlite/src/src/vdbemem.c sqlite3DbFree(db, zVal); db 1142 third_party/sqlite/src/src/vdbemem.c sqlite3DbFree(((Mem*)v)->db, v); db 69 third_party/sqlite/src/src/vdbetrace.c sqlite3 *db; /* The database connection */ db 79 third_party/sqlite/src/src/vdbetrace.c db = p->db; db 81 third_party/sqlite/src/src/vdbetrace.c db->aLimit[SQLITE_LIMIT_LENGTH]); db 82 third_party/sqlite/src/src/vdbetrace.c out.db = db; db 83 third_party/sqlite/src/src/vdbetrace.c if( db->vdbeExecCnt>1 ){ db 125 third_party/sqlite/src/src/vdbetrace.c u8 enc = ENC(db); db 129 third_party/sqlite/src/src/vdbetrace.c utf8.db = db; db 23 third_party/sqlite/src/src/vtab.c sqlite3 *db, /* Database in which module is registered */ db 32 third_party/sqlite/src/src/vtab.c sqlite3_mutex_enter(db->mutex); db 34 third_party/sqlite/src/src/vtab.c pMod = (Module *)sqlite3DbMallocRaw(db, sizeof(Module) + nName + 1); db 43 third_party/sqlite/src/src/vtab.c pDel = (Module *)sqlite3HashInsert(&db->aModule, zCopy, nName, (void*)pMod); db 47 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, pDel); db 49 third_party/sqlite/src/src/vtab.c db->mallocFailed = 1; db 51 third_party/sqlite/src/src/vtab.c sqlite3ResetInternalSchema(db, -1); db 55 third_party/sqlite/src/src/vtab.c rc = sqlite3ApiExit(db, SQLITE_OK); db 56 third_party/sqlite/src/src/vtab.c sqlite3_mutex_leave(db->mutex); db 65 third_party/sqlite/src/src/vtab.c sqlite3 *db, /* Database in which module is registered */ db 70 third_party/sqlite/src/src/vtab.c return createModule(db, zName, pModule, pAux, 0); db 77 third_party/sqlite/src/src/vtab.c sqlite3 *db, /* Database in which module is registered */ db 83 third_party/sqlite/src/src/vtab.c return createModule(db, zName, pModule, pAux, xDestroy); db 104 third_party/sqlite/src/src/vtab.c VTable *sqlite3GetVTable(sqlite3 *db, Table *pTab){ db 107 third_party/sqlite/src/src/vtab.c for(pVtab=pTab->pVTable; pVtab && pVtab->db!=db; pVtab=pVtab->pNext); db 116 third_party/sqlite/src/src/vtab.c sqlite3 *db = pVTab->db; db 118 third_party/sqlite/src/src/vtab.c assert( db ); db 120 third_party/sqlite/src/src/vtab.c assert( sqlite3SafetyCheckOk(db) ); db 128 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, pVTab); db 139 third_party/sqlite/src/src/vtab.c static VTable *vtabDisconnectAll(sqlite3 *db, Table *p){ db 150 third_party/sqlite/src/src/vtab.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, p->pSchema) ); db 153 third_party/sqlite/src/src/vtab.c sqlite3 *db2 = pVTable->db; db 156 third_party/sqlite/src/src/vtab.c if( db2==db ){ db 167 third_party/sqlite/src/src/vtab.c assert( !db || pRet ); db 192 third_party/sqlite/src/src/vtab.c void sqlite3VtabUnlockList(sqlite3 *db){ db 193 third_party/sqlite/src/src/vtab.c VTable *p = db->pDisconnect; db 194 third_party/sqlite/src/src/vtab.c db->pDisconnect = 0; db 196 third_party/sqlite/src/src/vtab.c assert( sqlite3BtreeHoldsAllMutexes(db) ); db 197 third_party/sqlite/src/src/vtab.c assert( sqlite3_mutex_held(db->mutex) ); db 200 third_party/sqlite/src/src/vtab.c sqlite3ExpirePreparedStatements(db); db 223 third_party/sqlite/src/src/vtab.c void sqlite3VtabClear(sqlite3 *db, Table *p){ db 224 third_party/sqlite/src/src/vtab.c if( !db || db->pnBytesFreed==0 ) vtabDisconnectAll(0, p); db 228 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, p->azModuleArg[i]); db 230 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, p->azModuleArg); db 240 third_party/sqlite/src/src/vtab.c static void addModuleArgument(sqlite3 *db, Table *pTable, char *zArg){ db 244 third_party/sqlite/src/src/vtab.c azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes); db 248 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, pTable->azModuleArg[j]); db 250 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, zArg); db 251 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, pTable->azModuleArg); db 273 third_party/sqlite/src/src/vtab.c sqlite3 *db; /* Database connection */ db 280 third_party/sqlite/src/src/vtab.c db = pParse->db; db 281 third_party/sqlite/src/src/vtab.c iDb = sqlite3SchemaToIndex(db, pTable->pSchema); db 286 third_party/sqlite/src/src/vtab.c addModuleArgument(db, pTable, sqlite3NameFromToken(db, pModuleName)); db 287 third_party/sqlite/src/src/vtab.c addModuleArgument(db, pTable, sqlite3DbStrDup(db, db->aDb[iDb].zName)); db 288 third_party/sqlite/src/src/vtab.c addModuleArgument(db, pTable, sqlite3DbStrDup(db, pTable->zName)); db 299 third_party/sqlite/src/src/vtab.c pTable->azModuleArg[0], pParse->db->aDb[iDb].zName); db 313 third_party/sqlite/src/src/vtab.c sqlite3 *db = pParse->db; db 314 third_party/sqlite/src/src/vtab.c addModuleArgument(db, pParse->pNewTable, sqlite3DbStrNDup(db, z, n)); db 324 third_party/sqlite/src/src/vtab.c sqlite3 *db = pParse->db; /* The database connection */ db 337 third_party/sqlite/src/src/vtab.c if( !db->init.busy ){ db 347 third_party/sqlite/src/src/vtab.c zStmt = sqlite3MPrintf(db, "CREATE VIRTUAL TABLE %T", &pParse->sNameToken); db 357 third_party/sqlite/src/src/vtab.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 362 third_party/sqlite/src/src/vtab.c db->aDb[iDb].zName, SCHEMA_TABLE(iDb), db 368 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, zStmt); db 373 third_party/sqlite/src/src/vtab.c zWhere = sqlite3MPrintf(db, "name='%q' AND type='table'", pTab->zName); db 389 third_party/sqlite/src/src/vtab.c assert( sqlite3SchemaMutexHeld(db, 0, pSchema) ); db 392 third_party/sqlite/src/src/vtab.c db->mallocFailed = 1; db 431 third_party/sqlite/src/src/vtab.c sqlite3 *db, db 442 third_party/sqlite/src/src/vtab.c char *zModuleName = sqlite3MPrintf(db, "%s", pTab->zName); db 448 third_party/sqlite/src/src/vtab.c pVTable = sqlite3DbMallocZero(db, sizeof(VTable)); db 450 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, zModuleName); db 453 third_party/sqlite/src/src/vtab.c pVTable->db = db; db 456 third_party/sqlite/src/src/vtab.c assert( !db->pVTab ); db 458 third_party/sqlite/src/src/vtab.c db->pVTab = pTab; db 461 third_party/sqlite/src/src/vtab.c rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr); db 462 third_party/sqlite/src/src/vtab.c if( rc==SQLITE_NOMEM ) db->mallocFailed = 1; db 466 third_party/sqlite/src/src/vtab.c *pzErr = sqlite3MPrintf(db, "vtable constructor failed: %s", zModuleName); db 468 third_party/sqlite/src/src/vtab.c *pzErr = sqlite3MPrintf(db, "%s", zErr); db 471 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, pVTable); db 477 third_party/sqlite/src/src/vtab.c if( db->pVTab ){ db 479 third_party/sqlite/src/src/vtab.c *pzErr = sqlite3MPrintf(db, zFormat, pTab->zName); db 524 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, zModuleName); db 525 third_party/sqlite/src/src/vtab.c db->pVTab = 0; db 537 third_party/sqlite/src/src/vtab.c sqlite3 *db = pParse->db; db 543 third_party/sqlite/src/src/vtab.c if( (pTab->tabFlags & TF_Virtual)==0 || sqlite3GetVTable(db, pTab) ){ db 549 third_party/sqlite/src/src/vtab.c pMod = (Module*)sqlite3HashFind(&db->aModule, zMod, sqlite3Strlen30(zMod)); db 557 third_party/sqlite/src/src/vtab.c rc = vtabCallConstructor(db, pTab, pMod, pMod->pModule->xConnect, &zErr); db 561 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, zErr); db 570 third_party/sqlite/src/src/vtab.c static int addToVTrans(sqlite3 *db, VTable *pVTab){ db 574 third_party/sqlite/src/src/vtab.c if( (db->nVTrans%ARRAY_INCR)==0 ){ db 576 third_party/sqlite/src/src/vtab.c int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR); db 577 third_party/sqlite/src/src/vtab.c aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes); db 581 third_party/sqlite/src/src/vtab.c memset(&aVTrans[db->nVTrans], 0, sizeof(sqlite3_vtab *)*ARRAY_INCR); db 582 third_party/sqlite/src/src/vtab.c db->aVTrans = aVTrans; db 586 third_party/sqlite/src/src/vtab.c db->aVTrans[db->nVTrans++] = pVTab; db 599 third_party/sqlite/src/src/vtab.c int sqlite3VtabCallCreate(sqlite3 *db, int iDb, const char *zTab, char **pzErr){ db 605 third_party/sqlite/src/src/vtab.c pTab = sqlite3FindTable(db, zTab, db->aDb[iDb].zName); db 610 third_party/sqlite/src/src/vtab.c pMod = (Module*)sqlite3HashFind(&db->aModule, zMod, sqlite3Strlen30(zMod)); db 617 third_party/sqlite/src/src/vtab.c *pzErr = sqlite3MPrintf(db, "no such module: %s", zMod); db 620 third_party/sqlite/src/src/vtab.c rc = vtabCallConstructor(db, pTab, pMod, pMod->pModule->xCreate, pzErr); db 625 third_party/sqlite/src/src/vtab.c if( rc==SQLITE_OK && ALWAYS(sqlite3GetVTable(db, pTab)) ){ db 626 third_party/sqlite/src/src/vtab.c rc = addToVTrans(db, sqlite3GetVTable(db, pTab)); db 637 third_party/sqlite/src/src/vtab.c int sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){ db 644 third_party/sqlite/src/src/vtab.c sqlite3_mutex_enter(db->mutex); db 645 third_party/sqlite/src/src/vtab.c pTab = db->pVTab; db 647 third_party/sqlite/src/src/vtab.c sqlite3Error(db, SQLITE_MISUSE, 0); db 648 third_party/sqlite/src/src/vtab.c sqlite3_mutex_leave(db->mutex); db 653 third_party/sqlite/src/src/vtab.c pParse = sqlite3StackAllocZero(db, sizeof(*pParse)); db 658 third_party/sqlite/src/src/vtab.c pParse->db = db; db 663 third_party/sqlite/src/src/vtab.c && !db->mallocFailed db 673 third_party/sqlite/src/src/vtab.c db->pVTab = 0; db 675 third_party/sqlite/src/src/vtab.c sqlite3Error(db, SQLITE_ERROR, (zErr ? "%s" : 0), zErr); db 676 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, zErr); db 684 third_party/sqlite/src/src/vtab.c sqlite3DeleteTable(db, pParse->pNewTable); db 685 third_party/sqlite/src/src/vtab.c sqlite3StackFree(db, pParse); db 689 third_party/sqlite/src/src/vtab.c rc = sqlite3ApiExit(db, rc); db 690 third_party/sqlite/src/src/vtab.c sqlite3_mutex_leave(db->mutex); db 701 third_party/sqlite/src/src/vtab.c int sqlite3VtabCallDestroy(sqlite3 *db, int iDb, const char *zTab){ db 705 third_party/sqlite/src/src/vtab.c pTab = sqlite3FindTable(db, zTab, db->aDb[iDb].zName); db 707 third_party/sqlite/src/src/vtab.c VTable *p = vtabDisconnectAll(db, pTab); db 732 third_party/sqlite/src/src/vtab.c static void callFinaliser(sqlite3 *db, int offset){ db 734 third_party/sqlite/src/src/vtab.c if( db->aVTrans ){ db 735 third_party/sqlite/src/src/vtab.c for(i=0; i<db->nVTrans; i++){ db 736 third_party/sqlite/src/src/vtab.c VTable *pVTab = db->aVTrans[i]; db 745 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, db->aVTrans); db 746 third_party/sqlite/src/src/vtab.c db->nVTrans = 0; db 747 third_party/sqlite/src/src/vtab.c db->aVTrans = 0; db 759 third_party/sqlite/src/src/vtab.c int sqlite3VtabSync(sqlite3 *db, char **pzErrmsg){ db 762 third_party/sqlite/src/src/vtab.c VTable **aVTrans = db->aVTrans; db 764 third_party/sqlite/src/src/vtab.c db->aVTrans = 0; db 765 third_party/sqlite/src/src/vtab.c for(i=0; rc==SQLITE_OK && i<db->nVTrans; i++){ db 770 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, *pzErrmsg); db 771 third_party/sqlite/src/src/vtab.c *pzErrmsg = sqlite3DbStrDup(db, pVtab->zErrMsg); db 775 third_party/sqlite/src/src/vtab.c db->aVTrans = aVTrans; db 783 third_party/sqlite/src/src/vtab.c int sqlite3VtabRollback(sqlite3 *db){ db 784 third_party/sqlite/src/src/vtab.c callFinaliser(db, offsetof(sqlite3_module,xRollback)); db 792 third_party/sqlite/src/src/vtab.c int sqlite3VtabCommit(sqlite3 *db){ db 793 third_party/sqlite/src/src/vtab.c callFinaliser(db, offsetof(sqlite3_module,xCommit)); db 805 third_party/sqlite/src/src/vtab.c int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){ db 814 third_party/sqlite/src/src/vtab.c if( sqlite3VtabInSync(db) ){ db 827 third_party/sqlite/src/src/vtab.c for(i=0; i<db->nVTrans; i++){ db 828 third_party/sqlite/src/src/vtab.c if( db->aVTrans[i]==pVTab ){ db 836 third_party/sqlite/src/src/vtab.c rc = addToVTrans(db, pVTab); db 856 third_party/sqlite/src/src/vtab.c sqlite3 *db, /* Database connection for reporting malloc problems */ db 878 third_party/sqlite/src/src/vtab.c pVtab = sqlite3GetVTable(db, pTab)->pVtab; db 887 third_party/sqlite/src/src/vtab.c zLowerName = sqlite3DbStrDup(db, pDef->zName); db 893 third_party/sqlite/src/src/vtab.c sqlite3DbFree(db, zLowerName); db 901 third_party/sqlite/src/src/vtab.c pNew = sqlite3DbMallocZero(db, sizeof(*pNew) db 936 third_party/sqlite/src/src/vtab.c pToplevel->db->mallocFailed = 1; db 279 third_party/sqlite/src/src/where.c static void whereOrInfoDelete(sqlite3 *db, WhereOrInfo *p){ db 281 third_party/sqlite/src/src/where.c sqlite3DbFree(db, p); db 287 third_party/sqlite/src/src/where.c static void whereAndInfoDelete(sqlite3 *db, WhereAndInfo *p){ db 289 third_party/sqlite/src/src/where.c sqlite3DbFree(db, p); db 299 third_party/sqlite/src/src/where.c sqlite3 *db = pWC->pParse->db; db 302 third_party/sqlite/src/src/where.c sqlite3ExprDelete(db, a->pExpr); db 305 third_party/sqlite/src/src/where.c whereOrInfoDelete(db, a->u.pOrInfo); db 307 third_party/sqlite/src/src/where.c whereAndInfoDelete(db, a->u.pAndInfo); db 311 third_party/sqlite/src/src/where.c sqlite3DbFree(db, pWC->a); db 340 third_party/sqlite/src/src/where.c sqlite3 *db = pWC->pParse->db; db 341 third_party/sqlite/src/src/where.c pWC->a = sqlite3DbMallocRaw(db, sizeof(pWC->a[0])*pWC->nSlot*2 ); db 344 third_party/sqlite/src/src/where.c sqlite3ExprDelete(db, p); db 351 third_party/sqlite/src/src/where.c sqlite3DbFree(db, pOld); db 353 third_party/sqlite/src/src/where.c pWC->nSlot = sqlite3DbMallocSize(db, pWC->a)/sizeof(pWC->a[0]); db 653 third_party/sqlite/src/src/where.c sqlite3 *db = pParse->db; /* Database connection */ db 657 third_party/sqlite/src/src/where.c if( !sqlite3IsLikeFunction(db, pExpr, pnoCase, wc) ){ db 697 third_party/sqlite/src/src/where.c pPrefix = sqlite3Expr(db, TK_STRING, z); db 849 third_party/sqlite/src/src/where.c sqlite3 *db = pParse->db; /* Database connection */ db 867 third_party/sqlite/src/src/where.c pTerm->u.pOrInfo = pOrInfo = sqlite3DbMallocZero(db, sizeof(*pOrInfo)); db 874 third_party/sqlite/src/src/where.c if( db->mallocFailed ) return; db 888 third_party/sqlite/src/src/where.c pAndInfo = sqlite3DbMallocRaw(db, sizeof(*pAndInfo)); db 901 third_party/sqlite/src/src/where.c testcase( db->mallocFailed ); db 902 third_party/sqlite/src/src/where.c if( !db->mallocFailed ){ db 1049 third_party/sqlite/src/src/where.c pDup = sqlite3ExprDup(db, pOrTerm->pExpr->pRight, 0); db 1054 third_party/sqlite/src/src/where.c pDup = sqlite3ExprDup(db, pLeft, 0); db 1068 third_party/sqlite/src/src/where.c sqlite3ExprListDelete(db, pList); db 1111 third_party/sqlite/src/src/where.c sqlite3 *db = pParse->db; /* Database connection */ db 1113 third_party/sqlite/src/src/where.c if( db->mallocFailed ){ db 1157 third_party/sqlite/src/src/where.c pDup = sqlite3ExprDup(db, pExpr, 0); db 1158 third_party/sqlite/src/src/where.c if( db->mallocFailed ){ db 1159 third_party/sqlite/src/src/where.c sqlite3ExprDelete(db, pDup); db 1210 third_party/sqlite/src/src/where.c sqlite3ExprDup(db, pExpr->pLeft, 0), db 1211 third_party/sqlite/src/src/where.c sqlite3ExprDup(db, pList->a[i].pExpr, 0), 0); db 1256 third_party/sqlite/src/src/where.c pStr2 = sqlite3ExprDup(db, pStr1, 0); db 1257 third_party/sqlite/src/src/where.c if( !db->mallocFailed ){ db 1275 third_party/sqlite/src/src/where.c pColl = sqlite3FindCollSeq(db, SQLITE_UTF8, noCase ? "NOCASE" : "BINARY",0); db 1277 third_party/sqlite/src/src/where.c sqlite3ExprSetColl(sqlite3ExprDup(db,pLeft,0), pColl), db 1283 third_party/sqlite/src/src/where.c sqlite3ExprSetColl(sqlite3ExprDup(db,pLeft,0), pColl), db 1317 third_party/sqlite/src/src/where.c 0, sqlite3ExprDup(db, pRight, 0), 0); db 1355 third_party/sqlite/src/src/where.c sqlite3ExprDup(db, pLeft, 0), db 1434 third_party/sqlite/src/src/where.c sqlite3 *db = pParse->db; db 1469 third_party/sqlite/src/src/where.c pColl = db->pDfltColl; db 1749 third_party/sqlite/src/src/where.c if( (pParse->db->flags & SQLITE_AutoIndex)==0 ){ db 1878 third_party/sqlite/src/src/where.c pIdx = sqlite3DbMallocZero(pParse->db, nByte); db 1997 third_party/sqlite/src/src/where.c pIdxInfo = sqlite3DbMallocZero(pParse->db, sizeof(*pIdxInfo) db 2066 third_party/sqlite/src/src/where.c sqlite3_vtab *pVtab = sqlite3GetVTable(pParse->db, pTab)->pVtab; db 2077 third_party/sqlite/src/src/where.c pParse->db->mallocFailed = 1; db 2163 third_party/sqlite/src/src/where.c assert( sqlite3GetVTable(pParse->db, pTab) ); db 2306 third_party/sqlite/src/src/where.c sqlite3 *db = pParse->db; db 2316 third_party/sqlite/src/src/where.c pColl = db->pDfltColl; db 2319 third_party/sqlite/src/src/where.c pColl = sqlite3GetCollSeq(db, SQLITE_UTF8, 0, *pIdx->azColl); db 2342 third_party/sqlite/src/src/where.c db, pColl->enc, aSample[i].u.z, aSample[i].nByte, &nSample db 2345 third_party/sqlite/src/src/where.c assert( db->mallocFailed ); db 2349 third_party/sqlite/src/src/where.c sqlite3DbFree(db, zSample); db 2397 third_party/sqlite/src/src/where.c return sqlite3ValueFromExpr(pParse->db, pExpr, SQLITE_UTF8, aff, pp); db 2556 third_party/sqlite/src/src/where.c pRhs = sqlite3ValueNew(pParse->db); db 3121 third_party/sqlite/src/src/where.c if( !pOrderBy && pParse->db->flags & SQLITE_ReverseOrder ){ db 3164 third_party/sqlite/src/src/where.c sqlite3DbFree(pParse->db, p); db 3227 third_party/sqlite/src/src/where.c assert( pParse->db->mallocFailed ); db 3297 third_party/sqlite/src/src/where.c sqlite3DbReallocOrFree(pParse->db, pLevel->u.in.aInLoop, db 3385 third_party/sqlite/src/src/where.c zAff = sqlite3DbStrDup(pParse->db, sqlite3IndexAffinityStr(v, pIdx)); db 3387 third_party/sqlite/src/src/where.c pParse->db->mallocFailed = 1; db 3470 third_party/sqlite/src/src/where.c static char *explainIndexRange(sqlite3 *db, WhereLevel *pLevel, Table *pTab){ db 3483 third_party/sqlite/src/src/where.c txt.db = db; db 3518 third_party/sqlite/src/src/where.c sqlite3 *db = pParse->db; /* Database handle */ db 3530 third_party/sqlite/src/src/where.c zMsg = sqlite3MPrintf(db, "%s", isSearch?"SEARCH":"SCAN"); db 3532 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s SUBQUERY %d", zMsg,pItem->iSelectId); db 3534 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s TABLE %s", zMsg, pItem->zName); db 3538 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s AS %s", zMsg, pItem->zAlias); db 3541 third_party/sqlite/src/src/where.c char *zWhere = explainIndexRange(db, pLevel, pItem->pTab); db 3542 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s USING %s%sINDEX%s%s%s", zMsg, db 3549 third_party/sqlite/src/src/where.c sqlite3DbFree(db, zWhere); db 3551 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s USING INTEGER PRIMARY KEY", zMsg); db 3554 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s (rowid=?)", zMsg); db 3556 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s (rowid>? AND rowid<?)", zMsg); db 3558 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s (rowid>?)", zMsg); db 3560 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s (rowid<?)", zMsg); db 3566 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s VIRTUAL TABLE INDEX %d:%s", zMsg, db 3576 third_party/sqlite/src/src/where.c zMsg = sqlite3MAppendf(db, zMsg, "%s (~%lld rows)", zMsg, nRow); db 3890 third_party/sqlite/src/src/where.c zEndAff = sqlite3DbStrDup(pParse->db, zStartAff); db 3973 third_party/sqlite/src/src/where.c sqlite3DbFree(pParse->db, zStartAff); db 3974 third_party/sqlite/src/src/where.c sqlite3DbFree(pParse->db, zEndAff); db 4093 third_party/sqlite/src/src/where.c pOrTab = sqlite3StackAllocRaw(pParse->db, db 4163 third_party/sqlite/src/src/where.c if( pWInfo->nLevel>1 ) sqlite3StackFree(pParse->db, pOrTab); db 4252 third_party/sqlite/src/src/where.c static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo){ db 4262 third_party/sqlite/src/src/where.c sqlite3DbFree(db, pInfo); db 4267 third_party/sqlite/src/src/where.c sqlite3DbFree(db, pIdx->zColAff); db 4268 third_party/sqlite/src/src/where.c sqlite3DbFree(db, pIdx); db 4273 third_party/sqlite/src/src/where.c sqlite3DbFree(db, pWInfo); db 4385 third_party/sqlite/src/src/where.c sqlite3 *db; /* Database connection */ db 4410 third_party/sqlite/src/src/where.c db = pParse->db; db 4412 third_party/sqlite/src/src/where.c pWInfo = sqlite3DbMallocZero(db, db 4417 third_party/sqlite/src/src/where.c if( db->mallocFailed ){ db 4418 third_party/sqlite/src/src/where.c sqlite3DbFree(db, pWInfo); db 4494 third_party/sqlite/src/src/where.c if( db->mallocFailed ){ db 4700 third_party/sqlite/src/src/where.c if( pParse->nErr || db->mallocFailed ){ db 4736 third_party/sqlite/src/src/where.c iDb = sqlite3SchemaToIndex(db, pTab->pSchema); db 4742 third_party/sqlite/src/src/where.c const char *pVTab = (const char *)sqlite3GetVTable(db, pTab); db 4783 third_party/sqlite/src/src/where.c if( db->mallocFailed ) goto whereBeginError; db 4855 third_party/sqlite/src/src/where.c whereInfoFree(db, pWInfo); db 4870 third_party/sqlite/src/src/where.c sqlite3 *db = pParse->db; db 4891 third_party/sqlite/src/src/where.c sqlite3DbFree(db, pLevel->u.in.aInLoop); db 4952 third_party/sqlite/src/src/where.c if( (pLevel->plan.wsFlags & WHERE_INDEXED)!=0 && !db->mallocFailed){ db 4983 third_party/sqlite/src/src/where.c whereInfoFree(db, pWInfo); db 30 third_party/sqlite/src/test/crashtest1.c sqlite *db; db 42 third_party/sqlite/src/test/crashtest1.c db = sqlite_open("./test.db", 0, &zErr); db 43 third_party/sqlite/src/test/crashtest1.c if( db==0 ){ db 53 third_party/sqlite/src/test/crashtest1.c rc = sqlite_exec_printf(db, db 69 third_party/sqlite/src/test/crashtest1.c sqlite *db; db 76 third_party/sqlite/src/test/crashtest1.c db = sqlite_open("test.db", 0, &zErr); db 77 third_party/sqlite/src/test/crashtest1.c if( db==0 ){ db 81 third_party/sqlite/src/test/crashtest1.c sqlite_exec(db, "CREATE TABLE t1(a,b)", 0, 0, 0); db 82 third_party/sqlite/src/test/crashtest1.c sqlite_close(db); db 102 third_party/sqlite/src/test/threadtest1.c char **db_query(sqlite *db, const char *zFile, const char *zFormat, ...){ db 114 third_party/sqlite/src/test/threadtest1.c rc = sqlite3_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); db 117 third_party/sqlite/src/test/threadtest1.c rc = sqlite3_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); db 137 third_party/sqlite/src/test/threadtest1.c void db_execute(sqlite *db, const char *zFile, const char *zFormat, ...){ db 147 third_party/sqlite/src/test/threadtest1.c rc = sqlite3_exec(db, zSql, 0, 0, &zErrMsg); db 200 third_party/sqlite/src/test/threadtest1.c sqlite *db; db 208 third_party/sqlite/src/test/threadtest1.c sqlite3_open(&zFilename[2], &db); db 209 third_party/sqlite/src/test/threadtest1.c if( db==0 ){ db 213 third_party/sqlite/src/test/threadtest1.c sqlite3_busy_handler(db, db_is_locked, zFilename); db 214 third_party/sqlite/src/test/threadtest1.c db_execute(db, zFilename, "CREATE TABLE t%d(a,b,c);", t); db 216 third_party/sqlite/src/test/threadtest1.c db_execute(db, zFilename, "INSERT INTO t%d VALUES(%d,%d,%d);", db 219 third_party/sqlite/src/test/threadtest1.c az = db_query(db, zFilename, "SELECT count(*) FROM t%d", t); db 221 third_party/sqlite/src/test/threadtest1.c az = db_query(db, zFilename, "SELECT avg(b) FROM t%d", t); db 223 third_party/sqlite/src/test/threadtest1.c db_execute(db, zFilename, "DELETE FROM t%d WHERE a>50", t); db 224 third_party/sqlite/src/test/threadtest1.c az = db_query(db, zFilename, "SELECT avg(b) FROM t%d", t); db 228 third_party/sqlite/src/test/threadtest1.c az = db_query(db, zFilename, "SELECT b, c FROM t%d WHERE a=%d", t, i); db 233 third_party/sqlite/src/test/threadtest1.c db_execute(db, zFilename, "DROP TABLE t%d;", t); db 234 third_party/sqlite/src/test/threadtest1.c sqlite3_close(db); db 57 third_party/sqlite/src/test/threadtest2.c int integrity_check(sqlite *db, int id){ db 61 third_party/sqlite/src/test/threadtest2.c rc = sqlite3_exec(db, "pragma integrity_check", check_callback, 0, 0); db 66 third_party/sqlite/src/test/threadtest2.c sqlite3_exec(db, "pragma integrity_check", check_callback, 0, 0); db 75 third_party/sqlite/src/test/threadtest2.c sqlite *db; db 82 third_party/sqlite/src/test/threadtest2.c while( (sqlite3_open(DB_FILE, &db))!=SQLITE_OK ) sched_yield(); db 83 third_party/sqlite/src/test/threadtest2.c sqlite3_exec(db, "PRAGMA synchronous=OFF", 0, 0, 0); db 85 third_party/sqlite/src/test/threadtest2.c if( all_stop ){ sqlite3_close(db); break; } db 87 third_party/sqlite/src/test/threadtest2.c rc = sqlite3_exec(db, "INSERT INTO t1 VALUES('bogus data')", 0, 0, 0); db 89 third_party/sqlite/src/test/threadtest2.c sqlite3_close(db); db 99 third_party/sqlite/src/test/threadtest2.c sqlite *db; db 109 third_party/sqlite/src/test/threadtest2.c sqlite3_open(DB_FILE, &db); db 110 third_party/sqlite/src/test/threadtest2.c if( db==0 ){ db 114 third_party/sqlite/src/test/threadtest2.c rc = sqlite3_exec(db, "CREATE TABLE t1(x);", 0,0,0); db 119 third_party/sqlite/src/test/threadtest2.c sqlite3_close(db); db 411 third_party/sqlite/src/test/threadtest3.c sqlite3 *db; /* Database handle */ db 466 third_party/sqlite/src/test/threadtest3.c pErr->rc = sqlite3_errcode(pDb->db); db 468 third_party/sqlite/src/test/threadtest3.c "sqlite3_%s() - %s (%d)", zFunc, sqlite3_errmsg(pDb->db), db 469 third_party/sqlite/src/test/threadtest3.c sqlite3_extended_errcode(pDb->db) db 510 third_party/sqlite/src/test/threadtest3.c rc = sqlite3_open(zFile, &pDb->db); db 513 third_party/sqlite/src/test/threadtest3.c sqlite3_close(pDb->db); db 514 third_party/sqlite/src/test/threadtest3.c pDb->db = 0; db 517 third_party/sqlite/src/test/threadtest3.c pDb->db, "md5sum", -1, SQLITE_UTF8, 0, 0, md5step, md5finalize db 519 third_party/sqlite/src/test/threadtest3.c sqlite3_busy_handler(pDb->db, busyhandler, 0); db 520 third_party/sqlite/src/test/threadtest3.c sqlite3_exec(pDb->db, "PRAGMA synchronous=OFF", 0, 0, 0); db 542 third_party/sqlite/src/test/threadtest3.c rc = sqlite3_close(pDb->db); db 544 third_party/sqlite/src/test/threadtest3.c pErr->zErr = sqlite3_mprintf("%s", sqlite3_errmsg(pDb->db)); db 555 third_party/sqlite/src/test/threadtest3.c pErr->rc = sqlite3_exec(pDb->db, zSql, 0, 0, &pErr->zErr); db 574 third_party/sqlite/src/test/threadtest3.c rc = sqlite3_prepare_v2(pDb->db, zSql, -1, &pRet->pStmt, 0); db 900 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 903 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 911 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, "BEGIN"); db 912 third_party/sqlite/src/test/threadtest3.c integrity_check(&err, &db); db 913 third_party/sqlite/src/test/threadtest3.c z1 = execsql_text(&err, &db, 1, azSql[0]); db 914 third_party/sqlite/src/test/threadtest3.c z2 = execsql_text(&err, &db, 2, azSql[1]); db 915 third_party/sqlite/src/test/threadtest3.c z3 = execsql_text(&err, &db, 3, azSql[0]); db 916 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, "COMMIT"); db 922 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, db 931 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 939 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 942 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 945 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, "PRAGMA wal_checkpoint"); db 949 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 957 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 961 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 1); db 962 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, db 982 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 992 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 994 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, zJournal); db 996 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, "BEGIN"); db 997 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, "INSERT INTO t1 VALUES(NULL, randomblob(100))"); db 1008 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, "COMMIT"); db 1009 third_party/sqlite/src/test/threadtest3.c integrity_check(&err, &db); db 1010 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1019 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; db 1022 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 1); db 1023 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, "CREATE TABLE t1(x INTEGER PRIMARY KEY, y UNIQUE)"); db 1024 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1038 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 1041 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 1042 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, "PRAGMA wal_autocheckpoint = 10"); db 1051 third_party/sqlite/src/test/threadtest3.c i64 iMax = execsql_i64(&err, &db, "SELECT max(cnt) FROM t1"); db 1056 third_party/sqlite/src/test/threadtest3.c sum1 = execsql_i64(&err, &db, "SELECT sum(cnt) FROM t1"); db 1057 third_party/sqlite/src/test/threadtest3.c sum2 = execsql_i64(&err, &db, "SELECT sum(sum1) FROM t1"); db 1058 third_party/sqlite/src/test/threadtest3.c execsql_i64(&err, &db, db 1062 third_party/sqlite/src/test/threadtest3.c integrity_check(&err, &db); db 1067 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1074 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; db 1078 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 1); db 1079 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, db 1086 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1099 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 1101 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 1103 third_party/sqlite/src/test/threadtest3.c integrity_check(&err, &db); db 1105 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1113 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 1116 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 1117 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, "PRAGMA wal_autocheckpoint = 15;"); db 1120 third_party/sqlite/src/test/threadtest3.c &err, &db, "REPLACE INTO t1 VALUES(:iRow, randomblob(300))", &iRow db 1125 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1133 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; db 1136 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 1); db 1137 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, db 1141 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1153 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 1156 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 1157 third_party/sqlite/src/test/threadtest3.c nRow = execsql_i64(&err, &db, "SELECT count(*) FROM t1"); db 1158 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1166 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; db 1169 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 1); db 1170 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, db 1197 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1258 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; db 1260 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 1); db 1261 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, db 1267 third_party/sqlite/src/test/threadtest3.c xSub = cgt_pager_1_populate; xSub(&err, &db); db 1268 third_party/sqlite/src/test/threadtest3.c xSub = cgt_pager_1_update; xSub(&err, &db); db 1269 third_party/sqlite/src/test/threadtest3.c xSub = cgt_pager_1_read; xSub(&err, &db); db 1271 third_party/sqlite/src/test/threadtest3.c closedb(&err, &db); db 1285 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 1289 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 1299 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, zSql); db 1310 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, zSql); db 1317 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, zSql); db 1324 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, zSql); db 1336 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; /* SQLite database connection */ db 1341 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 0); db 1345 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, "INSERT INTO t1 VALUES(:iX, :iY+1)", &iVal, &iVal); db 1351 third_party/sqlite/src/test/threadtest3.c execsql(&err, &db, "DELETE FROM t1 WHERE x = :iX", &iVal); db 1362 third_party/sqlite/src/test/threadtest3.c Sqlite db = {0}; db 1365 third_party/sqlite/src/test/threadtest3.c opendb(&err, &db, "test.db", 1); db 1366 third_party/sqlite/src/test/threadtest3.c sql_script(&err, &db, db 55 third_party/sqlite/src/test/tt3_checkpoint.c sqlite3 *db, db 64 third_party/sqlite/src/test/tt3_checkpoint.c sqlite3_wal_checkpoint_v2(db, zDb, p->eMode, 0, 0); db 71 third_party/sqlite/src/test/tt3_checkpoint.c Sqlite db = {0}; db 73 third_party/sqlite/src/test/tt3_checkpoint.c opendb(&err, &db, "test.db", 0); db 76 third_party/sqlite/src/test/tt3_checkpoint.c sql_script(&err, &db, "BEGIN"); db 77 third_party/sqlite/src/test/tt3_checkpoint.c iCount1 = execsql_i64(&err, &db, "SELECT count(x) FROM t1"); db 79 third_party/sqlite/src/test/tt3_checkpoint.c iCount2 = execsql_i64(&err, &db, "SELECT count(x) FROM t1"); db 80 third_party/sqlite/src/test/tt3_checkpoint.c sql_script(&err, &db, "COMMIT"); db 86 third_party/sqlite/src/test/tt3_checkpoint.c closedb(&err, &db); db 94 third_party/sqlite/src/test/tt3_checkpoint.c Sqlite db = {0}; db 99 third_party/sqlite/src/test/tt3_checkpoint.c opendb(&err, &db, "test.db", 1); db 100 third_party/sqlite/src/test/tt3_checkpoint.c sql_script(&err, &db, db 113 third_party/sqlite/src/test/tt3_checkpoint.c sqlite3_wal_hook(db.db, checkpoint_starvation_walhook, (void *)p); db 115 third_party/sqlite/src/test/tt3_checkpoint.c sql_script(&err, &db, "INSERT INTO t1 VALUES(randomblob(1200))"); db 126 third_party/sqlite/src/test/tt3_checkpoint.c closedb(&err, &db); db 30 third_party/sqlite/src/tool/rollback-test.c sqlite3 *db; db 31 third_party/sqlite/src/tool/rollback-test.c rc = sqlite3_open(zFilename, &db); db 34 third_party/sqlite/src/tool/rollback-test.c zFilename, sqlite3_errmsg(db)); db 35 third_party/sqlite/src/tool/rollback-test.c sqlite3_close(db); db 38 third_party/sqlite/src/tool/rollback-test.c return db; db 60 third_party/sqlite/src/tool/rollback-test.c static void runSql(sqlite3 *db, const char *zSql){ db 64 third_party/sqlite/src/tool/rollback-test.c rc = sqlite3_exec(db, zSql, execCallback, 0, &zErr); db 70 third_party/sqlite/src/tool/rollback-test.c fprintf(stderr, "SQL error: %s\n", sqlite3_errmsg(db)); db 76 third_party/sqlite/src/tool/rollback-test.c sqlite3 *db; db 81 third_party/sqlite/src/tool/rollback-test.c db = openDb(argv[argc-1]); db 84 third_party/sqlite/src/tool/rollback-test.c runSql(db, "PRAGMA encoding=UTF8"); db 86 third_party/sqlite/src/tool/rollback-test.c runSql(db, "PRAGMA encoding=UTF16LE"); db 88 third_party/sqlite/src/tool/rollback-test.c runSql(db, "PRAGMA encoding=UTF16BE"); db 93 third_party/sqlite/src/tool/rollback-test.c runSql(db, zBuf); db 99 third_party/sqlite/src/tool/rollback-test.c runSql(db, db 117 third_party/sqlite/src/tool/rollback-test.c sqlite3_close(db); db 119 third_party/sqlite/src/tool/rollback-test.c db = openDb(argv[argc-1]); db 120 third_party/sqlite/src/tool/rollback-test.c runSql(db, "PRAGMA integrity_check"); db 125 third_party/sqlite/src/tool/rollback-test.c runSql(db, db 134 third_party/sqlite/src/tool/rollback-test.c db = openDb(argv[argc-1]); db 137 third_party/sqlite/src/tool/rollback-test.c runSql(db, "PRAGMA journal_mode=WAL"); db 139 third_party/sqlite/src/tool/rollback-test.c runSql(db, "PRAGMA journal_mode=DELETE"); db 145 third_party/sqlite/src/tool/rollback-test.c runSql(db, db 15 third_party/sqlite/src/tool/showdb.c static int db = -1; /* File descriptor for reading the DB */ db 63 third_party/sqlite/src/tool/showdb.c lseek(db, ofst, SEEK_SET); db 64 third_party/sqlite/src/tool/showdb.c read(db, aData, nByte); db 479 third_party/sqlite/src/tool/showdb.c db = open(argv[1], O_RDONLY); db 480 third_party/sqlite/src/tool/showdb.c if( db<0 ){ db 486 third_party/sqlite/src/tool/showdb.c lseek(db, 16, SEEK_SET); db 487 third_party/sqlite/src/tool/showdb.c read(db, zPgSz, 2); db 491 third_party/sqlite/src/tool/showdb.c fstat(db, &sbuf); db 556 third_party/sqlite/src/tool/showdb.c close(db); db 14 third_party/sqlite/src/tool/showjournal.c static FILE *db = 0; db 33 third_party/sqlite/src/tool/showjournal.c fseek(db, iOfst, SEEK_SET); db 34 third_party/sqlite/src/tool/showjournal.c got = fread(pBuf, 1, N, db); db 116 third_party/sqlite/src/tool/showjournal.c db = fopen(argv[1], "rb"); db 117 third_party/sqlite/src/tool/showjournal.c if( db==0 ){ db 121 third_party/sqlite/src/tool/showjournal.c fseek(db, 0, SEEK_END); db 122 third_party/sqlite/src/tool/showjournal.c fileSize = ftell(db); db 124 third_party/sqlite/src/tool/showjournal.c fseek(db, 0, SEEK_SET); db 138 third_party/sqlite/src/tool/showjournal.c fclose(db); db 66 third_party/sqlite/src/tool/speedtest16.c static void prepareAndRun(sqlite3 *db, const char *zSql){ db 77 third_party/sqlite/src/tool/speedtest16.c rc = sqlite3_prepare16_v2(db, utf16, -1, &pStmt, &stmtTail); db 100 third_party/sqlite/src/tool/speedtest16.c sqlite3 *db; db 129 third_party/sqlite/src/tool/speedtest16.c rc = sqlite3_open16(utf16, &db); db 147 third_party/sqlite/src/tool/speedtest16.c prepareAndRun(db, &zSql[i]); db 155 third_party/sqlite/src/tool/speedtest16.c sqlite3_close(db); db 56 third_party/sqlite/src/tool/speedtest8.c static void prepareAndRun(sqlite3 *db, const char *zSql, int bQuiet){ db 67 third_party/sqlite/src/tool/speedtest8.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &stmtTail); db 94 third_party/sqlite/src/tool/speedtest8.c sqlite3 *db; db 200 third_party/sqlite/src/tool/speedtest8.c rc = sqlite3_open(argv[1], &db); db 219 third_party/sqlite/src/tool/speedtest8.c prepareAndRun(db, &zSql[i], bQuiet); db 227 third_party/sqlite/src/tool/speedtest8.c sqlite3_close(db); db 37 third_party/sqlite/src/tool/speedtest8inst1.c static void prepareAndRun(sqlite3_vfs *pInstVfs, sqlite3 *db, const char *zSql){ db 50 third_party/sqlite/src/tool/speedtest8inst1.c rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &stmtTail); db 150 third_party/sqlite/src/tool/speedtest8inst1.c sqlite3 *db; db 184 third_party/sqlite/src/tool/speedtest8inst1.c zDb, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, "logging" db 187 third_party/sqlite/src/tool/speedtest8inst1.c fprintf(stderr, "Failed to open db: %s\n", sqlite3_errmsg(db)); db 202 third_party/sqlite/src/tool/speedtest8inst1.c prepareAndRun(pInstVfs, db, &zSql[i]); db 617 third_party/tcmalloc/chromium/src/deep-heap-profile.cc for (int db = 0; db < table_size_; db++) { db 618 third_party/tcmalloc/chromium/src/deep-heap-profile.cc for (DeepBucket* x = table_[db]; x != 0; /**/) { db 619 third_party/tcmalloc/chromium/src/deep-heap-profile.cc DeepBucket* db = x; db 621 third_party/tcmalloc/chromium/src/deep-heap-profile.cc dealloc_(db); db 655 third_party/tcmalloc/chromium/src/deep-heap-profile.cc for (DeepBucket* db = table_[buck]; db != 0; db = db->next) { db 656 third_party/tcmalloc/chromium/src/deep-heap-profile.cc if (db->bucket == bucket) { db 657 third_party/tcmalloc/chromium/src/deep-heap-profile.cc return db; db 662 third_party/tcmalloc/chromium/src/deep-heap-profile.cc DeepBucket* db = reinterpret_cast<DeepBucket*>(alloc_(sizeof(DeepBucket))); db 663 third_party/tcmalloc/chromium/src/deep-heap-profile.cc memset(db, 0, sizeof(*db)); db 664 third_party/tcmalloc/chromium/src/deep-heap-profile.cc db->bucket = bucket; db 666 third_party/tcmalloc/chromium/src/deep-heap-profile.cc db->type = type; db 668 third_party/tcmalloc/chromium/src/deep-heap-profile.cc db->committed_size = 0; db 669 third_party/tcmalloc/chromium/src/deep-heap-profile.cc db->is_mmap = is_mmap; db 670 third_party/tcmalloc/chromium/src/deep-heap-profile.cc db->id = (bucket_id_++); db 671 third_party/tcmalloc/chromium/src/deep-heap-profile.cc db->is_logged = false; db 672 third_party/tcmalloc/chromium/src/deep-heap-profile.cc db->next = table_[buck]; db 673 third_party/tcmalloc/chromium/src/deep-heap-profile.cc table_[buck] = db; db 674 third_party/tcmalloc/chromium/src/deep-heap-profile.cc return db; db 105 ui/gfx/color_utils.cc double db = (((vmax - b) / 6.0) + (delta / 2.0)) / delta; db 109 ui/gfx/color_utils.cc hsl->h = db - dg; db 111 ui/gfx/color_utils.cc hsl->h = (1.0 / 3.0) + dr - db; db 159 webkit/browser/appcache/appcache_database.cc bool CreateTable(sql::Connection* db, const TableInfo& info) { db 163 webkit/browser/appcache/appcache_database.cc return db->Execute(sql.c_str()); db 166 webkit/browser/appcache/appcache_database.cc bool CreateIndex(sql::Connection* db, const IndexInfo& info) { db 176 webkit/browser/appcache/appcache_database.cc return db->Execute(sql.c_str()); db 33 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kEmptyPath); db 35 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.LazyOpen(false)); db 36 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 40 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindLastStorageIds(&group_id, &cache_id, &response_id, db 48 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindOriginsWithGroups(&origins)); db 62 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kDbFile); db 63 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.LazyOpen(false)); db 64 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 70 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteExistingAndCreateNewDatabase()); db 97 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kDbFile); db 98 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 110 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kDbFile); db 111 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 126 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kDbFile); db 127 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 129 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.was_corruption_detected()); db 139 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.GetAllOriginUsage(&usage_map)); db 140 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.was_corruption_detected()); db 160 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kDbFile); db 161 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 162 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.meta_table_->SetValue(kExperimentFlagsKey, kInjectedFlags)); db 164 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.meta_table_->GetValue(kExperimentFlagsKey, &flags)); db 171 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kDbFile); db 172 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(false)); db 174 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.meta_table_->GetValue(kExperimentFlagsKey, &flags)); db 182 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kEmptyPath); db 183 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 200 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertEntry(&entry)); db 201 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.InsertEntry(&entry)); db 208 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertEntry(&entry)); db 215 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertEntry(&entry)); db 219 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindEntriesForCache(1, &found)); db 228 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.AddEntryFlags(GURL("http://blah/1"), 1, db 230 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindEntriesForCache(1, &found)); db 235 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindEntriesForCache(2, &found)); db 249 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteEntriesForCache(2)); db 250 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindEntriesForCache(2, &found)); db 254 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteEntriesForCache(1)); db 255 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.AddEntryFlags(GURL("http://blah/1"), 1, db 263 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kEmptyPath); db 264 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 272 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.FindCache(1, &record)); db 279 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertCache(&record)); db 280 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.InsertCache(&record)); db 283 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindCache(1, &record)); db 291 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindCacheForGroup(1, &record)); db 298 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteCache(1)); db 299 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.FindCache(1, &record)); db 300 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.FindCacheForGroup(1, &record)); db 302 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteCache(1)); db 309 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kEmptyPath); db 310 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 327 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.FindGroup(1, &record)); db 328 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.FindGroupForManifestUrl(kManifestUrl, &record)); db 329 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteGroup(1)); db 330 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindGroupsForOrigin(kOrigin, &records)); db 332 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.FindGroupForCache(1, &record)); db 339 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertGroup(&record)); db 340 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.InsertGroup(&record)); db 343 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.InsertGroup(&record)); db 346 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindGroup(1, &record)); db 356 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindGroupForManifestUrl(kManifestUrl, &record)); db 370 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertGroup(&record)); db 373 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindGroupForManifestUrl(kOrigin, &record)); db 382 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindGroupsForOrigin(kOrigin, &records)); db 391 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteGroup(1)); db 394 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindGroupsForOrigin(kOrigin, &records)); db 405 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindOriginsWithGroups(&origins)); db 414 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertGroup(&record)); db 417 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindOriginsWithGroups(&origins)); db 427 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertCache(&cache_record)); db 430 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindGroupForCache(1, &record)); db 440 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kEmptyPath); db 441 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 462 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForCache(1, &intercepts, &fallbacks)); db 464 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForOrigin(kFooOrigin, &intercepts, &fallbacks)); db 466 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteNamespacesForCache(1)); db 473 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertNamespace(&record)); db 474 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.InsertNamespace(&record)); db 480 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertNamespace(&record)); db 483 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForCache(1, &intercepts, &fallbacks)); db 492 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForCache(2, &intercepts, &fallbacks)); db 501 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForOrigin(kFooOrigin, &intercepts, &fallbacks)); db 514 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteNamespacesForCache(1)); db 516 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForOrigin(kFooOrigin, &intercepts, &fallbacks)); db 530 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertNamespace(&record)); db 537 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertNamespace(&record)); db 540 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForCache(3, &intercepts, &fallbacks)); db 546 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForOrigin(kBarOrigin, &intercepts, &fallbacks)); db 556 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kEmptyPath); db 557 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 568 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindOnlineWhiteListForCache(1, &records)); db 570 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteOnlineWhiteListForCache(1)); db 574 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertOnlineWhiteList(&record)); db 577 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertOnlineWhiteList(&record)); db 579 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindOnlineWhiteListForCache(1, &records)); db 590 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertOnlineWhiteList(&record)); db 592 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindOnlineWhiteListForCache(2, &records)); db 595 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteOnlineWhiteListForCache(1)); db 597 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindOnlineWhiteListForCache(1, &records)); db 603 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kEmptyPath); db 604 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 612 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.GetDeletableResponseIds(&ids, kint64max, 100)); db 615 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteDeletableResponseIds(ids)); db 616 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertDeletableResponseIds(ids)); db 619 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.GetDeletableResponseIds(&ids, kint64max, 100)); db 625 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindLastStorageIds(&unused, &unused, &unused, db 634 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.InsertDeletableResponseIds(ids)); db 639 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertDeletableResponseIds(ids)); db 640 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindLastStorageIds(&unused, &unused, &unused, db 645 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.GetDeletableResponseIds(&ids, kint64max, 100)); db 652 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.GetDeletableResponseIds(&ids, kint64max, 5)); db 659 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.GetDeletableResponseIds(&ids, 5, 100)); db 665 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.DeleteDeletableResponseIds(ids)); db 667 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.GetDeletableResponseIds(&ids, kint64max, 100)); db 683 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kEmptyPath); db 684 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 687 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_EQ(0, db.GetOriginUsage(kOrigin)); db 688 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindCachesForOrigin(kOrigin, &cache_records)); db 695 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertGroup(&group_record)); db 702 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertCache(&cache_record)); db 704 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_EQ(100, db.GetOriginUsage(kOrigin)); db 709 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertGroup(&group_record)); db 715 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertCache(&cache_record)); db 717 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_EQ(1100, db.GetOriginUsage(kOrigin)); db 722 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertGroup(&group_record)); db 728 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.InsertCache(&cache_record)); db 730 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_EQ(5000, db.GetOriginUsage(kOtherOrigin)); db 732 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindCachesForOrigin(kOrigin, &cache_records)); db 735 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindCachesForOrigin(kOtherOrigin, &cache_records)); db 739 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.GetAllOriginUsage(&usage_map)); db 927 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kDbFile); db 928 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 930 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.db_->DoesTableExist("FallbackNameSpaces")); db 931 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.db_->DoesIndexExist("FallbackNamesSpacesCacheIndex")); db 932 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.db_->DoesIndexExist("FallbackNameSpacesOriginIndex")); db 933 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_FALSE(db.db_->DoesIndexExist("FallbackNameSpacesCacheAndUrlIndex")); db 935 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.db_->DoesTableExist("Namespaces")); db 936 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.db_->DoesIndexExist("NamespacesCacheIndex")); db 937 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.db_->DoesIndexExist("NamespacesOriginIndex")); db 938 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.db_->DoesIndexExist("NamespacesCacheAndUrlIndex")); db 939 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.db_->DoesColumnExist("Namespaces", "is_pattern")); db 940 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.db_->DoesColumnExist("OnlineWhiteLists", "is_pattern")); db 942 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_EQ(5, db.meta_table_->GetVersionNumber()); db 943 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_EQ(5, db.meta_table_->GetCompatibleVersionNumber()); db 947 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForOrigin(kMockOrigin, &intercepts, db 1172 webkit/browser/appcache/appcache_database_unittest.cc AppCacheDatabase db(kDbFile); db 1173 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 1174 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.db_->DoesColumnExist("Namespaces", "is_pattern")); db 1175 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.db_->DoesColumnExist("OnlineWhiteLists", "is_pattern")); db 1176 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_EQ(5, db.meta_table_->GetVersionNumber()); db 1177 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_EQ(5, db.meta_table_->GetCompatibleVersionNumber()); db 1181 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindNamespacesForOrigin(kMockOrigin, &intercepts, db 1187 webkit/browser/appcache/appcache_database_unittest.cc EXPECT_TRUE(db.FindOnlineWhiteListForCache(kWhitelistCacheId, &whitelists)); db 640 webkit/browser/database/database_tracker.cc for (std::set<base::string16>::const_iterator db = ori->second.begin(); db 641 webkit/browser/database/database_tracker.cc db != ori->second.end(); ++db) db 642 webkit/browser/database/database_tracker.cc ScheduleDatabaseForDeletion(ori->first, *db); db 691 webkit/browser/database/database_tracker.cc for (std::vector<DatabaseDetails>::const_iterator db = details.begin(); db 692 webkit/browser/database/database_tracker.cc db != details.end(); ++db) { db 693 webkit/browser/database/database_tracker.cc base::FilePath db_file = GetFullDBFilePath(*ori, db->database_name); db 700 webkit/browser/database/database_tracker.cc if (database_connections_.IsDatabaseOpened(*ori, db->database_name)) db 701 webkit/browser/database/database_tracker.cc to_be_deleted[*ori].insert(db->database_name); db 703 webkit/browser/database/database_tracker.cc DeleteClosedDatabase(*ori, db->database_name); db 728 webkit/browser/database/database_tracker.cc for (std::vector<DatabaseDetails>::const_iterator db = details.begin(); db 729 webkit/browser/database/database_tracker.cc db != details.end(); ++db) { db 731 webkit/browser/database/database_tracker.cc if (database_connections_.IsDatabaseOpened(origin, db->database_name)) db 732 webkit/browser/database/database_tracker.cc to_be_deleted[origin].insert(db->database_name); db 734 webkit/browser/database/database_tracker.cc DeleteClosedDatabase(origin, db->database_name); db 31 webkit/browser/database/databases_table.h explicit DatabasesTable(sql::Connection* db) : db_(db) { } db 27 webkit/browser/database/databases_table_unittest.cc static bool DatabasesTableIsEmpty(sql::Connection* db) { db 28 webkit/browser/database/databases_table_unittest.cc sql::Statement statement(db->GetCachedStatement( db 35 webkit/browser/database/databases_table_unittest.cc sql::Connection db; db 46 webkit/browser/database/databases_table_unittest.cc EXPECT_TRUE(db.OpenInMemory()); db 47 webkit/browser/database/databases_table_unittest.cc DatabasesTable databases_table(&db); db 51 webkit/browser/database/databases_table_unittest.cc EXPECT_TRUE(DatabasesTableIsEmpty(&db)); db 94 webkit/browser/fileapi/obfuscated_file_util.cc void TouchDirectory(SandboxDirectoryDatabase* db, FileId dir_id) { db 95 webkit/browser/fileapi/obfuscated_file_util.cc DCHECK(db); db 96 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->UpdateModificationTime(dir_id, base::Time::Now())) db 114 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db, db 119 webkit/browser/fileapi/obfuscated_file_util.cc : db_(db), db 303 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, true); db 304 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 308 webkit/browser/fileapi/obfuscated_file_util.cc if (db->GetFileWithPath(url.path(), &file_id)) { db 310 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileInfo(file_id, &file_info)) { db 321 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(VirtualPath::DirName(url.path()), &parent_id)) db 347 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, true); db 348 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 352 webkit/browser/fileapi/obfuscated_file_util.cc if (db->GetFileWithPath(url.path(), &file_id)) { db 356 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileInfo(file_id, &file_info)) { db 373 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetChildWithName(parent_id, name, &parent_id)) db 376 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->IsDirectory(parent_id)) db 391 webkit/browser/fileapi/obfuscated_file_util.cc base::File::Error error = db->AddFileInfo(file_info, &parent_id); db 399 webkit/browser/fileapi/obfuscated_file_util.cc TouchDirectory(db, file_info.parent_id); db 410 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, false); db 411 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 414 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(url.path(), &file_id)) db 417 webkit/browser/fileapi/obfuscated_file_util.cc return GetFileInfoInternal(db, context, url, db 433 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, false); db 434 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 437 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(url.path(), &file_id)) db 440 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileInfo(file_id, &file_info) || file_info.is_directory()) { db 457 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, false); db 458 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 461 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(url.path(), &file_id)) db 465 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileInfo(file_id, &file_info)) { db 470 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->UpdateModificationTime(file_id, last_modified_time)) db 512 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(src_url, true); db 513 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 517 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(src_url.path(), &src_file_id)) db 521 webkit/browser/fileapi/obfuscated_file_util.cc bool overwrite = db->GetFileWithPath(dest_url.path(), db 528 webkit/browser/fileapi/obfuscated_file_util.cc db, context, src_url, src_file_id, db 540 webkit/browser/fileapi/obfuscated_file_util.cc db, context, dest_url, dest_file_id, db 551 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(VirtualPath::DirName(dest_url.path()), db 603 webkit/browser/fileapi/obfuscated_file_util.cc if (db->OverwritingMoveFile(src_file_id, dest_file_id)) { db 612 webkit/browser/fileapi/obfuscated_file_util.cc if (db->UpdateFileInfo(src_file_id, dest_file_info)) db 635 webkit/browser/fileapi/obfuscated_file_util.cc TouchDirectory(db, src_file_info.parent_id); db 638 webkit/browser/fileapi/obfuscated_file_util.cc TouchDirectory(db, dest_file_info.parent_id); db 648 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(dest_url, true); db 649 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 657 webkit/browser/fileapi/obfuscated_file_util.cc bool overwrite = db->GetFileWithPath(dest_url.path(), db 665 webkit/browser/fileapi/obfuscated_file_util.cc db, context, dest_url, dest_file_id, db 676 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(VirtualPath::DirName(dest_url.path()), db 720 webkit/browser/fileapi/obfuscated_file_util.cc TouchDirectory(db, dest_file_info.parent_id); db 727 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, true); db 728 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 731 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(url.path(), &file_id)) db 738 webkit/browser/fileapi/obfuscated_file_util.cc db, context, url, file_id, &file_info, &platform_file_info, &local_path); db 748 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->RemoveFileInfo(file_id)) { db 753 webkit/browser/fileapi/obfuscated_file_util.cc TouchDirectory(db, file_info.parent_id); db 770 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, true); db 771 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 775 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(url.path(), &file_id)) db 778 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileInfo(file_id, &file_info)) { db 784 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->RemoveFileInfo(file_id)) db 789 webkit/browser/fileapi/obfuscated_file_util.cc TouchDirectory(db, file_info.parent_id); db 815 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(root_url, false); db 816 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) { db 820 webkit/browser/fileapi/obfuscated_file_util.cc new ObfuscatedFileEnumerator(db, context, this, root_url, recursive)); db 826 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, false); db 827 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 830 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(url.path(), &file_id)) db 833 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileInfo(file_id, &file_info)) { db 842 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->ListChildren(file_id, &children)) db 979 webkit/browser/fileapi/obfuscated_file_util.cc scoped_ptr<SandboxDirectoryDatabase> db( db 981 webkit/browser/fileapi/obfuscated_file_util.cc if (db->Init(SandboxDirectoryDatabase::FAIL_ON_CORRUPTION)) { db 982 webkit/browser/fileapi/obfuscated_file_util.cc directories_[GetDirectoryDatabaseKey(origin, type_string)] = db.release(); db 1006 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db, db 1013 webkit/browser/fileapi/obfuscated_file_util.cc DCHECK(db); db 1018 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileInfo(file_id, local_info)) { db 1047 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->RemoveFileInfo(file_id)) db 1060 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(dest_url, true); db 1068 webkit/browser/fileapi/obfuscated_file_util.cc error = GenerateNewLocalPath(db, context, dest_url, &dest_local_path); db 1126 webkit/browser/fileapi/obfuscated_file_util.cc error = db->AddFileInfo(*dest_file_info, &file_id); db 1136 webkit/browser/fileapi/obfuscated_file_util.cc TouchDirectory(db, dest_file_info->parent_id); db 1316 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db, db 1322 webkit/browser/fileapi/obfuscated_file_util.cc if (!db || !db->GetNextInteger(&number)) db 1352 webkit/browser/fileapi/obfuscated_file_util.cc SandboxDirectoryDatabase* db = GetDirectoryDatabase(url, true); db 1353 webkit/browser/fileapi/obfuscated_file_util.cc if (!db) db 1356 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(url.path(), &file_id)) { db 1362 webkit/browser/fileapi/obfuscated_file_util.cc if (!db->GetFileWithPath(VirtualPath::DirName(url.path()), db 1391 webkit/browser/fileapi/obfuscated_file_util.cc db, context, url, file_id, &file_info, &platform_file_info, &local_path); db 259 webkit/browser/fileapi/obfuscated_file_util.h SandboxDirectoryDatabase* db, db 320 webkit/browser/fileapi/obfuscated_file_util.h SandboxDirectoryDatabase* db, db 141 webkit/browser/fileapi/sandbox_directory_database.cc leveldb::DB* db, db 174 webkit/browser/fileapi/sandbox_directory_database.cc leveldb::DB* db, db 176 webkit/browser/fileapi/sandbox_directory_database.cc : dir_db_(dir_db), db_(db), path_(path), db 730 webkit/browser/fileapi/sandbox_directory_database.cc leveldb::DB* db; db 731 webkit/browser/fileapi/sandbox_directory_database.cc leveldb::Status status = leveldb::DB::Open(options, path, &db); db 734 webkit/browser/fileapi/sandbox_directory_database.cc db_.reset(db); db 105 webkit/browser/fileapi/sandbox_directory_database_unittest.cc return db()->RepairDatabase( db 117 webkit/browser/fileapi/sandbox_directory_database_unittest.cc ASSERT_TRUE(db()->db_->Put( db 127 webkit/browser/fileapi/sandbox_directory_database_unittest.cc ASSERT_TRUE(db()->GetFileInfo(file_id, &file_info)); db 128 webkit/browser/fileapi/sandbox_directory_database_unittest.cc ASSERT_TRUE(db()->db_->Delete( db 146 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->GetFileInfo(file_id, &info)); db 152 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileInfo(file_id, &info)); db 169 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id)); db 194 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id0)); db 197 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->UpdateFileInfo(file_id0, info)); db 199 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->UpdateFileInfo(file_id0, info)); db 210 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id0)); db 212 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id1)); db 214 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->UpdateFileInfo(file_id1, info)); db 216 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->UpdateFileInfo(file_id1, info)); db 228 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id0)); db 231 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id1)); db 234 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->UpdateFileInfo(file_id1, info)); db 236 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->UpdateFileInfo(file_id1, info)); db 240 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->UpdateFileInfo(file_id1, info)); db 249 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id0)); db 251 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id1)); db 252 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->RemoveFileInfo(file_id0)); db 253 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->RemoveFileInfo(file_id1)); db 254 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->RemoveFileInfo(file_id0)); db 265 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id0)); db 268 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id1)); db 272 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->GetChildWithName(0, name1, &check_file_id)); db 273 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetChildWithName(0, name0, &check_file_id)); db 275 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->GetChildWithName(file_id0, name0, &check_file_id)); db 276 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetChildWithName(file_id0, name1, &check_file_id)); db 291 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id0)); db 294 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id1)); db 298 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id2)); db 304 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileWithPath(path, &check_file_id)); db 308 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileWithPath(path, &check_file_id)); db 312 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileWithPath(path, &check_file_id)); db 319 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->ListChildren(0, &children)); db 327 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id0)); db 328 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->ListChildren(0, &children)); db 335 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id1)); db 336 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->ListChildren(0, &children)); db 346 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->ListChildren(file_id0, &children)); db 354 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id2)); db 355 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->ListChildren(file_id0, &children)); db 361 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info, &file_id3)); db 362 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->ListChildren(file_id0, &children)); db 379 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info0, &file_id)); db 381 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileInfo(file_id, &info1)); db 389 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->UpdateModificationTime(file_id, base::Time::UnixEpoch())); db 390 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileInfo(file_id, &info1)); db 399 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->UpdateModificationTime(999, base::Time::UnixEpoch())); db 405 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->GetFileInfo(file_id, &info0)); db 410 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info0, &file_id)); db 412 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileInfo(file_id, &info1)); db 427 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info0, &directory_id)); db 435 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info1, &file_id)); db 437 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->OverwritingMoveFile(directory_id, file_id)); db 447 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info0, &file_id)); db 454 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info1, &directory_id)); db 456 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->OverwritingMoveFile(file_id, directory_id)); db 466 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info0, &file_id0)); db 472 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(dir_info, &dir_id)); db 480 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_EQ(base::File::FILE_OK, db()->AddFileInfo(info1, &file_id1)); db 482 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->OverwritingMoveFile(file_id0, file_id1)); db 487 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->GetFileWithPath(base::FilePath(info0.name), &check_id)); db 488 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileWithPath( db 490 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetFileInfo(check_id, &check_info)); db 497 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetNextInteger(&next)); db 499 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetNextInteger(&next)); db 502 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetNextInteger(&next)); db 504 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetNextInteger(&next)); db 507 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetNextInteger(&next)); db 512 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 515 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetNextInteger(&next)); db 517 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 527 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 535 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 538 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->IsFileSystemConsistent()); db 545 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 547 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 553 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 561 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 565 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 567 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->IsFileSystemConsistent()); db 577 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 579 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->IsFileSystemConsistent()); db 588 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 591 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->IsFileSystemConsistent()); db 601 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 603 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->IsFileSystemConsistent()); db 619 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->IsFileSystemConsistent()); db 622 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetChildWithName(0, kFileName, &file_id)); db 625 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 642 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->IsFileSystemConsistent()); db 645 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->GetChildWithName(0, kFileName, &file_id)); db 646 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 663 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_FALSE(db()->IsFileSystemConsistent()); db 666 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->GetChildWithName(0, kFileName, &file_id)); db 669 webkit/browser/fileapi/sandbox_directory_database_unittest.cc EXPECT_TRUE(db()->IsFileSystemConsistent()); db 85 webkit/browser/fileapi/sandbox_origin_database.cc leveldb::DB* db; db 86 webkit/browser/fileapi/sandbox_origin_database.cc leveldb::Status status = leveldb::DB::Open(options, path, &db); db 89 webkit/browser/fileapi/sandbox_origin_database.cc db_.reset(db); db 40 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 41 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.LazyOpen(false)); db 42 webkit/browser/quota/quota_database_unittest.cc ASSERT_TRUE(db.LazyOpen(true)); db 43 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.db_.get()); db 56 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 57 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 58 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.db_.get()); db 62 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.DumpQuotaTable( db 68 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 69 webkit/browser/quota/quota_database_unittest.cc ASSERT_TRUE(db.LazyOpen(true)); db 76 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.GetHostQuota(kHost, kStorageTypeTemporary, "a)); db 77 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.GetHostQuota(kHost, kStorageTypePersistent, "a)); db 80 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetHostQuota(kHost, kStorageTypeTemporary, kQuota1)); db 81 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetHostQuota(kHost, kStorageTypeTemporary, "a)); db 85 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetHostQuota(kHost, kStorageTypeTemporary, kQuota2)); db 86 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetHostQuota(kHost, kStorageTypeTemporary, "a)); db 90 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.GetHostQuota(kHost, kStorageTypePersistent, "a)); db 93 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.DeleteHostQuota(kHost, kStorageTypeTemporary)); db 94 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.GetHostQuota(kHost, kStorageTypeTemporary, "a)); db 98 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 99 webkit/browser/quota/quota_database_unittest.cc ASSERT_TRUE(db.LazyOpen(true)); db 107 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.GetQuotaConfigValue(kTempQuotaKey, &value)); db 108 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.GetQuotaConfigValue(kAvailSpaceKey, &value)); db 110 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetQuotaConfigValue(kTempQuotaKey, kValue1)); db 111 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetQuotaConfigValue(kTempQuotaKey, &value)); db 114 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetQuotaConfigValue(kTempQuotaKey, kValue2)); db 115 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetQuotaConfigValue(kTempQuotaKey, &value)); db 118 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetQuotaConfigValue(kAvailSpaceKey, kValue1)); db 119 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetQuotaConfigValue(kAvailSpaceKey, &value)); db 122 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetQuotaConfigValue(kAvailSpaceKey, kValue2)); db 123 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetQuotaConfigValue(kAvailSpaceKey, &value)); db 128 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 129 webkit/browser/quota/quota_database_unittest.cc ASSERT_TRUE(db.LazyOpen(true)); db 133 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetLRUOrigin(kStorageTypeTemporary, exceptions, db 143 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastAccessTime( db 145 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastAccessTime( db 147 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastAccessTime( db 151 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastAccessTime( db 154 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetLRUOrigin(kStorageTypeTemporary, exceptions, db 164 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetLRUOrigin( db 169 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetLRUOrigin(kStorageTypeTemporary, exceptions, db 174 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetLRUOrigin(kStorageTypeTemporary, exceptions, db 179 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetLRUOrigin(kStorageTypeTemporary, exceptions, db 183 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastAccessTime( db 187 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.DeleteOriginInfo(kOrigin3, kStorageTypeTemporary)); db 191 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetLRUOrigin(kStorageTypeTemporary, exceptions, db 197 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetLRUOrigin(kStorageTypeTemporary, exceptions, db 203 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 204 webkit/browser/quota/quota_database_unittest.cc ASSERT_TRUE(db.LazyOpen(true)); db 207 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetOriginsModifiedSince( db 216 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastModifiedTime( db 218 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastModifiedTime( db 220 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastModifiedTime( db 223 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetOriginsModifiedSince( db 230 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetOriginsModifiedSince( db 237 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetOriginsModifiedSince( db 244 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetOriginsModifiedSince( db 249 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastModifiedTime( db 253 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetOriginsModifiedSince( db 261 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastModifiedTime( db 264 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetOriginsModifiedSince( db 271 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.GetOriginsModifiedSince( db 280 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 288 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.RegisterInitialOriginInfo(origins, kStorageTypeTemporary)); db 291 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.FindOriginUsedCount(GURL("http://a/"), db 296 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginLastAccessTime( db 300 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.FindOriginUsedCount(GURL("http://a/"), db 305 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.RegisterInitialOriginInfo(origins, kStorageTypeTemporary)); db 308 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.FindOriginUsedCount(GURL("http://a/"), db 337 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 338 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 339 webkit/browser/quota/quota_database_unittest.cc AssignQuotaTable(db.db_.get(), begin, end); db 340 webkit/browser/quota/quota_database_unittest.cc db.Commit(); db 344 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.DumpQuotaTable( db 360 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 361 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.LazyOpen(true)); db 362 webkit/browser/quota/quota_database_unittest.cc AssignOriginInfoTable(db.db_.get(), begin, end); db 363 webkit/browser/quota/quota_database_unittest.cc db.Commit(); db 367 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.DumpOriginInfoTable( db 374 webkit/browser/quota/quota_database_unittest.cc void AssignQuotaTable(sql::Connection* db, Iterator itr, Iterator end) { db 375 webkit/browser/quota/quota_database_unittest.cc ASSERT_NE(db, (sql::Connection*)NULL); db 382 webkit/browser/quota/quota_database_unittest.cc statement.Assign(db->GetCachedStatement(SQL_FROM_HERE, kSql)); db 393 webkit/browser/quota/quota_database_unittest.cc void AssignOriginInfoTable(sql::Connection* db, Iterator itr, Iterator end) { db 394 webkit/browser/quota/quota_database_unittest.cc ASSERT_NE(db, (sql::Connection*)NULL); db 401 webkit/browser/quota/quota_database_unittest.cc statement.Assign(db->GetCachedStatement(SQL_FROM_HERE, kSql)); db 413 webkit/browser/quota/quota_database_unittest.cc bool OpenDatabase(sql::Connection* db, const base::FilePath& kDbFile) { db 415 webkit/browser/quota/quota_database_unittest.cc return db->OpenInMemory(); db 419 webkit/browser/quota/quota_database_unittest.cc if (!db->Open(kDbFile)) db 421 webkit/browser/quota/quota_database_unittest.cc db->Preload(); db 430 webkit/browser/quota/quota_database_unittest.cc scoped_ptr<sql::Connection> db(new sql::Connection); db 462 webkit/browser/quota/quota_database_unittest.cc ASSERT_TRUE(OpenDatabase(db.get(), kDbFile)); db 464 webkit/browser/quota/quota_database_unittest.cc db.get(), meta_table.get(), db 471 webkit/browser/quota/quota_database_unittest.cc db->BeginTransaction(); db 472 webkit/browser/quota/quota_database_unittest.cc AssignQuotaTable(db.get(), entries, entries + entries_size); db 473 webkit/browser/quota/quota_database_unittest.cc db->CommitTransaction(); db 531 webkit/browser/quota/quota_database_unittest.cc QuotaDatabase db(kDbFile); db 533 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.IsOriginDatabaseBootstrapped()); db 534 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginDatabaseBootstrapped(true)); db 535 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.IsOriginDatabaseBootstrapped()); db 536 webkit/browser/quota/quota_database_unittest.cc EXPECT_TRUE(db.SetOriginDatabaseBootstrapped(false)); db 537 webkit/browser/quota/quota_database_unittest.cc EXPECT_FALSE(db.IsOriginDatabaseBootstrapped());