IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2007, 5:14:16 PM (19 years ago)
Author:
jhoblitt
Message:

add flatcorr tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/insertobject.c

    r15569 r15576  
    11051105    }
    11061106
     1107    {
     1108        psDB            *dbh;
     1109        flatcorrRunRow  *object;
     1110
     1111        dbh = psDBInit("localhost", "test", NULL, "test");
     1112        if (!dbh) {
     1113            exit(EXIT_FAILURE);
     1114        }
     1115
     1116        object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string");
     1117        if (!object) {
     1118            exit(EXIT_FAILURE);
     1119        }
     1120
     1121        if (!flatcorrRunInsertObject(dbh, object)) {
     1122            exit(EXIT_FAILURE);
     1123        }
     1124
     1125        psFree(object);
     1126        psDBCleanup(dbh);
     1127    }
     1128
     1129    {
     1130        psDB            *dbh;
     1131        flatcorrExpRow  *object;
     1132
     1133        dbh = psDBInit("localhost", "test", NULL, "test");
     1134        if (!dbh) {
     1135            exit(EXIT_FAILURE);
     1136        }
     1137
     1138        object = flatcorrExpRowAlloc(-64, -64, "a string");
     1139        if (!object) {
     1140            exit(EXIT_FAILURE);
     1141        }
     1142
     1143        if (!flatcorrExpInsertObject(dbh, object)) {
     1144            exit(EXIT_FAILURE);
     1145        }
     1146
     1147        psFree(object);
     1148        psDBCleanup(dbh);
     1149    }
     1150
    11071151    exit(EXIT_SUCCESS);
    11081152}
Note: See TracChangeset for help on using the changeset viewer.