IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2010, 12:11:59 PM (16 years ago)
Author:
watersc1
Message:

SVN merge went off last week. This includes the changes that should have been there then.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/difftool.c

    r29665 r29696  
    20092009    if (psListLength(stack1Where->list)) {
    20102010        psString whereClause = psDBGenerateWhereConditionSQL(stack1Where, NULL);
    2011         psStringAppend(&stack1Query, "\n AND %s", whereClause);
     2011        psStringAppend(&stack1Query, "AND %s", whereClause);
    20122012        psFree(whereClause);
    2013     } else {
    2014         stack1Query = psStringCopy("\n");
    2015     }
     2013    }
    20162014    psFree(stack1Where);
    20172015
    20182016    if (psListLength(stack2Where->list)) {
    20192017        psString whereClause = psDBGenerateWhereConditionSQL(stack2Where, NULL);
    2020         psStringAppend(&stack2Query, "\n AND %s", whereClause);
     2018        psStringAppend(&stack2Query, "AND %s", whereClause);
    20212019        psFree(whereClause);
    2022     } else {
    2023         stack2Query = psStringCopy("\n");
    2024     }
     2020    }
    20252021    psFree(stack2Where);
    2026 
    20272022 
    20282023    // don't queue for stacks that have already been diffed unless requested
     
    20302025    psString diffQuery1 = NULL;
    20312026    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    }
    20382030
    20392031    // find the distinct set of data_groups and filters
     
    20492041        return(false);
    20502042    }
    2051 
    20522043
    20532044    psString queryCopy = psStringCopy(query);
     
    21272118        psString thisWhere = psDBGenerateWhereConditionSQL(row,NULL);
    21282119        psStringSubstitute(&thisWhere,"stackRun.","INPUT_");
    2129         psStringAppend(&this_stack1Query,"\n AND %s", thisWhere);
     2120        psStringAppend(&this_stack1Query,"AND %s", thisWhere);
    21302121        psFree(thisWhere);
    2131 
    21322122
    21332123        psString queryCopy = psStringCopy(query);
     
    21462136        }
    21472137
    2148         if (!p_psDBRunQueryF(config->dbh, query, stack2Query, this_stack1Query, diffQuery1, this_stack1Query)) {
     2138        if (!p_psDBRunQuery(config->dbh, query)) {
    21492139            psError(PS_ERR_UNKNOWN, false, "database error");
    21502140            psFree(query);
Note: See TracChangeset for help on using the changeset viewer.