mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 05:29:41 +01:00
native MySQL, ODBC, Nullable; OSX compile, tests and fixes
This commit is contained in:
@@ -118,16 +118,15 @@ void SQLChannel::log(const Message& msg)
|
||||
|
||||
void SQLChannel::logAsync(const Message& msg)
|
||||
{
|
||||
if (!_pSession || !_pSession->isConnected()) open();
|
||||
|
||||
std::size_t ret = wait();
|
||||
if (0 == ret && !_pLogStatement->done() && !_pLogStatement->initialized())
|
||||
poco_check_ptr (_pLogStatement);
|
||||
if (0 == wait() && !_pLogStatement->done() && !_pLogStatement->initialized())
|
||||
{
|
||||
if (_throw)
|
||||
throw TimeoutException("Timed out waiting for previous statement completion");
|
||||
else return;
|
||||
}
|
||||
|
||||
if (!_pSession || !_pSession->isConnected()) open();
|
||||
logSync(msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user