IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 16, 2009, 2:28:57 PM (17 years ago)
Author:
Paul Price
Message:

Fixing labels for pubtool -pending

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippTools/src/pubtool.c

    r24438 r24439  
    210210    }
    211211
     212    psString whereClause = psStringCopy(""); // WHERE conditions to add
    212213    if (psListLength(where->list)) {
    213         psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    214         psStringAppend(&query, " AND %s", whereClause);
    215         psFree(whereClause);
     214        psString clause = psDBGenerateWhereConditionSQL(where, NULL);
     215        psStringAppend(&whereClause, "\nAND %s", clause);
     216        psFree(clause);
    216217    }
    217218    psFree(where);
     
    223224    }
    224225
    225     if (!p_psDBRunQuery(config->dbh, query)) {
    226         psError(PS_ERR_UNKNOWN, false, "Database error");
     226    if (!p_psDBRunQueryF(config->dbh, query, whereClause, whereClause)) {
     227        psError(PS_ERR_UNKNOWN, false, "Database error");
     228        psFree(whereClause);
    227229        psFree(query);
    228230        return false;
    229231    }
     232    psFree(whereClause);
    230233    psFree(query);
    231234
Note: See TracChangeset for help on using the changeset viewer.