The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
Describe the bug
I get a weird bug with RecordSet when running my tests in debug builds in Visual C++Builder 2019. It works in release builds.
Until Poco 1.9.4 the code using the ExecuteSelectStatementFails function worked properly. Starting with Poco 1.10.0 is shows the following error (currently running Poco 1.12.5p2):
Expected behavior
I expect calling any of ExecuteSelectStatementWorks and ExecuteSelectStatementFails in the test to work properly.
Please add relevant environment information:
Visual C++ 2019 (latest update) in Windows 10
Additional context
I suspect that the reason is that one is using copy semantics and one is using move semantics and there is a bug in Poco starting with Poco 1.10.0. This version of Poco introduced C++14 support and the move assignment operator for RecordSet.
Describe the bug I get a weird bug with RecordSet when running my tests in debug builds in Visual C++Builder 2019. It works in release builds.
Until Poco 1.9.4 the code using the
ExecuteSelectStatementFails
function worked properly. Starting with Poco 1.10.0 is shows the following error (currently running Poco 1.12.5p2):To Reproduce I have a simple test in GTest:
Expected behavior I expect calling any of
ExecuteSelectStatementWorks
andExecuteSelectStatementFails
in the test to work properly.Please add relevant environment information: Visual C++ 2019 (latest update) in Windows 10
Additional context I suspect that the reason is that one is using copy semantics and one is using move semantics and there is a bug in Poco starting with Poco 1.10.0. This version of Poco introduced C++14 support and the move assignment operator for
RecordSet
.