Changeset 29697
- Timestamp:
- Nov 8, 2010, 12:22:19 PM (16 years ago)
- File:
-
- 1 edited
-
tags/ipp-20101029/ippTools/src/difftool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101029/ippTools/src/difftool.c
r29666 r29697 2009 2009 if (psListLength(stack1Where->list)) { 2010 2010 psString whereClause = psDBGenerateWhereConditionSQL(stack1Where, NULL); 2011 psStringAppend(&stack1Query, " \nAND %s", whereClause);2011 psStringAppend(&stack1Query, "AND %s", whereClause); 2012 2012 psFree(whereClause); 2013 } else { 2014 stack1Query = psStringCopy("\n"); 2015 } 2013 } 2016 2014 psFree(stack1Where); 2017 2015 2018 2016 if (psListLength(stack2Where->list)) { 2019 2017 psString whereClause = psDBGenerateWhereConditionSQL(stack2Where, NULL); 2020 psStringAppend(&stack2Query, " \nAND %s", whereClause);2018 psStringAppend(&stack2Query, "AND %s", whereClause); 2021 2019 psFree(whereClause); 2022 } else { 2023 stack2Query = psStringCopy("\n"); 2024 } 2020 } 2025 2021 psFree(stack2Where); 2026 2027 2022 2028 2023 // don't queue for stacks that have already been diffed unless requested … … 2030 2025 psString diffQuery1 = NULL; 2031 2026 if (! (reRun || newTemplates) ) { 2032 psStringAppend(&diffQuery0, "\n AND diffExp.diff_id IS NULL"); 2033 psStringAppend(&diffQuery1, "\n AND n_diff = 0"); 2034 } else { 2035 diffQuery0 = psStringCopy("\n"); 2036 diffQuery1 = psStringCopy("\n"); 2037 } 2027 psStringAppend(&diffQuery0, "AND diffExp.diff_id IS NULL"); 2028 psStringAppend(&diffQuery1, "HAVING n_diff = 0"); 2029 } 2038 2030 2039 2031 // find the distinct set of data_groups and filters … … 2049 2041 return(false); 2050 2042 } 2051 2052 2043 2053 2044 psString queryCopy = psStringCopy(query); … … 2127 2118 psString thisWhere = psDBGenerateWhereConditionSQL(row,NULL); 2128 2119 psStringSubstitute(&thisWhere,"stackRun.","INPUT_"); 2129 psStringAppend(&this_stack1Query," \nAND %s", thisWhere);2120 psStringAppend(&this_stack1Query,"AND %s", thisWhere); 2130 2121 psFree(thisWhere); 2131 2132 2122 2133 2123 psString queryCopy = psStringCopy(query); … … 2146 2136 } 2147 2137 2148 if (!p_psDBRunQuery F(config->dbh, query, stack2Query, this_stack1Query, diffQuery1, this_stack1Query)) {2138 if (!p_psDBRunQuery(config->dbh, query)) { 2149 2139 psError(PS_ERR_UNKNOWN, false, "database error"); 2150 2140 psFree(query);
Note:
See TracChangeset
for help on using the changeset viewer.
