First Commit
This commit is contained in:
commit
dbdc5bcc4a
1791 files changed
+489451
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#include <pqxx/nontransaction>
|
||||
#include <pqxx/subtransaction>
|
||||
|
||||
#include "../test_helpers.hxx"
|
||||
|
||||
namespace
|
||||
{
|
||||
void test_simultaneous_transactions()
|
||||
{
|
||||
pqxx::connection conn;
|
||||
|
||||
pqxx::nontransaction n1{conn};
|
||||
PQXX_CHECK_THROWS(
|
||||
pqxx::nontransaction n2{conn}, std::logic_error,
|
||||
"Allowed to open simultaneous nontransactions.");
|
||||
}
|
||||
|
||||
|
||||
PQXX_REGISTER_TEST(test_simultaneous_transactions);
|
||||
} // namespace
|
||||
Reference in new issue
Block a user