From 1357458094217f6c75e3762f2bd9c396450862db Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 22 Oct 2014 17:20:50 +0200 Subject: [PATCH] minor changes --- src/sql_tests.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/sql_tests.cpp b/src/sql_tests.cpp index 85d25ea..dabe58f 100644 --- a/src/sql_tests.cpp +++ b/src/sql_tests.cpp @@ -16,8 +16,7 @@ void SelectTest1() { - printf("Test: SelectTest1... "); - fflush(stdout); + printf("Test: SelectTest1... "); fflush(stdout); const char* sql = "SELECT age, name, address from table WHERE age < 12.5;"; Statement* sqlStatement = SQLParser::parseSQL(sql); @@ -47,8 +46,7 @@ void SelectTest1() { } void SelectTest2() { - printf("Test: SelectTest2... "); - fflush(stdout); + printf("Test: SelectTest2... "); fflush(stdout); const char* sql = "SELECT * FROM (SELECT age FROM table, table2);"; Statement* stmt = SQLParser::parseSQL(sql); @@ -73,8 +71,7 @@ void SelectTest2() { uint parse_count = 0; uint conflicts = 0; void SelectTest3(bool print) { - if (print) printf("Test: SelectTest3... "); - fflush(stdout); + if (print) { printf("Test: SelectTest3... "); fflush(stdout); } const char* sql = "SELECT name, AVG(age) FROM table GROUP BY name"; parse_count++; @@ -130,7 +127,7 @@ void Benchmark1(uint numRuns) { printf("Benchmarking... "); clock_t start, end; - const char* sql = "SELECT SUM(age), name, address FROM (SELECT age FROM table, table2) WHERE income > 10 GROUP BY age;"; + const char* sql = "SELECT SUM(age), name, address FROM (SELECT age FROM (SELECT age FROM (SELECT age FROM table, table2))) WHERE income > 10 GROUP BY age;"; start = clock(); for (uint n = 0; n < numRuns; ++n) {