Ignore:
Timestamp:
02/07/06 10:53:42 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/macros
Files:
3 edited

Legend:

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

    r7480 r7482  
    130130                    rc.GetValue(table+".TimerTable", ""),
    131131                    rc.GetValue(table+".Primary", ""));
    132     query+=Form(" WHERE ISNULL(%s) AND ISNULL(fFailedCode) 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());
    133133
    134134    TIter Next(&l);
  • trunk/MagicSoft/Mars/datacenter/macros/setstatus.C

    r7480 r7482  
    116116}
    117117
    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)
     118Int_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)
    119119{
    120     cout << "set influenes for " << table << "." << column << endl;
     120    cout << "set influences for " << table << "." << column << endl;
    121121
    122122    //build query and set step and influences for the step
    123123    TString influences  = rc.GetValue(table+"."+column+".Influences", "");
    124124
    125     TString query(Form("UPDATE %s SET %s=%s, fFailedCode=%s, fFailedComment=%s, fFailedTime=%s ",
    126                        table.Data(), column.Data(), statustime.Data(), failedcode.Data(),
    127                        failedcomment.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()));
    128128    if (starttime.CompareTo("noreset"))
    129129        query += Form(", fStartTime=%s", starttime.Data());
     
    163163}
    164164
    165 int setstatus(TString primary, TString table, TString column, TString statustime, TString failedcode, TString failedcomment, TString starttime, TString failedtime, Bool_t resetall=kTRUE)
     165int setstatus(TString primary, TString table, TString column, TString statustime, TString returncode, TString failedcode, TString failedcodeadd, TString starttime, TString failedtime, Bool_t resetall=kTRUE)
    166166{
    167167    TEnv env("sql.rc");
     
    182182
    183183    //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);
    185185
    186186}
  • trunk/MagicSoft/Mars/datacenter/macros/setupdb.C

    r7468 r7482  
    606606         "  fFailedTime       DATETIME             NULL,"
    607607         "  fFailedCode       SMALLINT UNSIGNED    NULL,"
    608          "  fFailedComment    VARCHAR(255)         NULL"
     608         "  fReturnCode       SMALLINT UNSIGNED    NULL,"
     609         "  fFailedCodeAdd    INT      UNSIGNED    NULL"
    609610         ")";
    610611
     
    618619         "  fFailedTime            DATETIME             NULL,"
    619620         "  fFailedCode            SMALLINT UNSIGNED    NULL,"
    620          "  fFailedComment         VARCHAR(255)         NULL"
     621         "  fReturnCode            SMALLINT UNSIGNED    NULL,"
     622         "  fFailedCodeAdd         INT      UNSIGNED    NULL"
    621623         ")";
    622624
     
    636638         "  fFailedTime            DATETIME             NULL,"
    637639         "  fFailedCode            SMALLINT UNSIGNED    NULL,"
    638          "  fFailedComment         VARCHAR(255)         NULL"
     640         "  fReturnCode            SMALLINT UNSIGNED    NULL,"
     641         "  fFailedCodeAdd         INT      UNSIGNED    NULL"
    639642         ")";
    640643
     
    651654         "  fFailedTime            DATETIME             NULL,"
    652655         "  fFailedCode            SMALLINT UNSIGNED    NULL,"
    653          "  fFailedComment         VARCHAR(255)         NULL"
     656         "  fReturnCode            SMALLINT UNSIGNED    NULL,"
     657         "  fFailedCodeAdd         INT      UNSIGNED    NULL"
    654658         ")";
    655659
Note: See TracChangeset for help on using the changeset viewer.