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:
@@ -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> {};
|
||||
|
||||
Reference in New Issue
Block a user