Changeset 4326 for trunk/glueforge/templates/psdb/insert_c.tt
- Timestamp:
- Jun 20, 2005, 2:54:17 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/glueforge/templates/psdb/insert_c.tt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/glueforge/templates/psdb/insert_c.tt
r4196 r4326 8 8 { 9 9 psDB *dbh; 10 bool status;11 10 12 11 dbh = psDBInit("localhost", "test", NULL, "test"); … … 15 14 } 16 15 17 status =[% namespace %]Insert(dbh,16 if (![% namespace %]Insert(dbh, 18 17 [%- SET i = 0 -%] 19 18 [%- FOREACH item = columns -%] 20 19 [%- IF i == 0 -%][%- i = 1 -%][%- ELSE -%], [% END -%] [%- item.test -%] 21 20 [%- END -%] 22 ); 23 24 if (!status) { 21 )) { 25 22 exit(EXIT_FAILURE); 26 23 }
Note:
See TracChangeset
for help on using the changeset viewer.
