IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2009, 3:08:59 PM (17 years ago)
Author:
bills
Message:

in -processedexp mode order results by cam_id so the postage stamp request
parser can easily find the 'latest' astrometry for an exposure.

File:
1 edited

Legend:

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

    r21402 r21443  
    655655    }
    656656
    657     // use psDBGenerateWhereConditionalSQL with AND ... because the SQL ends in a WHERE
    658657    if (psListLength(where->list)) {
    659658        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    660         psStringAppend(&query, " AND %s", whereClause);
     659        psStringAppend(&query, " WHERE %s", whereClause);
    661660        psFree(whereClause);
    662661    }
     
    677676        psFree(limitString);
    678677    }
     678
     679    // order by cam_id so that the postage stamp parser can easliy find the 'latest' astrometry
     680    psStringAppend(&query, "\nORDER BY cam_id");
    679681
    680682    if (!p_psDBRunQuery(config->dbh, query)) {
Note: See TracChangeset for help on using the changeset viewer.