IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2007, 3:55:36 PM (19 years ago)
Author:
jhoblitt
Message:

add calibration.md

File:
1 edited

Legend:

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

    r15530 r15569  
    10611061    }
    10621062
     1063    {
     1064        psDB            *dbh;
     1065        calDBRow        *object;
     1066
     1067        dbh = psDBInit("localhost", "test", NULL, "test");
     1068        if (!dbh) {
     1069            exit(EXIT_FAILURE);
     1070        }
     1071
     1072        object = calDBRowAlloc(-64, "a string", "a string");
     1073        if (!object) {
     1074            exit(EXIT_FAILURE);
     1075        }
     1076
     1077        if (!calDBInsertObject(dbh, object)) {
     1078            exit(EXIT_FAILURE);
     1079        }
     1080
     1081        psFree(object);
     1082        psDBCleanup(dbh);
     1083    }
     1084
     1085    {
     1086        psDB            *dbh;
     1087        calRunRow       *object;
     1088
     1089        dbh = psDBInit("localhost", "test", NULL, "test");
     1090        if (!dbh) {
     1091            exit(EXIT_FAILURE);
     1092        }
     1093
     1094        object = calRunRowAlloc(-64, "a string", "a string", "a string");
     1095        if (!object) {
     1096            exit(EXIT_FAILURE);
     1097        }
     1098
     1099        if (!calRunInsertObject(dbh, object)) {
     1100            exit(EXIT_FAILURE);
     1101        }
     1102
     1103        psFree(object);
     1104        psDBCleanup(dbh);
     1105    }
     1106
    10631107    exit(EXIT_SUCCESS);
    10641108}
Note: See TracChangeset for help on using the changeset viewer.