Skip to content

Commit fe0b9ff

Browse files
committed
Retry nested statements
1 parent 8f7d201 commit fe0b9ff

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

hazelcast/test/src/sql_test.cpp

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,9 @@ class SqlTest
428428

429429
std::shared_ptr<sql::sql_result> select_all(int cursor_size = 10)
430430
{
431-
sql::sql_statement statement{ client,
432-
(boost::format(
433-
R"(
434-
SELECT * FROM %1%
435-
)") % map_name)
436-
.str() };
431+
sql::sql_statement statement{
432+
client, (boost::format(R"(SELECT * FROM %1%)") % map_name).str()
433+
};
437434

438435
statement.cursor_buffer_size(cursor_size);
439436
return client.get_sql().execute(statement).get();
@@ -935,12 +932,9 @@ TEST_F(SqlTest, calling_iterator_next_consecutively)
935932
(void)populate_map(map, 100);
936933

937934
auto handler = [this]() {
938-
sql::sql_statement statement{ client,
939-
(boost::format(
940-
R"(
941-
SELECT * FROM %1%
942-
)") % map_name)
943-
.str() };
935+
sql::sql_statement statement{
936+
client, (boost::format(R"(SELECT * FROM %1%)") % map_name).str()
937+
};
944938

945939
statement.cursor_buffer_size(10);
946940
auto result = client.get_sql().execute(statement).get();
@@ -971,12 +965,9 @@ TEST_F(SqlTest, calling_next_after_last_page_is_retrieved)
971965
create_mapping();
972966
(void)populate_map(map, 100);
973967

974-
sql::sql_statement statement{ client,
975-
(boost::format(
976-
R"(
977-
SELECT * FROM %1%
978-
)") % map_name)
979-
.str() };
968+
sql::sql_statement statement{
969+
client, (boost::format(R"(SELECT * FROM %1%)") % map_name).str()
970+
};
980971

981972
statement.cursor_buffer_size(10);
982973

0 commit comments

Comments
 (0)