mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
ODBC fixes and tests (Oracle, SQL Server, MySQL on Windows)
MySQL back-end compile fixes on Windows Nullable/NullType
This commit is contained in:
@@ -167,14 +167,16 @@ void Statement::setAsync(bool async)
|
||||
std::size_t Statement::wait(long milliseconds)
|
||||
{
|
||||
if (!_pResult) return 0;
|
||||
|
||||
bool success = true;
|
||||
if (WAIT_FOREVER != milliseconds)
|
||||
_pResult->wait(milliseconds);
|
||||
success = _pResult->tryWait(milliseconds);
|
||||
else
|
||||
_pResult->wait();
|
||||
|
||||
if (_pResult->exception())
|
||||
throw *_pResult->exception();
|
||||
else if (!success)
|
||||
throw TimeoutException("Statement timed out.");
|
||||
|
||||
return _pResult->data();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user