Changeset 25835 for trunk/ippTools/src/addtool.c
- Timestamp:
- Oct 14, 2009, 11:06:18 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/addtool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/addtool.c
r25816 r25835 111 111 PXOPT_LOOKUP_STR(dvodb, config->args, "-set_dvodb", false, false); 112 112 PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false); 113 PXOPT_LOOKUP_STR(data_group, config->args, "-set_data_group", false, false); 113 114 PXOPT_LOOKUP_STR(reduction, config->args, "-set_reduction", false, false); 115 PXOPT_LOOKUP_STR(note, config->args, "-set_note", false, false); 114 116 PXOPT_LOOKUP_BOOL(image_only, config->args, "-image_only", false); 115 117 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); … … 216 218 reduction ? reduction : row->reduction, 217 219 label ? label : row->label, 220 data_group ? data_group : (label ? label : row->label), 218 221 dvodb ? dvodb : row->dvodb, 222 note ? note : NULL, 219 223 image_only 220 224 )) { … … 253 257 PXOPT_COPY_STR(config->args, where, "-reduction", "addRun.reduction", "=="); 254 258 255 if (!psListLength(where->list) 256 && !psMetadataLookupBool(NULL, config->args, "-all")) { 259 if (!psListLength(where->list)) { 257 260 psFree(where); 258 261 psError(PXTOOLS_ERR_DATA, false, "search parameters are required"); … … 260 263 } 261 264 265 psString query = psStringCopy("UPDATE addRun JOIN camRun USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id)"); 266 267 // pxUpdateRun gets parameters from config->args and runs the update query 268 bool result = pxUpdateRun(config, where, &query, false); 269 270 psFree(query); 271 psFree(where); 272 273 return result; 274 275 276 #ifdef notdef 262 277 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 263 278 PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false); … … 288 303 289 304 return true; 305 #endif 290 306 } 291 307
Note:
See TracChangeset
for help on using the changeset viewer.
