mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-21 19:27:09 +01:00
Update POCO library.
This commit is contained in:
1 parent
8d15f4b6e9
commit
233fc103f9
2521 files changed
+257092
-72789
No files matched your search
+12
-12
@@ -45,11 +45,11 @@ std::string ODBCSQLiteTest::_driver = SQLITE_ODBC_DRIVER;
|
||||
std::string ODBCSQLiteTest::_dsn = SQLITE_DSN;
|
||||
std::string ODBCSQLiteTest::_uid = "";
|
||||
std::string ODBCSQLiteTest::_pwd = "";
|
||||
std::string ODBCSQLiteTest::_connectString = "Driver=" SQLITE_ODBC_DRIVER
|
||||
std::string ODBCSQLiteTest::_connectString = "Driver=" SQLITE_ODBC_DRIVER
|
||||
";Database=" SQLITE_DB ";";
|
||||
|
||||
|
||||
ODBCSQLiteTest::ODBCSQLiteTest(const std::string& name):
|
||||
ODBCSQLiteTest::ODBCSQLiteTest(const std::string& name):
|
||||
ODBCTest(name, _pSession, _pExecutor, _dsn, _uid, _pwd, _connectString)
|
||||
{
|
||||
}
|
||||
@@ -116,7 +116,7 @@ void ODBCSQLiteTest::testAffectedRows()
|
||||
// why "WHERE 1" is necessary here
|
||||
_pExecutor->affectedRows("WHERE 1");
|
||||
i += 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ void ODBCSQLiteTest::dropObject(const std::string& type, const std::string& name
|
||||
}
|
||||
}
|
||||
|
||||
if (!ignoreError)
|
||||
if (!ignoreError)
|
||||
{
|
||||
std::cout << ex.toString() << std::endl;
|
||||
throw;
|
||||
@@ -273,15 +273,15 @@ void ODBCSQLiteTest::recreateNullsTable(const std::string& notNull)
|
||||
void ODBCSQLiteTest::recreateMiscTable()
|
||||
{
|
||||
dropObject("TABLE", "MiscTest");
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
// SQLite fails with BLOB bulk operations
|
||||
session() << "CREATE TABLE MiscTest "
|
||||
"(First VARCHAR(30),"
|
||||
//"Second BLOB,"
|
||||
"Third INTEGER,"
|
||||
"Fourth REAL,"
|
||||
"Fifth DATETIME)", now;
|
||||
"Fifth DATETIME)", now;
|
||||
} catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateMiscTable()"); }
|
||||
catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateMiscTable()"); }
|
||||
}
|
||||
@@ -292,20 +292,20 @@ void ODBCSQLiteTest::recreateLogTable()
|
||||
dropObject("TABLE", "T_POCO_LOG");
|
||||
dropObject("TABLE", "T_POCO_LOG_ARCHIVE");
|
||||
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
std::string sql = "CREATE TABLE %s "
|
||||
"(Source VARCHAR,"
|
||||
"Name VARCHAR,"
|
||||
"ProcessId INTEGER,"
|
||||
"Thread VARCHAR, "
|
||||
"ThreadId INTEGER,"
|
||||
"ThreadId INTEGER,"
|
||||
"Priority INTEGER,"
|
||||
"Text VARCHAR,"
|
||||
"DateTime DATETIME)";
|
||||
|
||||
session() << sql, "T_POCO_LOG", now;
|
||||
session() << sql, "T_POCO_LOG_ARCHIVE", now;
|
||||
session() << sql, "T_POCO_LOG", now;
|
||||
session() << sql, "T_POCO_LOG_ARCHIVE", now;
|
||||
|
||||
} catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateLogTable()"); }
|
||||
catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateLogTable()"); }
|
||||
|
||||
Reference in new issue
Block a user