Changeset 39519 for trunk/ippTools/src/pztool.c
- Timestamp:
- Apr 8, 2016, 3:11:07 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pztool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pztool.c
r34081 r39519 222 222 223 223 psMetadata *where = psMetadataAlloc(); 224 psMetadata *where2 = psMetadataAlloc(); 224 225 PXOPT_COPY_S64(config->args, where, "-summit_id", "summit_id", "=="); 225 226 PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "=="); … … 228 229 PXOPT_COPY_STR(config->args, where, "-exp_type", "exp_type", "=="); 229 230 231 PXOPT_COPY_TIME(config->args, where2, "-dateobs_begin", "dateobs", ">="); 232 PXOPT_COPY_TIME(config->args, where2, "-dateobs_end", "dateobs", "<="); 233 230 234 PXOPT_LOOKUP_BOOL(desc, config->args, "-desc", false); 231 235 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 251 255 psFree(where); 252 256 257 if (psListLength(where2->list)) { 258 psString where2Clause = psDBGenerateWhereConditionSQL(where2, "summitExp"); 259 psStringAppend(&query, " AND %s", where2Clause); 260 psFree(where2Clause); 261 } 262 psFree(where2); 263 253 264 psStringAppend(&query, " ORDER BY summitExp.dateobs"); 254 265 if (desc) {
Note:
See TracChangeset
for help on using the changeset viewer.
