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/filldotrun.C

    r6970 r7112  
    107107    TString query;
    108108
    109     query = Form("SELECT f%sKEY FROM MyMagic.%s WHERE f%sName='%s'", col, col, col, name);
     109    query = Form("SELECT f%sKEY FROM %s WHERE f%sName='%s'", col, col, col, name);
    110110    TSQLResult *res = serv.Query(query);
    111111    if (!res)
     
    124124        return -1;
    125125
    126     query = Form("INSERT MyMagic.%s (f%sName) VALUES (\"%s\");", col, col, name);
     126    query = Form("INSERT %s (f%sName) VALUES (\"%s\");", col, col, name);
    127127
    128128    if (dummy)
     
    213213        //cout << "RunNo: " << runnumber << " ";
    214214
    215         if (ExistStr(serv, "fRunNumber", "MyMagic.RunData", strng.Data()))
     215        if (ExistStr(serv, "fRunNumber", "RunData", strng.Data()))
    216216        {
    217217            // FIXME: Maybe we can implement an switch to update mode?
     
    528528        //assemlbe the query that is needed to insert the values of this run
    529529        TString query;
    530         query += "INSERT MyMagic.RunData SET ";
     530        query += "INSERT RunData SET ";
    531531
    532532        query += Form("fRunNumber=%d, ",  runnumber);
     
    573573
    574574        //create entry in table RunProcessStatus for this runnumber
    575         TString query2=Form("INSERT MyMagic.RunProcessStatus SET fRunNumber=%d, fTimingCorrection='1970-01-01 00:00:00'",
     575        TString query2=Form("INSERT RunProcessStatus SET fRunNumber=%d, fTimingCorrection='1970-01-01 00:00:00'",
    576576                    runnumber);
    577577        res = serv.Query(query2);
Note: See TracChangeset for help on using the changeset viewer.