IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8288


Ignore:
Timestamp:
Aug 10, 2006, 7:26:49 PM (20 years ago)
Author:
jhoblitt
Message:

updated -pending

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r8286 r8288  
    110110    PS_ASSERT_PTR_NON_NULL(config, NULL);
    111111
    112      char *query = "SELECT rawDetrendExp.* FROM rawDetrendExp"
     112     psString query = psStringCopy("SELECT rawDetrendExp.* FROM rawDetrendExp"
    113113        " LEFT JOIN detInputExp ON rawDetrendExp.exp_id = detInputExp.exp_id"
    114         " WHERE detInputExp.exp_id IS NULL";
     114        " WHERE detInputExp.exp_id IS NULL");
     115
     116    if (config->where) {
     117        psString whereClaus = psDBGenerateWhereConditionSQL(config->where);
     118        psStringAppend(&query, " AND %s", whereClaus);
     119        psFree(whereClaus);
     120    }
    115121
    116122    if (!p_psDBRunQuery(config->dbh, query)) {
    117123        psError(PS_ERR_UNKNOWN, false, "database error");
     124        psFree(query);
    118125        return false;
    119126    }
     127    psFree(query);
    120128
    121129    psArray *output = p_psDBFetchResult(config->dbh);
  • trunk/ippTools/src/dettoolConfig.c

    r8286 r8288  
    2323    // -pending
    2424    psMetadata *pendingArgs = psMetadataAlloc();
     25    psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-exp_id",  0,
     26            "search by exposure ID", NULL);
     27    psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-exp_type",  0,
     28            "search by exposure type", NULL);
    2529    psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-inst",  0,
    26             "define camera of interest", NULL);
     30            "search by camera", NULL);
    2731    psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-telescope",  0,
    28             "define telescope of interest", NULL);
     32            "search by telescope", NULL);
    2933    psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-filter",  0,
    30             "define filter of interest", NULL);
    31     psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-exp_id",  0,
    32             "define exposure ID", NULL);
    33     psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-exp_type",  0,
    34             "define exposure type", NULL);
     34            "search by filter", NULL);
    3535    psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-uri",  0,
    36             "define URL", NULL);
     36            "searc hby URL", NULL);
    3737    psMetadataAddBool(pendingArgs, PS_LIST_TAIL, "-simple",  0,
    3838            "use the simple output format", false);
Note: See TracChangeset for help on using the changeset viewer.