Changeset 27745 for trunk/ippTools/src/magicdstool.c
- Timestamp:
- Apr 23, 2010, 11:26:54 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/magicdstool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magicdstool.c
r27519 r27745 1225 1225 } 1226 1226 1227 psString stateCheck = NULL; 1228 if (!strcmp(state, "goto_cleaned")) { 1229 // science cleanup sets runs to goto_cleaned. Don't undo it if already cleaned 1230 psStringAppend(&stateCheck, " AND magicDSRun.state != 'cleaned'"); 1231 } 1232 1233 1227 1234 psString query = NULL; 1228 1235 psStringAppend(&query, "UPDATE magicDSRun SET state = '%s' %s\n", state, extraSetStr ? extraSetStr : ""); … … 1238 1245 } 1239 1246 1247 if (stateCheck) { 1248 psStringAppend(&query, stateCheck); 1249 } 1250 psFree(stateCheck); 1240 1251 if (!p_psDBRunQuery(config->dbh, query)) { 1241 1252 psError(PS_ERR_UNKNOWN, false,
Note:
See TracChangeset
for help on using the changeset viewer.
