Changeset 18305 for trunk/ippTools/src/pztool.c
- Timestamp:
- Jun 23, 2008, 4:27:00 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pztool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pztool.c
r18204 r18305 203 203 PS_ASSERT_PTR_NON_NULL(config, false); 204 204 205 PXOPT_LOOKUP_BOOL(desc, config->args, "-desc", false); 205 206 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 206 207 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 225 226 } 226 227 227 psStringAppend(&query, " ORDER BY summitExp.dateobs DESC"); 228 psStringAppend(&query, " ORDER BY summitExp.dateobs"); 229 if (desc) { 230 psStringAppend(&query, " DESC"); 231 } 228 232 229 233 // treat limit == 0 as "no limit" … … 268 272 PS_ASSERT_PTR_NON_NULL(config, false); 269 273 274 PXOPT_LOOKUP_BOOL(desc, config->args, "-desc", false); 270 275 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 271 276 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 296 301 psStringAppend(&query, " AND %s", whereClause); 297 302 psFree(whereClause); 303 } 304 305 psStringAppend(&query, " ORDER BY dateobs"); 306 if (desc) { 307 psStringAppend(&query, " DESC"); 298 308 } 299 309
Note:
See TracChangeset
for help on using the changeset viewer.
