Ignore:
Timestamp:
07/05/06 11:41:13 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7528 r7777  
    7777    }
    7878
    79     TSQLRow *row=0;
    80     while ((row = res->Next()))
    81     {
    82 //        TString entry=(*row)[0];
    83 //        if (entry=="1970-01-01 00:00:00")
    84 //            return "";
    85         return (*row)[0];
    86     }
     79    TString rc = (*row)[0];
    8780
    88     return "";
     81    delete res;
     82
     83    return rc;
    8984}
    9085
     
    138133        cout << "run#: " << runno << endl;
    139134        //if one value returns "" (i.e. column is NULL), 0 is returned
    140         if (GetStatus(serv, rc, runno, "RunProcessStatus", "fCCFileAvail")==""
    141             || GetStatus(serv, rc, runno, "RunProcessStatus", "fCaCoFileAvail")==""
    142             || GetStatus(serv, rc, runno, "RunProcessStatus", "fCaCoFileFound")==""
    143             || GetStatus(serv, rc, runno, "RunProcessStatus", "fTimingCorrection")==""
     135        if (GetStatus(serv, rc, runno, "RunProcessStatus", "fCCFileAvail").IsNull()
     136            || GetStatus(serv, rc, runno, "RunProcessStatus", "fCaCoFileAvail").IsNull()
     137            || GetStatus(serv, rc, runno, "RunProcessStatus", "fCaCoFileFound").IsNull()
     138            || GetStatus(serv, rc, runno, "RunProcessStatus", "fTimingCorrection").IsNull()
    144139//            || GetStatus(serv, rc, runno, "RunProcessStatus", "fTimingCorrection")=="1970-01-01 00:00:00"
    145             || GetStatus(serv, rc, runno, "RunProcessStatus", "fRawFileAvail")=="")
     140            || GetStatus(serv, rc, runno, "RunProcessStatus", "fRawFileAvail").IsNull())
    146141            return 2;
    147142    }
Note: See TracChangeset for help on using the changeset viewer.