Changeset 27795 for trunk/ippTools/src/pstamptool.c
- Timestamp:
- Apr 28, 2010, 2:18:01 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pstamptool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pstamptool.c
r27740 r27795 530 530 531 531 PXOPT_COPY_S64(config->args, where, "-req_id", "req_id", "=="); 532 PXOPT_COPY_S64(config->args, where, "-fault", " req_id", "==");532 PXOPT_COPY_S64(config->args, where, "-fault", "fault", "=="); 533 533 PXOPT_COPY_STR(config->args, where, "-state", "pstampRequest.state", "=="); 534 534 pxAddLabelSearchArgs(config, where, "-label", "pstampRequest.label", "LIKE"); … … 967 967 PXOPT_LOOKUP_STR(component, config->args, "-component", true, false); 968 968 PXOPT_LOOKUP_STR(imagedb, config->args, "-imagedb", true, false); 969 PXOPT_LOOKUP_STR(rlabel, config->args, "-rlabel", false, false);969 PXOPT_LOOKUP_STR(rlabel, config->args, "-rlabel", true, false); 970 970 PXOPT_LOOKUP_BOOL(need_magic, config->args, "-need_magic", false); 971 971 PXOPT_LOOKUP_BOOL(no_create, config->args, "-no_create", false); … … 983 983 } 984 984 985 psString query = pxDataGet("pstamptool_ pendingdependent.sql");985 psString query = pxDataGet("pstamptool_getdependent.sql"); 986 986 if (!query) { 987 987 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); … … 1186 1186 1187 1187 psMetadata *where = psMetadataAlloc(); 1188 PXOPT_COPY_S64(config->args, where, "-fault", " req_id", "==");1188 PXOPT_COPY_S64(config->args, where, "-fault", "pstampDependent.fault", "=="); 1189 1189 PXOPT_COPY_S64(config->args, where, "-dep_id", "dep_id", "=="); 1190 1190 pxAddLabelSearchArgs(config, where, "-label", "pstampRequest.label", "=="); … … 1201 1201 } 1202 1202 1203 psString whereClause = psDBGenerateWhere SQL(where, NULL);1204 psStringAppend(&query, " %s", whereClause);1203 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 1204 psStringAppend(&query, " AND %s", whereClause); 1205 1205 psFree(whereClause); 1206 1206 psFree(where);
Note:
See TracChangeset
for help on using the changeset viewer.
