IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21098


Ignore:
Timestamp:
Jan 9, 2009, 10:08:38 AM (17 years ago)
Author:
bills
Message:

where clauses for stack tables were in the wrong part of the query

Location:
trunk/ippTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/difftool_definebyquery_part2.sql

    r20973 r21098  
    1919            FROM stackRun
    2020            JOIN stackSumSkyfile USING(stack_id)
     21            -- stacks where hook %s
    2122            GROUP BY
    2223                skycell_id,
     
    3132        -- (good fraction test goes here for example also above)
    3233        -- warp where hook %s
    33         -- stacks where hook %s
  • trunk/ippTools/src/difftool.c

    r21019 r21098  
    10031003    if (psListLength(stackWhere->list)) {
    10041004        psString whereClause = psDBGenerateWhereConditionSQL(stackWhere, NULL);
    1005         psStringAppend(&stackQuery, "\nAND %s", whereClause);
     1005        psStringAppend(&stackQuery, "\nWHERE %s", whereClause);
    10061006        psFree(whereClause);
    10071007    } else {
     
    11121112            return false;
    11131113        }
    1114         if (!p_psDBRunQuery(config->dbh, skycell_query, warp_id, filter, warpQuery, stackQuery)) {
     1114        if (!p_psDBRunQuery(config->dbh, skycell_query, stackQuery, warp_id, filter, warpQuery)) {
    11151115            psError(PS_ERR_UNKNOWN, false, "database error");
    11161116            psFree(warpQuery);
Note: See TracChangeset for help on using the changeset viewer.