IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2005, 11:55:33 AM (21 years ago)
Author:
jhoblitt
Message:

add const to params where appropriate
tt cleanup

File:
1 edited

Legend:

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

    r4169 r4196  
    66    md = psMetadataAlloc();
    77    psMetadataAdd(md, PS_LIST_TAIL, "position", PS_META_S32, "AUTO_INCREMENT", 0.0);
    8     [%- FOREACH item = columns %]
    9         [%- IF item.comment;
    10                 SET item.comment = "\"$item.comment\"";
    11             ELSE;
    12                 SET item.comment = 'NULL';
    13             END;
    14         %]
    15         [%- IF item.mtype == "PS_META_STR" %]
     8[% FOREACH item = columns %]
     9[% IF item.comment;
     10    SET item.comment = "\"$item.comment\"";
     11ELSE;
     12    SET item.comment = 'NULL';
     13END;
     14-%]
     15[% IF item.mtype == "PS_META_STR" %]
    1616    psMetadataAdd(md, PS_LIST_TAIL, "[% item.name %]", [% item.mtype %], [% item.comment %], "[% item.value %]");
    17         [%- ELSE %]
     17[% ELSE -%]
    1818    psMetadataAdd(md, PS_LIST_TAIL, "[% item.name %]", [% item.mtype %], [% item.comment %], [% item.value %]);
    19         [%- END %]
    20     [%- END %]
     19[% END -%]
     20[% END -%]
    2121    status = psDBCreateTable(dbh, [% namespace FILTER upper %]_TABLE_NAME, md);
    2222    psFree(md);
Note: See TracChangeset for help on using the changeset viewer.