Changeset 7625 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 04/04/06 17:29:06 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
r7574 r7625 350 350 query += Form("on %s.%s=%s.%s ", tabled.Data(), join.Data(), tablev.Data(), join.Data()); 351 351 352 if (!fRequestFrom.IsNull() && !fRequestTo.IsNull()) 353 query += Form("where fRunStart between '%s' and '%s' ", 352 const Bool_t interval = !fRequestFrom.IsNull() && !fRequestTo.IsNull(); 353 354 if (!fDataSet && !interval) 355 { 356 if (!query.Contains("Star.fSequenceFirst")) 357 query += "left join Star on Sequences.fSequenceFirst=Star.fSequenceFirst "; 358 query += "where Star.fEffOnTime>300 "; 359 } 360 361 if (interval) 362 { 363 query += query.Contains(" where ") ? "and " : "where "; 364 query += Form("fRunStart between '%s' and '%s' ", 354 365 fRequestFrom.Data(), fRequestTo.Data()); 366 } 355 367 356 368 query += "order by fRunStart"; 357 358 //cout << "q: " << query << endl;359 369 360 370 TSQLResult *res = fServer.Query(query);
Note:
See TracChangeset
for help on using the changeset viewer.