IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2009, 3:25:03 PM (17 years ago)
Author:
eugene
Message:

converting to the new formatting version of p_psDBRunQueryF where appropriate

File:
1 edited

Legend:

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

    r21308 r21402  
    140140
    141141    char *query = "UPDATE chipRun SET state = '%s' WHERE chip_id = %" PRId64;
    142     if (!p_psDBRunQuery(config->dbh, query, state, chip_id)) {
     142    if (!p_psDBRunQueryF(config->dbh, query, state, chip_id)) {
    143143        psError(PS_ERR_UNKNOWN, false,
    144144                "failed to change state for chip_id %" PRId64, chip_id);
     
    170170    }
    171171
    172     if (!p_psDBRunQuery(config->dbh, query, state)) {
     172    if (!p_psDBRunQueryF(config->dbh, query, state)) {
    173173        psFree(query);
    174174        psError(PS_ERR_UNKNOWN, false, "database error");
     
    188188
    189189    char *query = "UPDATE chipRun SET label = '%s' WHERE chip_id = %" PRId64;
    190     if (!p_psDBRunQuery(config->dbh, query, label, chip_id)) {
     190    if (!p_psDBRunQueryF(config->dbh, query, label, chip_id)) {
    191191        psError(PS_ERR_UNKNOWN, false,
    192192                "failed to change state for chip_id %" PRId64, chip_id);
     
    211211    }
    212212
    213     if (!p_psDBRunQuery(config->dbh, query, label)) {
     213    if (!p_psDBRunQueryF(config->dbh, query, label)) {
    214214        psFree(query);
    215215        psError(PS_ERR_UNKNOWN, false, "database error");
     
    269269                     "SELECT %" PRId64 ", class_id, 0 FROM rawImfile WHERE exp_id = %" PRId64;
    270270
    271     if (!p_psDBRunQuery(config->dbh, query, chip_id, exp_id)) {
     271    if (!p_psDBRunQueryF(config->dbh, query, chip_id, exp_id)) {
    272272        psError(PS_ERR_UNKNOWN, false, "database error");
    273273        // rollback
Note: See TracChangeset for help on using the changeset viewer.