Changeset 36968 for trunk/ippTools/src
- Timestamp:
- Jul 2, 2014, 5:28:31 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/remotetool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/remotetool.c
r36896 r36968 94 94 95 95 // Get a list of the things we can insert into a new component 96 // CZW: these labels no longer need to be linked to the table, as I've split stageRun and remoteRun into sub-queries. 96 97 psString query = NULL; 97 98 psString whereOption = psStringCopy(""); … … 104 105 105 106 if (label) { 106 psStringAppend(& query, " AND (chipRun.label = '%s')", label);107 psStringAppend(&whereOption, "\n AND (label = '%s')", label); 107 108 } 108 109 } … … 115 116 116 117 if (label) { 117 psStringAppend(& query, " AND (camRun.label = '%s')", label);118 psStringAppend(&whereOption, "\n AND (label = '%s')", label); 118 119 } 119 120 } … … 128 129 // 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 130 // psStringAppend(&query, " AND (warpRun.label = '%s')", label); 130 psStringAppend(&whereOption, "\n AND ( warpRun.label = '%s')", label);131 psStringAppend(&whereOption, "\n AND (label = '%s')", label); 131 132 } 132 133 } … … 139 140 140 141 if (label) { 141 psStringAppend(& query, " AND (stackRun.label = '%s')", label);142 psStringAppend(&whereOption, "\n AND (label = '%s')", label); 142 143 } 143 144 } … … 152 153 psFree(limitString); 153 154 } 154 if (!p_psDBRunQueryF(config->dbh, query,whereOption )) {155 if (!p_psDBRunQueryF(config->dbh, query,whereOption,whereOption)) { // This needs to be here twice because we need to restrict on label twice. 155 156 psError(PS_ERR_UNKNOWN, false, "database error"); 156 157 psFree(query);
Note:
See TracChangeset
for help on using the changeset viewer.
