Ignore:
Timestamp:
07/30/05 20:21:50 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7237 r7238  
    219219
    220220    if (sequences.At(0)==0)
    221         return DeleteSequence(serv, datapath, sequpath, sequences.At(0), dummy);
    222 //        return kTRUE;
     221        return kTRUE;
    223222
    224223
     
    279278        delete res;
    280279    }
     280
     281    query="SELECT fSequenceFirst FROM Sequences ";
     282    query += Form(" WHERE fSequenceFirst fRunNumber BETWEEN %d AND %d "
     283                  " ORDER BY fSequenceFirst", from, to);
     284
     285    res = serv.Query(query);
     286    if (!res)
     287        return kFALSE;
     288
     289    Int_t sequ=0;
     290    while ((row=res->Next()))
     291    {
     292        sequ=atoi((*row)[0]);
     293        cout << "deleting sequence " << sequ << endl;
     294        if(!DeleteSequence(serv, datapath, sequpath, sequ, dummy))
     295            rc=kFALSE;
     296    }
     297
     298    delete res;
     299
    281300
    282301    cout << "same sequence -> nothing to do..." << endl;
Note: See TracChangeset for help on using the changeset viewer.