- Timestamp:
- 02/25/06 18:31:03 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C
r7460 r7528 72 72 // has to be removed from the database 73 73 // 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. 75 76 // This is needed for the scripts that execute the macro. 76 77 // … … 813 814 TSQLResult *res = serv.Query(query); 814 815 if (!res) 815 return 0;816 return 2; 816 817 817 818 //build blocks of runs, which have the same values … … 875 876 res = serv.Query(query); 876 877 if (!res) 877 return 0;878 return 2; 878 879 879 880 cout << "old sequences: " << flush; … … 911 912 cout << "sequ: " << obj->GetName() << " deleting... " << endl; 912 913 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; 917 918 } 918 919 … … 936 937 TSQLResult *res = serv.Query(query); 937 938 if (!res) 938 return 0;939 return 2; 939 940 940 941 //execute buildsequenceentries for all dates
Note:
See TracChangeset
for help on using the changeset viewer.