IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2006, 12:23:25 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.60

File:
1 edited

Legend:

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

    r10152 r10238  
    645645    {
    646646        psDB            *dbh;
    647         detMasterFrameRow *object;
    648 
    649         dbh = psDBInit("localhost", "test", NULL, "test");
    650         if (!dbh) {
    651             exit(EXIT_FAILURE);
    652         }
    653 
    654         object = detMasterFrameRowAlloc(-32, -32, "a string");
    655         if (!object) {
    656             exit(EXIT_FAILURE);
    657         }
    658 
    659         if (!detMasterFrameInsertObject(dbh, object)) {
    660             exit(EXIT_FAILURE);
    661         }
    662 
    663         psFree(object);
    664         psDBCleanup(dbh);
    665     }
    666 
    667     {
    668         psDB            *dbh;
    669         detMasterImfileRow *object;
    670 
    671         dbh = psDBInit("localhost", "test", NULL, "test");
    672         if (!dbh) {
    673             exit(EXIT_FAILURE);
    674         }
    675 
    676         object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string");
    677         if (!object) {
    678             exit(EXIT_FAILURE);
    679         }
    680 
    681         if (!detMasterImfileInsertObject(dbh, object)) {
    682             exit(EXIT_FAILURE);
    683         }
    684 
    685         psFree(object);
    686         psDBCleanup(dbh);
    687     }
    688 
    689     {
    690         psDB            *dbh;
    691647        detResidImfileRow *object;
    692648
Note: See TracChangeset for help on using the changeset viewer.