mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 15:17:13 +02:00
Update POCO to 1.11.0
This commit is contained in:
@ -30,6 +30,7 @@
|
||||
#include "Poco/Data/SQLite/SQLiteException.h"
|
||||
#include "Poco/Tuple.h"
|
||||
#include "Poco/Any.h"
|
||||
#include "Poco/UUIDGenerator.h"
|
||||
#include "Poco/SharedPtr.h"
|
||||
#include "Poco/DynamicAny.h"
|
||||
#include "Poco/DateTime.h"
|
||||
@ -1916,6 +1917,21 @@ void SQLiteTest::testDateTime()
|
||||
}
|
||||
|
||||
|
||||
void SQLiteTest::testUUID()
|
||||
{
|
||||
Session tmp (Poco::Data::SQLite::Connector::KEY, "dummy.db");
|
||||
tmp << "DROP TABLE IF EXISTS Ids", now;
|
||||
tmp << "CREATE TABLE Ids (id0 UUID)", now;
|
||||
|
||||
Poco::UUID uuid = Poco::UUIDGenerator::defaultGenerator().createRandom();
|
||||
tmp << "INSERT INTO Ids VALUES (?)", use(uuid), now;
|
||||
|
||||
Poco::UUID ruuid;
|
||||
tmp << "SELECT * FROM Ids", into(ruuid), now;
|
||||
assertTrue (ruuid == uuid);
|
||||
}
|
||||
|
||||
|
||||
void SQLiteTest::testInternalExtraction()
|
||||
{
|
||||
Session tmp (Poco::Data::SQLite::Connector::KEY, "dummy.db");
|
||||
@ -3453,6 +3469,7 @@ CppUnit::Test* SQLiteTest::suite()
|
||||
CppUnit_addTest(pSuite, SQLiteTest, testTuple1);
|
||||
CppUnit_addTest(pSuite, SQLiteTest, testTupleVector1);
|
||||
CppUnit_addTest(pSuite, SQLiteTest, testDateTime);
|
||||
CppUnit_addTest(pSuite, SQLiteTest, testUUID);
|
||||
CppUnit_addTest(pSuite, SQLiteTest, testInternalExtraction);
|
||||
CppUnit_addTest(pSuite, SQLiteTest, testPrimaryKeyConstraint);
|
||||
CppUnit_addTest(pSuite, SQLiteTest, testNullable);
|
||||
|
@ -100,6 +100,8 @@ public:
|
||||
|
||||
void testDateTime();
|
||||
|
||||
void testUUID();
|
||||
|
||||
void testInternalExtraction();
|
||||
void testPrimaryKeyConstraint();
|
||||
void testNullable();
|
||||
|
Reference in New Issue
Block a user