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/insertfits.tt

    r4341 r5907  
    1 bool [% namespace %]InsertFits(psDB *dbh, const psFits *fits)
     1bool [% table.namespace %]InsertFits(psDB *dbh, const psFits *fits)
    22{
    33    psArray         *rowSet;
    44
    5     // move to (the first?) extension named  [% namespace FILTER upper %]_TABLE_NAME
    6     if (!psFitsMoveExtName(fits, [% namespace FILTER upper %]_TABLE_NAME)) {
    7         psError(PS_ERR_UNKNOWN, true, "failed to find FITS extension %s", [% namespace FILTER upper %]_TABLE_NAME);
     5    // move to (the first?) extension named  [% table.namespace FILTER upper %]_TABLE_NAME
     6    if (!psFitsMoveExtName(fits, [% table.namespace FILTER upper %]_TABLE_NAME)) {
     7        psError(PS_ERR_UNKNOWN, true, "failed to find FITS extension %s", [% table.namespace FILTER upper %]_TABLE_NAME);
    88        return false;
    99    }
     
    2323    }
    2424
    25     if (!psDBInsertRows(dbh, [% namespace FILTER upper %]_TABLE_NAME, rowSet)) {
     25    if (!psDBInsertRows(dbh, [% table.namespace FILTER upper %]_TABLE_NAME, rowSet)) {
    2626        psError(PS_ERR_UNKNOWN, false, "databse insert failed");
    2727        psFree(rowSet);
Note: See TracChangeset for help on using the changeset viewer.