mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 13:54:15 -07:00
update controller image and some dependencies
This commit is contained in:
parent
c1384422c3
commit
183a9d7088
667 changed files with 173907 additions and 17 deletions
29
ext/libpqxx-7.7.3/test/test17.cxx
Normal file
29
ext/libpqxx-7.7.3/test/test17.cxx
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include <iostream>
|
||||
|
||||
#include <pqxx/connection>
|
||||
#include <pqxx/nontransaction>
|
||||
#include <pqxx/transactor>
|
||||
|
||||
#include "test_helpers.hxx"
|
||||
|
||||
using namespace pqxx;
|
||||
|
||||
|
||||
// Simple test program for libpqxx. Open connection to database, start
|
||||
// a dummy transaction to gain nontransactional access, and perform a query.
|
||||
namespace
|
||||
{
|
||||
void test_017()
|
||||
{
|
||||
connection conn;
|
||||
perform([&conn] {
|
||||
nontransaction tx{conn};
|
||||
auto const r{tx.exec("SELECT * FROM generate_series(1, 4)")};
|
||||
PQXX_CHECK_EQUAL(std::size(r), 4, "Weird query result.");
|
||||
tx.commit();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
PQXX_REGISTER_TEST(test_017);
|
||||
} // namespace
|
Loading…
Add table
Add a link
Reference in a new issue