Fix for issue #2285 (#2286)

* SharePtr fix for gcc 7.2

* Fix for Poco issue #2285

* Add missing fail() to sqlite test

* Fix for testIllegalFilePath

* Update SQLiteTest.cpp
This commit is contained in:
Marian Krivoš
2018-04-14 00:25:07 +02:00
committed by Aleksandar Fabijanic
parent ad8249fc61
commit dc47e79da9
3 changed files with 21 additions and 1 deletions

View File

@@ -165,6 +165,7 @@ void SessionImpl::open(const std::string& connect)
if (sw.elapsedSeconds() >= tout)
{
close();
poco_assert(_pDB);
Utility::throwException(_pDB, rc);
}
else Thread::sleep(10);
@@ -174,6 +175,10 @@ void SessionImpl::open(const std::string& connect)
{
throw ConnectionFailedException(ex.displayText());
}
catch (AssertionViolationException& ex)
{
throw ConnectionFailedException(ex.displayText());
}
_connected = true;
}