diff --git a/.appveyor.yml b/.appveyor.yml index 93fa0b48..3535ef54 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -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 diff --git a/example/timeouts.cpp b/example/timeouts.cpp index a9e5c655..cc9e2161 100644 --- a/example/timeouts.cpp +++ b/example/timeouts.cpp @@ -114,13 +114,14 @@ boost::asio::awaitable 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); }