native MySQL, ODBC, Nullable; OSX compile, tests and fixes

This commit is contained in:
Aleksandar Fabijanic
2012-09-22 02:16:58 +00:00
parent f36a12d0f1
commit 26d488044c
13 changed files with 68 additions and 56 deletions

View File

@@ -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);
}