First Commit
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled

This commit is contained in:
2025-11-19 16:23:45 +07:00
commit dbdc5bcc4a
1791 changed files with 489451 additions and 0 deletions
@@ -0,0 +1,27 @@
#include <pqxx/transaction>
#include <pqxx/internal/wait.hxx>
#include "../test_helpers.hxx"
namespace
{
void test_nonblocking_connect()
{
pqxx::connecting nbc;
while (not nbc.done())
{
pqxx::internal::wait_fd(
nbc.sock(), nbc.wait_to_read(), nbc.wait_to_write());
nbc.process();
}
pqxx::connection conn{std::move(nbc).produce()};
pqxx::work tx{conn};
PQXX_CHECK_EQUAL(tx.query_value<int>("SELECT 10"), 10, "Bad value!?");
}
PQXX_REGISTER_TEST(test_nonblocking_connect);
} // namespace