mirror of
https://github.com/boostorg/mysql.git
synced 2026-02-17 13:52:18 +00:00
Merge branch 'develop' into buffering
This commit is contained in:
@@ -51,11 +51,13 @@ environment:
|
||||
PLATFORM: x64
|
||||
B2_TOOLSET: msvc-14.2
|
||||
B2_CXXSTD: 20
|
||||
B2_VARIANT: release
|
||||
- FLAVOR: Visual Studio 2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
PLATFORM: x86
|
||||
B2_TOOLSET: msvc-14.2
|
||||
B2_CXXSTD: 20
|
||||
B2_VARIANT: debug
|
||||
# CMake
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
CMAKE_BUILD_TYPE: Debug
|
||||
|
||||
@@ -114,13 +114,14 @@ boost::asio::awaitable<void> start_query(
|
||||
// Read all rows
|
||||
boost::mysql::row row;
|
||||
bool more_rows = true;
|
||||
while (more_rows)
|
||||
while (true)
|
||||
{
|
||||
timer.expires_after(TIMEOUT);
|
||||
more_rows = check_timeout(co_await (
|
||||
timer.async_wait(use_awaitable) ||
|
||||
result.async_read_one(row, use_awaitable)
|
||||
));
|
||||
if (!more_rows) break;
|
||||
print_employee(row);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user