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

Commit 39751d5

Browse files
committed
Bug fix
1 parent a19037d commit 39751d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/catalog/catalog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ ResultType Catalog::CreateTable(const std::string &database_name,
397397
auto default_layout = table->GetDefaultLayout();
398398
if (!pg_layout->InsertLayout(table_oid, default_layout, pool_.get(), txn))
399399
throw CatalogException("Failed to create a new layout for table "
400-
+ table_oid);
400+
+ table_name);
401401

402402
return ResultType::SUCCESS;
403403
}

test/codegen/table_scan_translator_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "catalog/catalog.h"
14+
#include "catalog/system_catalogs.h"
1415
#include "codegen/query_compiler.h"
1516
#include "common/harness.h"
1617
#include "concurrency/transaction_manager_factory.h"
@@ -712,7 +713,7 @@ TEST_F(TableScanTranslatorTest, MultiLayoutScan) {
712713
/////////////////////////////////////////////////////////
713714
// Reset default_layout_ to LayoutType::COLUMN
714715
/////////////////////////////////////////////////////////
715-
auto txn = txn_manager.BeginTransaction();
716+
txn = txn_manager.BeginTransaction();
716717
table->ResetDefaultLayout(LayoutType::COLUMN);
717718
catalog->GetSystemCatalogs(table->GetDatabaseOid())->GetTableCatalog()
718719
->UpdateDefaultLayoutOid(table->GetDefaultLayout()->GetOid(),

0 commit comments

Comments
 (0)