Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
No need to check table catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
pdet authored and apavlo committed Jan 4, 2018
1 parent a20354d commit e718f5a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/sql/drop_sql_test.cpp
Expand Up @@ -99,18 +99,6 @@ TEST_F(DropSQLTests, DropIndexTest) {
TestingSQLUtil::ExecuteSQLQuery(
"CREATE TABLE test(a INT PRIMARY KEY, b INT);");

// Check the table in catalog
storage::DataTable *table;
txn = txn_manager.BeginTransaction();
try {
table = catalog::Catalog::GetInstance()->GetTableWithName(DEFAULT_DB_NAME,
"test", txn);
} catch (CatalogException &e) {
table = nullptr;
}
txn_manager.CommitTransaction(txn);
EXPECT_NE(table, nullptr);

// Create a Index
TestingSQLUtil::ExecuteSQLQuery("CREATE INDEX idx ON test(a);");

Expand Down

0 comments on commit e718f5a

Please sign in to comment.