IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 6, 2006, 6:46:10 PM (21 years ago)
Author:
jhoblitt
Message:

fix tests to work with per table data
minor pslib 0.9.0 compatibility fixes

File:
1 edited

Legend:

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

    r5907 r5950  
    55int main ()
    66{
    7     psDB            *dbh;
     7[% FOREACH table = tables -%]
     8    {
     9        psDB            *dbh;
    810
    9     dbh = psDBInit("localhost", "test", NULL, "test");
    10     if (!dbh) {
    11         exit(EXIT_FAILURE);
     11        dbh = psDBInit("localhost", "test", NULL, "test");
     12        if (!dbh) {
     13            exit(EXIT_FAILURE);
     14        }
     15
     16        if (![% table.namespace %]DropTable(dbh)) {
     17            exit(EXIT_FAILURE);
     18        }
     19
     20        psDBCleanup(dbh);
    1221    }
    1322
    14     if (![% table.namespace %]DropTable(dbh)) {
    15         exit(EXIT_FAILURE);
    16     }
    17 
    18     psDBCleanup(dbh);
    19 
     23[% END -%]
    2024    exit(EXIT_SUCCESS);
    2125}
Note: See TracChangeset for help on using the changeset viewer.