void OdbcOperation::InvokeBackground() { failed = !TryInvokeOdbc(); if( failed ) { failure = connection->LastError(); } }
void OdbcOperation::InvokeBackground() { try { completed = TryInvokeOdbc(); } catch (exception& error) { completed = true; failed = true; failure = error; } }