Ignore:
Timestamp:
02/25/06 18:31:03 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7460 r7528  
    7272// has to be removed from the database
    7373//
    74 // If nothing failes 1 is returned. In the case of an error 0 is returned.
     74// If nothing failes 1 is returned. In the case of an error 2 and if
     75// there's no connection to the database 0 is returned.
    7576// This is needed for the scripts that execute the macro.
    7677//
     
    813814    TSQLResult *res = serv.Query(query);
    814815    if (!res)
    815         return 0;
     816        return 2;
    816817
    817818    //build blocks of runs, which have the same values
     
    875876    res = serv.Query(query);
    876877    if (!res)
    877         return 0;
     878        return 2;
    878879
    879880    cout << "old sequences: " << flush;
     
    911912        cout << "sequ: " << obj->GetName() << " deleting... " << endl;
    912913        if (!DeleteSequence(serv, datapath, sequpath, atoi(obj->GetName()), dummy))
    913             return 0;
    914     }
    915 
    916     return rc ? 1 : 0;
     914            return 2;
     915    }
     916
     917    return rc ? 1 : 2;
    917918}
    918919
     
    936937    TSQLResult *res = serv.Query(query);
    937938    if (!res)
    938         return 0;
     939        return 2;
    939940
    940941    //execute buildsequenceentries for all dates
Note: See TracChangeset for help on using the changeset viewer.