IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2007, 3:16:08 PM (19 years ago)
Author:
jhoblitt
Message:

rename exp_id -> exp_name
rename exp_tag -> exp_id
add add rawExp.exp_tag for use as an external name only

File:
1 edited

Legend:

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

    r14018 r14023  
    2929#include "pxregister.h"
    3030
    31 bool pxnewExpSetState(pxConfig *config, const char *exp_tag, const char *state)
     31bool pxnewExpSetState(pxConfig *config, const char *exp_id, const char *state)
    3232{
    33     PS_ASSERT_PTR_NON_NULL(exp_tag, false);
     33    PS_ASSERT_PTR_NON_NULL(exp_id, false);
    3434    PS_ASSERT_PTR_NON_NULL(state, false);
    3535
     
    4646    }
    4747
    48     char *query = "UPDATE newExp SET state = '%s' WHERE exp_tag = '%s'";
    49     if (!p_psDBRunQuery(config->dbh, query, state, exp_tag)) {
     48    char *query = "UPDATE newExp SET state = '%s' WHERE exp_id = '%s'";
     49    if (!p_psDBRunQuery(config->dbh, query, state, exp_id)) {
    5050        psError(PS_ERR_UNKNOWN, false,
    51                 "failed to change state for exp_tag %s", exp_tag);
     51                "failed to change state for exp_id %s", exp_id);
    5252        return false;
    5353    }
Note: See TracChangeset for help on using the changeset viewer.