From 373af6a087945370fec7a48228939cf0246b4645 Mon Sep 17 00:00:00 2001 From: Ruben Perez Date: Sun, 10 Jul 2022 18:32:29 +0200 Subject: [PATCH 1/2] Fixed bug in timeouts example --- example/timeouts.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } From ca6c81e81e44f31f83b51c8d0fb1b0736cc52bb6 Mon Sep 17 00:00:00 2001 From: Ruben Perez Date: Mon, 18 Jul 2022 15:07:05 +0200 Subject: [PATCH 2/2] Further appveyor build split --- .appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) 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