Changeset 36896 for trunk/ippTools/src/remotetool.c
- Timestamp:
- Jun 17, 2014, 5:42:02 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/remotetool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/remotetool.c
r36623 r36896 95 95 // Get a list of the things we can insert into a new component 96 96 psString query = NULL; 97 psString whereOption = psStringCopy(""); 97 98 if (!strcmp(stage,"chip")) { 98 99 query = pxDataGet("remotetool_definebyquery_chip.sql"); … … 125 126 126 127 if (label) { 127 psStringAppend(&query, " AND (warpRun.label = '%s')", label); 128 // Because warp has to check to see if something other than the state is set correctly, I have to use this wonky way to pass the label in. 129 // psStringAppend(&query, " AND (warpRun.label = '%s')", label); 130 psStringAppend(&whereOption, "\n AND (warpRun.label = '%s')", label); 128 131 } 129 132 } … … 149 152 psFree(limitString); 150 153 } 151 if (!p_psDBRunQuery (config->dbh, query)) {154 if (!p_psDBRunQueryF(config->dbh, query,whereOption)) { 152 155 psError(PS_ERR_UNKNOWN, false, "database error"); 153 156 psFree(query); … … 313 316 { 314 317 PS_ASSERT_PTR_NON_NULL(config, false); 315 // PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 318 PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 319 psAssert(remote_id,"This should have failed before this point."); 316 320 317 321 psMetadata *where = psMetadataAlloc(); … … 341 345 { 342 346 PS_ASSERT_PTR_NON_NULL(config, false); 343 // PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 344 347 PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 348 psAssert(remote_id,"This should have failed before this point."); 349 345 350 psMetadata *where = psMetadataAlloc(); 346 351 // Wheres
Note:
See TracChangeset
for help on using the changeset viewer.
