Changeset 5907 for trunk/glueforge/templates/psdb/insertfits.tt
- Timestamp:
- Jan 5, 2006, 2:16:35 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/glueforge/templates/psdb/insertfits.tt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/glueforge/templates/psdb/insertfits.tt
r4341 r5907 1 bool [% namespace %]InsertFits(psDB *dbh, const psFits *fits)1 bool [% table.namespace %]InsertFits(psDB *dbh, const psFits *fits) 2 2 { 3 3 psArray *rowSet; 4 4 5 // move to (the first?) extension named [% namespace FILTER upper %]_TABLE_NAME6 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); 8 8 return false; 9 9 } … … 23 23 } 24 24 25 if (!psDBInsertRows(dbh, [% namespace FILTER upper %]_TABLE_NAME, rowSet)) {25 if (!psDBInsertRows(dbh, [% table.namespace FILTER upper %]_TABLE_NAME, rowSet)) { 26 26 psError(PS_ERR_UNKNOWN, false, "databse insert failed"); 27 27 psFree(rowSet);
Note:
See TracChangeset
for help on using the changeset viewer.
