Changeset 7112 for trunk/MagicSoft/Mars/datacenter/macros/doexclusions.C
- Timestamp:
- 05/30/05 19:12:54 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/doexclusions.C
r6933 r7112 45 45 int GetRunNumber(MSQLServer &serv, TString date, TString value) 46 46 { 47 TString query(Form("SELECT %s(fRunNumber) FROM MyMagic.RunData ", value.Data()));47 TString query(Form("SELECT %s(fRunNumber) FROM RunData ", value.Data())); 48 48 49 49 if (date!="NULL") … … 77 77 TString GetJoin(TString table) 78 78 { 79 TString query(Form("left join MyMagic.%s ON RunData.f%sKEY=%s.f%sKEY ",79 TString query(Form("left join %s ON RunData.f%sKEY=%s.f%sKEY ", 80 80 table.Data(), table.Data(), table.Data(), table.Data())); 81 81 return query; … … 114 114 TString runcond(Form("AND fRunNumber BETWEEN %d AND %d ", startrun, stoprun)); 115 115 116 TString query="SELECT fExcludedFDAKEY from MyMagic.ExcludedFDA where fExcludedFDAAutomatic='yes'";116 TString query="SELECT fExcludedFDAKEY from ExcludedFDA where fExcludedFDAAutomatic='yes'"; 117 117 TSQLResult *res = serv.Query(query); 118 118 if (!res) … … 131 131 TString border=rc.GetValue("key"+key+".SpecialRunCond", ""); 132 132 133 TString query(Form("SELECT fExcludedFDAImportance from MyMagic.ExcludedFDA where fExcludedFDAKEY=%s ", key.Data()));133 TString query(Form("SELECT fExcludedFDAImportance from ExcludedFDA where fExcludedFDAKEY=%s ", key.Data())); 134 134 TSQLResult *res = serv.Query(query); 135 135 if (!res) … … 150 150 if (!join2.IsNull()) 151 151 query+=Form(", f%sName", join2.Data()); 152 query +=" FROM MyMagic.RunData ";152 query +=" FROM RunData "; 153 153 query +=GetJoin("ExcludedFDA"); 154 154 if (!join1.IsNull()) … … 177 177 if (TString((*row2)[1]).IsNull() || atoi((*row2)[1])>newimp) 178 178 { 179 TString query(Form("UPDATE MyMagic.RunData SET fExcludedFDAKEY=%s WHERE fRunNumber=%s",179 TString query(Form("UPDATE RunData SET fExcludedFDAKEY=%s WHERE fRunNumber=%s", 180 180 key.Data(), (*row2)[0])); 181 181 cout << "QU: " << query << endl;
Note:
See TracChangeset
for help on using the changeset viewer.