Changeset 18657 for trunk/ippTools/src/difftool.c
- Timestamp:
- Jul 21, 2008, 7:16:14 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/difftool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r18618 r18657 820 820 psMetadata *where = psMetadataAlloc(); 821 821 822 PXOPT_COPY_S64(config->args, where, "-diff_id", "diff_id", "==");823 822 PXOPT_COPY_S64(config->args, where, "-warp_id", "warp_id", "=="); 824 823 PXOPT_COPY_STR(config->args, where, "-skycell_id", "skycell_id", "=="); 825 PXOPT_COPY_STR(config->args, where, "-tess_id", "tess_id", "=="); 824 PXOPT_COPY_STR(config->args, where, "-tess_id", "tess_id", "=="); 825 PXOPT_COPY_STR(config->args, where, "-filter", "filter", "=="); 826 826 PXOPT_COPY_STR(config->args, where, "-kind", "kind", "=="); 827 827 PXOPT_LOOKUP_STR(workdir, config->args, "-workdir", true, false); // required options 828 828 PXOPT_LOOKUP_TIME(registered, config->args, "-registered", false, false); 829 PXOPT_LOOKUP_BOOL(template, config->args, "-template", false);830 829 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 830 PXOPT_LOOKUP_BOOL(newTemplates, config->args, "-new-templates", false); 831 831 832 832 // find all things to queue 833 psString query = pxDataGet("difftool_ queue.sql");833 psString query = pxDataGet("difftool_definebyquery.sql"); 834 834 if (!query) { 835 835 psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement"); … … 837 837 } 838 838 839 if ( template) {840 // list only faulted rows841 psStringAppend(&query, " %s", " AND diffInputSkyfile.template != 0");839 if (newTemplates) { 840 // Warps that haven't been diffed OR warps that can take a newer template in the diff 841 psStringAppend(&query, " WHERE (diff_id IS NULL OR best_stack_id > current_stack_id)"); 842 842 } else { 843 // don't list faulted rows 844 psStringAppend(&query, " %s", 845 " AND (diffInputSkyfile.template = 0 OR diffInputSkyfile.template IS NULL)"); 843 // Only warps that haven't been diffed 844 psStringAppend(&query, " WHERE diff_id IS NULL"); 846 845 } 847 846 848 847 if (psListLength(where->list)) { 849 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);848 psString whereClause = psDBGenerateWhereConditionSQL(where, "warpsToDiff"); 850 849 psStringAppend(&query, " AND %s", whereClause); 851 850 psFree(whereClause); … … 896 895 continue; 897 896 } 898 psS64 stack_id = psMetadataLookupS64(&mdok, row, " stack_id");897 psS64 stack_id = psMetadataLookupS64(&mdok, row, "best_stack_id"); 899 898 if (!mdok) { 900 899 psWarning("stack_id not found --- ignoring row %ld", i);
Note:
See TracChangeset
for help on using the changeset viewer.
