2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-13 12:32:18 +00:00

Now network tests exercise async functions

Now statement::async_execute perform adequate param checking
This commit is contained in:
ruben
2020-02-10 04:26:27 +00:00
parent f7430308f5
commit 81d6482eb7
5 changed files with 77 additions and 14 deletions

View File

@@ -33,6 +33,12 @@ struct ExecuteStatementIteratorTraits
{
return stmt.execute(first, last);
}
template <typename CompletionToken>
static auto async(const tcp_prepared_statement& stmt, listit first, listit last, CompletionToken&& token)
{
return stmt.async_execute(first, last, std::forward<CompletionToken>(token));
}
};
struct ExecuteStatementIteratorTest : public NetworkTest<ExecuteStatementIteratorTraits> {};
@@ -81,6 +87,12 @@ struct ExecuteStatementContainerTraits
{
return stmt.execute(v);
}
template <typename CompletionToken>
static auto async(const tcp_prepared_statement& stmt, const std::vector<value>& v, CompletionToken&& token)
{
return stmt.async_execute(v, std::forward<CompletionToken>(token));
}
};
struct ExecuteStatementContainerTest : public NetworkTest<ExecuteStatementContainerTraits> {};