| Quintiq file version 2.0 | 
| #parent: #root | 
| Method FlatQuery ( | 
|   String sql | 
| ) as owning ModeledStorageQueryResult | 
| { | 
|   Description: 'Maintain by R&D' | 
|   TextBody: | 
|   [* | 
|     // rend Jan-9-2013 (created) | 
|     interface := this.ScenarioManager().dbbenchmark().Source(); | 
|     result := interface.FlatQuery(sql); | 
|      | 
|     try | 
|     { | 
|       result.NrRows(); | 
|     } | 
|     onerror | 
|     { | 
|       info( 'Query failed.' ); | 
|       info( '  SQL:', sql ); | 
|       info( e.DetailedInformation() ); | 
|       info( e.DeveloperInformation() ); | 
|       info( e.GeneralInformation() ); | 
|      | 
|       interface := this.ScenarioManager().dbbenchmark().Source(); | 
|       result := interface.FlatQuery( sql ); | 
|     } | 
|      | 
|     return &result; | 
|   *] | 
| } |