ODBC fixes and tests (Oracle, SQL Server, MySQL on Windows)

MySQL back-end compile fixes on Windows
Nullable/NullType
This commit is contained in:
Aleksandar Fabijanic
2012-09-17 00:18:13 +00:00
parent 7029c95e07
commit 32c5b6b998
21 changed files with 572 additions and 444 deletions

View File

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