mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-16 11:48:54 +01:00
Fixed formatting in DataTest.*
This commit is contained in:
parent
bd19e0a0fe
commit
5a8613eb2a
@ -1408,13 +1408,13 @@ void DataTest::testExternalBindingAndExtraction()
|
||||
|
||||
void DataTest::testStdTuple()
|
||||
{
|
||||
using Row = std::tuple<std::string, std::string, int>;
|
||||
using Row = std::tuple<std::string, std::string, int>;
|
||||
|
||||
Session sess(SessionFactory::instance().create("test", "cs"));
|
||||
Row person = std::make_tuple(std::string("Scott"), std::string("Washington, DC"), 42);
|
||||
sess << "INSERT INTO Person(name, address, age) VALUES (?, ?, ?)", use(person), now;
|
||||
std::vector<Row> rows;
|
||||
sess << "SELECT name, address, age FROM Person", into(rows) , now;
|
||||
Session sess(SessionFactory::instance().create("test", "cs"));
|
||||
Row person = std::make_tuple(std::string("Scott"), std::string("Washington, DC"), 42);
|
||||
sess << "INSERT INTO Person(name, address, age) VALUES (?, ?, ?)", use(person), now;
|
||||
std::vector<Row> rows;
|
||||
sess << "SELECT name, address, age FROM Person", into(rows) , now;
|
||||
}
|
||||
|
||||
#endif // __cplusplus >= 201103L
|
||||
@ -1450,9 +1450,9 @@ CppUnit::Test* DataTest::suite()
|
||||
CppUnit_addTest(pSuite, DataTest, testSimpleRowFormatter);
|
||||
CppUnit_addTest(pSuite, DataTest, testJSONRowFormatter);
|
||||
CppUnit_addTest(pSuite, DataTest, testDateAndTime);
|
||||
CppUnit_addTest(pSuite, DataTest, testExternalBindingAndExtraction);
|
||||
CppUnit_addTest(pSuite, DataTest, testExternalBindingAndExtraction);
|
||||
#if __cplusplus >= 201103L
|
||||
CppUnit_addTest(pSuite, DataTest, testStdTuple);
|
||||
CppUnit_addTest(pSuite, DataTest, testStdTuple);
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
void testExternalBindingAndExtraction();
|
||||
|
||||
#if __cplusplus >= 201103L
|
||||
void testStdTuple();
|
||||
void testStdTuple();
|
||||
#endif
|
||||
|
||||
void setUp();
|
||||
|
Loading…
Reference in New Issue
Block a user