IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2009, 12:49:41 PM (17 years ago)
Author:
bills
Message:

Add magicked column to camRun

File:
1 edited

Legend:

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

    r23590 r24681  
    119119}
    120120
    121 bool pxcamRunSetState(pxConfig *config, psS64 cam_id, const char *state)
     121bool pxcamRunSetState(pxConfig *config, psS64 cam_id, const char *state, psS64 magicked)
    122122{
    123123    PS_ASSERT_PTR_NON_NULL(config, false);
     
    131131    }
    132132
    133     char *query = "UPDATE camRun SET state = '%s' WHERE cam_id = %" PRId64;
    134     if (!p_psDBRunQueryF(config->dbh, query, state, cam_id)) {
     133    char *query = "UPDATE camRun SET state = '%s', SET magicked = %" PRId64 " WHERE cam_id = %" PRId64;
     134    if (!p_psDBRunQueryF(config->dbh, query, state, magicked, cam_id)) {
    135135        psError(PS_ERR_UNKNOWN, false,
    136136                "failed to change state for cam_id %" PRId64, cam_id);
Note: See TracChangeset for help on using the changeset viewer.