mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 05:53:09 +00:00
be7ce4110e
This reverts commit e96515433d
.
21 lines
405 B
C++
21 lines
405 B
C++
#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
|