IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2008, 12:37:00 PM (18 years ago)
Author:
bills
Message:

ds_id is an int not a string

File:
1 edited

Legend:

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

    r18717 r18974  
    220220    PXOPT_LOOKUP_STR(uri,         config->args, "-uri",           true, false);
    221221    // PXOPT_LOOKUP_STR(outFileset,  config->args, "-out_fileset",   true, false);
    222     PXOPT_LOOKUP_STR(ds_id,       config->args, "-ds_id",         false, false);
     222    PXOPT_LOOKUP_S32(ds_id,       config->args, "-ds_id",         false, false);
    223223
    224224    char *query ="INSERT INTO pstampRequest"
    225225                     " (state, uri, ds_id, fault)"
    226                      " VALUES( 'new', '%s', %s, 0 )";
     226                     " VALUES( 'new', '%s', %" PRId64 ", 0 )";
    227227    if (!p_psDBRunQuery(config->dbh, query, uri, ds_id)) {
    228228        psError(PS_ERR_UNKNOWN, false, "database error");
Note: See TracChangeset for help on using the changeset viewer.