IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 14, 2010, 11:54:15 AM (16 years ago)
Author:
Paul Price
Message:

Fix stacktool -tosum to require that all inputs have state = 'full'.

File:
1 edited

Legend:

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

    r27678 r27679  
    753753    }
    754754
     755    psString whereClause = psStringCopy(""); // WHERE conditions to add
    755756    if (psListLength(where->list)) {
    756         psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    757         psStringAppend(&query, " AND %s", whereClause);
    758         psFree(whereClause);
     757        psString new = psDBGenerateWhereConditionSQL(where, NULL);
     758        psStringAppend(&whereClause, "\nAND %s", new);
     759        psFree(new);
    759760    }
    760761    psFree(where);
     
    767768    }
    768769
    769     if (!p_psDBRunQuery(config->dbh, query)) {
     770    if (!p_psDBRunQueryF(config->dbh, query, whereClause)) {
    770771        psError(PS_ERR_UNKNOWN, false, "database error");
    771772        psFree(query);
Note: See TracChangeset for help on using the changeset viewer.