IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2006, 2:16:35 PM (21 years ago)
Author:
jhoblitt
Message:

split global and per table data
forward port generated code to pslib 0.9.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/templates/psdb/popfits.tt

    r4341 r5907  
    1 bool [% namespace %]PopFits(psDB *dbh, psFits *fits, unsigned long long limit)
     1bool [% table.namespace %]PopFits(psDB *dbh, psFits *fits, unsigned long long limit)
    22{
    33    char            query[MAX_STRING_LENGTH];
     
    1111    if (snprintf(query, MAX_STRING_LENGTH,
    1212                "DELETE FROM %s ORDER BY %s DESC LIMIT %lld",
    13                 [% namespace FILTER upper %]_TABLE_NAME, [% namespace FILTER upper %]_INDEX_NAME, limit) < 0) {
     13                [% table.namespace FILTER upper %]_TABLE_NAME, [% table.namespace FILTER upper %]_INDEX_NAME, limit) < 0) {
    1414        psError(PS_ERR_UNKNOWN, true, "query value attempted to exceed %s bytes", MAX_STRING_LENGTH);
    1515        return false;
Note: See TracChangeset for help on using the changeset viewer.