Changeset 7482 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 02/07/06 10:53:42 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/macros
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/getdolist.C
r7480 r7482 130 130 rc.GetValue(table+".TimerTable", ""), 131 131 rc.GetValue(table+".Primary", "")); 132 query+=Form(" WHERE ISNULL(%s) AND ISNULL(f FailedCode) AND ISNULL(fFailedComment) AND ISNULL(fStartTime) AND ISNULL(fFailedTime) ", column.Data());132 query+=Form(" WHERE ISNULL(%s) AND ISNULL(fReturnCode) AND ISNULL(fFailedCode) AND ISNULL(fFailedCodeAdd) AND ISNULL(fStartTime) AND ISNULL(fFailedTime) ", column.Data()); 133 133 134 134 TIter Next(&l); -
trunk/MagicSoft/Mars/datacenter/macros/setstatus.C
r7480 r7482 116 116 } 117 117 118 Int_t SetInfluences(MSQLServer &serv, TEnv &rc, TString primary, TString table, TString column, TString statustime, TString failedcode, TString failedcomment, TString starttime, TString failedtime, Bool_t resetall)118 Int_t SetInfluences(MSQLServer &serv, TEnv &rc, TString primary, TString table, TString column, TString statustime, TString returncode, TString failedcode, TString failedcodeadd, TString starttime, TString failedtime, Bool_t resetall) 119 119 { 120 cout << "set influen es for " << table << "." << column << endl;120 cout << "set influences for " << table << "." << column << endl; 121 121 122 122 //build query and set step and influences for the step 123 123 TString influences = rc.GetValue(table+"."+column+".Influences", ""); 124 124 125 TString query(Form("UPDATE %s SET %s=%s, f FailedCode=%s, fFailedComment=%s, fFailedTime=%s ",126 table.Data(), column.Data(), statustime.Data(), failedcode.Data(),127 failedco mment.Data(), failedtime.Data()));125 TString query(Form("UPDATE %s SET %s=%s, fReturnCode=%s, fFailedCode=%s, fFailedCodeAdd=%s, fFailedTime=%s ", 126 table.Data(), column.Data(), statustime.Data(), returncode.Data(), failedcode.Data(), 127 failedcodeadd.Data(), failedtime.Data())); 128 128 if (starttime.CompareTo("noreset")) 129 129 query += Form(", fStartTime=%s", starttime.Data()); … … 163 163 } 164 164 165 int setstatus(TString primary, TString table, TString column, TString statustime, TString failedcode, TString failedcomment, TString starttime, TString failedtime, Bool_t resetall=kTRUE)165 int setstatus(TString primary, TString table, TString column, TString statustime, TString returncode, TString failedcode, TString failedcodeadd, TString starttime, TString failedtime, Bool_t resetall=kTRUE) 166 166 { 167 167 TEnv env("sql.rc"); … … 182 182 183 183 //if reset is needed and/or can be done, set new values 184 return !CheckReset(rc, table, column, statustime) ? 0 : SetInfluences(serv, rc, primary, table, column, statustime, failedcode, failedcomment, starttime, failedtime, resetall);184 return !CheckReset(rc, table, column, statustime) ? 0 : SetInfluences(serv, rc, primary, table, column, statustime, returncode, failedcode, failedcodeadd, starttime, failedtime, resetall); 185 185 186 186 } -
trunk/MagicSoft/Mars/datacenter/macros/setupdb.C
r7468 r7482 606 606 " fFailedTime DATETIME NULL," 607 607 " fFailedCode SMALLINT UNSIGNED NULL," 608 " fFailedComment VARCHAR(255) NULL" 608 " fReturnCode SMALLINT UNSIGNED NULL," 609 " fFailedCodeAdd INT UNSIGNED NULL" 609 610 ")"; 610 611 … … 618 619 " fFailedTime DATETIME NULL," 619 620 " fFailedCode SMALLINT UNSIGNED NULL," 620 " fFailedComment VARCHAR(255) NULL" 621 " fReturnCode SMALLINT UNSIGNED NULL," 622 " fFailedCodeAdd INT UNSIGNED NULL" 621 623 ")"; 622 624 … … 636 638 " fFailedTime DATETIME NULL," 637 639 " fFailedCode SMALLINT UNSIGNED NULL," 638 " fFailedComment VARCHAR(255) NULL" 640 " fReturnCode SMALLINT UNSIGNED NULL," 641 " fFailedCodeAdd INT UNSIGNED NULL" 639 642 ")"; 640 643 … … 651 654 " fFailedTime DATETIME NULL," 652 655 " fFailedCode SMALLINT UNSIGNED NULL," 653 " fFailedComment VARCHAR(255) NULL" 656 " fReturnCode SMALLINT UNSIGNED NULL," 657 " fFailedCodeAdd INT UNSIGNED NULL" 654 658 ")"; 655 659
Note:
See TracChangeset
for help on using the changeset viewer.