Ignore:
Timestamp:
05/30/05 19:12:54 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/doexclusions.C

    r6933 r7112  
    4545int GetRunNumber(MSQLServer &serv, TString date, TString value)
    4646{
    47     TString query(Form("SELECT %s(fRunNumber) FROM MyMagic.RunData ", value.Data()));
     47    TString query(Form("SELECT %s(fRunNumber) FROM RunData ", value.Data()));
    4848
    4949    if (date!="NULL")
     
    7777TString GetJoin(TString table)
    7878{
    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 ",
    8080                       table.Data(), table.Data(), table.Data(), table.Data()));
    8181    return query;
     
    114114    TString runcond(Form("AND fRunNumber BETWEEN %d AND %d ", startrun, stoprun));
    115115
    116     TString query="SELECT fExcludedFDAKEY from MyMagic.ExcludedFDA where fExcludedFDAAutomatic='yes'";
     116    TString query="SELECT fExcludedFDAKEY from ExcludedFDA where fExcludedFDAAutomatic='yes'";
    117117    TSQLResult *res = serv.Query(query);
    118118    if (!res)
     
    131131        TString border=rc.GetValue("key"+key+".SpecialRunCond", "");
    132132
    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()));
    134134        TSQLResult *res = serv.Query(query);
    135135        if (!res)
     
    150150        if (!join2.IsNull())
    151151            query+=Form(", f%sName", join2.Data());
    152         query +=" FROM MyMagic.RunData ";
     152        query +=" FROM RunData ";
    153153        query +=GetJoin("ExcludedFDA");
    154154        if (!join1.IsNull())
     
    177177            if (TString((*row2)[1]).IsNull() || atoi((*row2)[1])>newimp)
    178178            {
    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",
    180180                                   key.Data(), (*row2)[0]));
    181181                cout << "QU: " << query << endl;
Note: See TracChangeset for help on using the changeset viewer.