Changeset 25775 for trunk/ippTools/src/difftool.c
- Timestamp:
- Oct 5, 2009, 2:15:48 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/difftool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r25704 r25775 692 692 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 693 693 694 PXOPT_LOOKUP_U64(magicked, config->args, "-magicked", false, false); 695 PXOPT_LOOKUP_BOOL(destreaked, config->args, "-destreaked", false);696 PXOPT_LOOKUP_BOOL(not_destreaked, config->args, "-not_destreaked", false);697 694 695 psString where2 = NULL; 696 pxmagicAddWhere(config, &where2, "diffSkyfile"); 697 pxspaceAddWhere(config, &where2, template ? "rawTemplate" : "rawInput"); 698 698 psString query = pxDataGet("difftool_skyfile.sql"); 699 699 if (!query) { … … 706 706 psStringAppend(&query, " WHERE %s", whereClause); 707 707 psFree(whereClause); 708 } else if (!all) { 708 } else if (all) { 709 if (where2) { 710 psStringAppend(&query, " WHERE diffRun.diff_id is not null %s", where2); 711 } 712 } else { 709 713 psError(PXTOOLS_ERR_DATA, true, "search parameters or -all are required"); 714 return false; 710 715 } 711 716 psFree(where); 712 713 if (not_destreaked) {714 if (destreaked) {715 psError(PXTOOLS_ERR_DATA, true, "providing -not_destreaked and -destreaked makes no sense");716 return false;717 }718 if (magicked) {719 psError(PXTOOLS_ERR_DATA, true, "providing -not_destreaked and -magicked makes no sense");720 return false;721 }722 psStringAppend(&query, " AND diffSkyfile.magicked = 0");723 }724 if (destreaked) {725 psStringAppend(&query, " AND diffSkyfile.magicked != 0");726 }727 728 717 729 718 // treat limit == 0 as "no limit"
Note:
See TracChangeset
for help on using the changeset viewer.
