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
+24
View File
@@ -0,0 +1,24 @@
#include <pqxx/transaction>
#include "test_helpers.hxx"
using namespace pqxx;
// Simple test program for libpqxx. Issue invalid query and handle error.
namespace
{
void test_056()
{
connection conn;
work tx{conn};
quiet_errorhandler d(conn);
PQXX_CHECK_THROWS(
tx.exec("DELIBERATELY INVALID TEST QUERY..."), sql_error,
"SQL syntax error did not raise expected exception.");
}
PQXX_REGISTER_TEST(test_056);
} // namespace