Пример #1
0
    void OdbcOperation::InvokeBackground()
    {
        failed = !TryInvokeOdbc();

        if( failed ) {

            failure = connection->LastError();
        }
    }
Пример #2
0
 void OdbcOperation::InvokeBackground()
 {
     try
     {
         completed = TryInvokeOdbc();
     }
     catch (exception& error)
     {
         completed = true;
         failed = true;
         failure = error;
     }
 }