Changeset 36965
- Timestamp:
- Jul 2, 2014, 3:32:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-pv3-20140616/ippTools/src/remotetool.c
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20140423/ippTools/src/remotetool.c merged eligible /trunk/ippTools/src/remotetool.c merged eligible
r36623 r36965 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 -
Property svn:mergeinfo
set to
Note:
See TracChangeset
for help on using the changeset viewer.
