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

    r4326 r5907  
    88{
    99    psDB            *dbh;
    10     [% indented(object_name, "*object") %];
     10    [% indented(table.object_name, "*object") %];
    1111
    1212    dbh = psDBInit("localhost", "test", NULL, "test");
     
    1515    }
    1616
    17     object = [% object_name %]Alloc(
     17    object = [% table.object_name %]Alloc(
    1818[%- SET i = 0 -%]
    19 [%- FOREACH item = columns -%]
     19[%- FOREACH item = table.columns -%]
    2020    [%- IF i == 0 -%][%- i = 1 -%][%- ELSE -%], [% END -%] [%- item.test -%]
    2121[%- END -%]
     
    2525    }
    2626
    27     if (![% namespace %]InsertObject(dbh, object)) {
     27    if (![% table.namespace %]InsertObject(dbh, object)) {
    2828        exit(EXIT_FAILURE);
    2929    }
Note: See TracChangeset for help on using the changeset viewer.