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

Commit f25a31c

Browse files
committed
Run formatter
1 parent 1f35dbd commit f25a31c

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

test/sql/insert_sql_test.cpp

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -576,32 +576,28 @@ TEST_F(InsertSQLTests, BadTypes) {
576576
std::unique_ptr<optimizer::AbstractOptimizer> optimizer(
577577
new optimizer::Optimizer());
578578

579-
std::string create_table("CREATE TABLE foo (id1 int, id2 bigint,"
580-
"id3 smallint, id4 tinyint,"
581-
"id5 decimal);");
579+
std::string create_table(
580+
"CREATE TABLE foo (id1 int, id2 bigint,"
581+
"id3 smallint, id4 tinyint,"
582+
"id5 decimal);");
582583
TestingSQLUtil::ExecuteSQLQuery(create_table);
583584
// Insert an unconvertible int.
584585
std::string query("INSERT INTO(id) foo VALUES('h');");
585586
txn = txn_manager.BeginTransaction();
586-
EXPECT_THROW(
587-
TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
588-
peloton::Exception);
587+
EXPECT_THROW(TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
588+
peloton::Exception);
589589
query = "INSERT INTO foo(id2) VALUES('h');";
590-
EXPECT_THROW(
591-
TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
592-
peloton::Exception);
590+
EXPECT_THROW(TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
591+
peloton::Exception);
593592
query = "INSERT INTO foo(id3) VALUES('h');";
594-
EXPECT_THROW(
595-
TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
596-
peloton::Exception);
593+
EXPECT_THROW(TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
594+
peloton::Exception);
597595
query = "INSERT INTO foo(id4) VALUES('h');";
598-
EXPECT_THROW(
599-
TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
600-
peloton::Exception);
596+
EXPECT_THROW(TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
597+
peloton::Exception);
601598
query = "INSERT INTO foo(id5) VALUES('h');";
602-
EXPECT_THROW(
603-
TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
604-
peloton::Exception);
599+
EXPECT_THROW(TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
600+
peloton::Exception);
605601

606602
// free the database just created
607603
txn = txn_manager.BeginTransaction();

0 commit comments

Comments
 (0)