Changeset 23365
- Timestamp:
- Mar 17, 2009, 2:56:39 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/disttool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/disttool.c
r23256 r23365 98 98 PXOPT_LOOKUP_STR(set_label, config->args, "-set_label", false, false); 99 99 100 bool require_chip_id = false;101 if (!strcmp(stage, "raw")) {102 // need to know the chip id for raw stage so that we can find the masks103 require_chip_id = true;104 }105 PXOPT_LOOKUP_S64(chip_id, config->args, "-chip_id", require_chip_id, false);106 107 100 // TODO: check that stage has an expected value 101 // XXX: all of the following concerns will be managed properly by definebyquery 102 108 103 // TODO: check that stage_id actually exists for stage 109 104 // in magicdstool we queue off of a magic_id so the stage_id, exp_id, and cam_id get looked up … … 113 108 // change between the time that it is queued. 114 109 115 if (!distRunInsert(config->dbh, 0, stage, stage_id, chip_id, set_label, outroot, clean, "new", 0)) {110 if (!distRunInsert(config->dbh, 0, stage, stage_id, set_label, outroot, clean, "new", NULL, 0)) { 116 111 psError(PS_ERR_UNKNOWN, false, "database error"); 117 112 return false; … … 151 146 } 152 147 153 psString query = psStringCopy("UPDATE distRun ");148 psString query = psStringCopy("UPDATE distRun SET time_stamp = UTC_TIMESTAMP()"); 154 149 155 150 if (state) { 156 psStringAppend(&query, " SETstate = '%s'", state);151 psStringAppend(&query, " , state = '%s'", state); 157 152 } 158 153 159 154 if (label) { 160 psStringAppend(&query, " SETlabel = '%s'", label);155 psStringAppend(&query, " , label = '%s'", label); 161 156 } 162 157 163 158 if (code) { 164 psStringAppend(&query, " SETfault = %d", code);159 psStringAppend(&query, " , fault = %d", code); 165 160 } 166 161
Note:
See TracChangeset
for help on using the changeset viewer.
