mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
see CHANGELOG
- added Poco::istring (case-insensitive string) and Poco::isubstr (case-insensitive substring search) - improved SQLite execute() return (affected rows) value - added SQLite sys.dual (in-memory system table) - applied SF Patch #120: The ExpireLRUCache does not compile with a tuple as key on Visual Studio 2010 - fixed SF Bug #599: JSON::Array and JSON::Object size() member can implicitly lose precision - fixed SF Bug #602: iterating database table rows not correct if no data in table - fixed SF Bug #603: count() is missing in HashMap - fixed GH #23: JSON::Object::stringify throw BadCastException - fixed GH #16: NetworkInterface::firstAddress() should not throw on unconfigured interfaces - Android compile/build support (by Rangel Reale) - TypeHandler::prepare() now takes const-reference
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
#include "Poco/ActiveMethod.h"
|
||||
#include "Poco/ActiveResult.h"
|
||||
#include "Poco/String.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/Data/DataException.h"
|
||||
#include "sqlite3.h"
|
||||
#include <cstdlib>
|
||||
|
||||
@@ -195,6 +195,14 @@ void SessionImpl::open(const std::string& connect)
|
||||
throw ConnectionFailedException(ex.displayText());
|
||||
}
|
||||
|
||||
if (SQLITE_OK != sqlite3_exec(_pDB,
|
||||
"attach database ':memory:' as sys;"
|
||||
"create table sys.dual (dummy);",
|
||||
0, 0, 0))
|
||||
{
|
||||
throw ExecutionException("Cannot create system database.");
|
||||
}
|
||||
|
||||
_connected = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user