Changeset 5950 for trunk/glueforge/templates/psdb/popobject_c.tt
- Timestamp:
- Jan 6, 2006, 6:46:10 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/glueforge/templates/psdb/popobject_c.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/glueforge/templates/psdb/popobject_c.tt
r5907 r5950 7 7 int main () 8 8 { 9 psDB *dbh; 10 [% indented(table.object_name, "*object") %]; 9 [% FOREACH table = tables -%] 10 { 11 psDB *dbh; 12 [% indented(table.object_name, "*object") %]; 11 13 12 dbh = psDBInit("localhost", "test", NULL, "test"); 13 if (!dbh) { 14 exit(EXIT_FAILURE); 14 dbh = psDBInit("localhost", "test", NULL, "test"); 15 if (!dbh) { 16 exit(EXIT_FAILURE); 17 } 18 19 object = [% table.namespace %]PopObject(dbh); 20 if (!object) { 21 exit(EXIT_FAILURE); 22 } 23 24 psFree(object); 25 psDBCleanup(dbh); 15 26 } 16 27 17 object = [% table.namespace %]PopObject(dbh); 18 if (!object) { 19 exit(EXIT_FAILURE); 20 } 21 22 psFree(object); 23 psDBCleanup(dbh); 24 28 [% END -%] 25 29 exit(EXIT_SUCCESS); 26 30 }
Note:
See TracChangeset
for help on using the changeset viewer.
