Changeset 37974 for trunk/ippTools/src/difftool.c
- Timestamp:
- Mar 12, 2015, 3:57:12 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/difftool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r37947 r37974 1235 1235 1236 1236 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 1237 PXOPT_COPY_STR(config->args, where, "-filter", " filter", "==");1237 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "=="); 1238 1238 PXOPT_COPY_STR(config->args, where, "-comment", "comment", "LIKE"); 1239 1239 PXOPT_COPY_S64(config->args, where, "-warp_id", "warpRun.warp_id", "=="); … … 1284 1284 1285 1285 psString whereClause = psDBGenerateWhereConditionSQL(where,NULL); 1286 psString diffWhereClause = psStringCopy(""); 1287 psString joinWhereClause = psStringCopy(""); 1286 1288 1287 1289 // Don't queue things that already have diffs. 1288 1290 if (! (reRun || newTemplates) ) { 1289 psStringAppend(& whereClause, "\nAND diff_id IS NULL\n");1291 psStringAppend(&joinWhereClause, "\nAND diff_id IS NULL\n"); 1290 1292 } 1291 1293 // Append diff qualifiers, if we have them 1292 1294 if (label) { 1293 psStringAppend(& whereClause, "\nAND ((diffRun.label = '%s') OR (diffRun.label IS NULL))",label);1295 psStringAppend(&diffWhereClause, "\nAND ((diffRun.label = '%s') OR (diffRun.label IS NULL))",label); 1294 1296 } 1295 1297 if (data_group) { 1296 psStringAppend(& whereClause, "\nAND ((diffRun.data_group = '%s') OR (diffRun.data_group IS NULL))",data_group);1298 psStringAppend(&diffWhereClause, "\nAND ((diffRun.data_group = '%s') OR (diffRun.data_group IS NULL))",data_group); 1297 1299 } 1298 1300 if (reduction) { 1299 psStringAppend(& whereClause, "\nAND ((diffRun.reduction = '%s') OR (diffRun.reduction IS NULL))",reduction);1301 psStringAppend(&diffWhereClause, "\nAND ((diffRun.reduction = '%s') OR (diffRun.reduction IS NULL))",reduction); 1300 1302 } 1301 1303 … … 1305 1307 1306 1308 // This is just a simple query, so we don't need to do a transaction 1307 if (!p_psDBRunQueryF(config->dbh, query, whereClauseString )) {1309 if (!p_psDBRunQueryF(config->dbh, query, whereClauseString, diffWhereClause,joinWhereClause)) { 1308 1310 psError(PS_ERR_UNKNOWN, false, "database error"); 1309 1311 psFree(query);
Note:
See TracChangeset
for help on using the changeset viewer.
