public bool Queue(QueryBuilder qbl)
 {
     qbl.autoExecute = false;
     return Queue(qbl.Compile());
 }
Exemple #2
0
 public System.Data.Odbc.OdbcDataReader getResult(QueryBuilder query)
 {
     if (this.GetDatabaseProvider() != null)
     {
         query.autoExecute = false;
         string compiledSQL = query.Compile();
         try
         {
             return this._dbProvider.getResult(compiledSQL);
         }
         catch (Exception e)
         {
             if ((e.Message.IndexOf("pending local transaction") > 0) | (e.Message.IndexOf("busy with results for another") > 0)) //quick fix.
             {
                 return this._dbProvider.getNewRawConnection().getResult(compiledSQL);
             }
             else
             {
                 //throw (e);
             }
         }
     }
     else
     {
         throw (new Exception("No database provider has been implemented for this datasource"));
     }
     return null;
 }