IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2007, 4:25:34 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.27

File:
1 edited

Legend:

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

    r14451 r14598  
    8080        }
    8181
    82         object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -64);
     82        object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string");
    8383        if (!object) {
    8484            exit(EXIT_FAILURE);
     
    124124        }
    125125
    126         object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -64, "a string");
     126        object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string");
    127127        if (!object) {
    128128            exit(EXIT_FAILURE);
     
    454454        }
    455455
    456         object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, -16);
     456        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16);
    457457        if (!object) {
    458458            exit(EXIT_FAILURE);
     
    856856
    857857        if (!detRegisteredImfileInsertObject(dbh, object)) {
     858            exit(EXIT_FAILURE);
     859        }
     860
     861        psFree(object);
     862        psDBCleanup(dbh);
     863    }
     864
     865    {
     866        psDB            *dbh;
     867        magicRunRow     *object;
     868
     869        dbh = psDBInit("localhost", "test", NULL, "test");
     870        if (!dbh) {
     871            exit(EXIT_FAILURE);
     872        }
     873
     874        object = magicRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");
     875        if (!object) {
     876            exit(EXIT_FAILURE);
     877        }
     878
     879        if (!magicRunInsertObject(dbh, object)) {
     880            exit(EXIT_FAILURE);
     881        }
     882
     883        psFree(object);
     884        psDBCleanup(dbh);
     885    }
     886
     887    {
     888        psDB            *dbh;
     889        magicInputSkyfileRow *object;
     890
     891        dbh = psDBInit("localhost", "test", NULL, "test");
     892        if (!dbh) {
     893            exit(EXIT_FAILURE);
     894        }
     895
     896        object = magicInputSkyfileRowAlloc(-64, -64, -32);
     897        if (!object) {
     898            exit(EXIT_FAILURE);
     899        }
     900
     901        if (!magicInputSkyfileInsertObject(dbh, object)) {
     902            exit(EXIT_FAILURE);
     903        }
     904
     905        psFree(object);
     906        psDBCleanup(dbh);
     907    }
     908
     909    {
     910        psDB            *dbh;
     911        magicTreeRow    *object;
     912
     913        dbh = psDBInit("localhost", "test", NULL, "test");
     914        if (!dbh) {
     915            exit(EXIT_FAILURE);
     916        }
     917
     918        object = magicTreeRowAlloc(-64, "a string", "a string");
     919        if (!object) {
     920            exit(EXIT_FAILURE);
     921        }
     922
     923        if (!magicTreeInsertObject(dbh, object)) {
     924            exit(EXIT_FAILURE);
     925        }
     926
     927        psFree(object);
     928        psDBCleanup(dbh);
     929    }
     930
     931    {
     932        psDB            *dbh;
     933        magicNodeResultRow *object;
     934
     935        dbh = psDBInit("localhost", "test", NULL, "test");
     936        if (!dbh) {
     937            exit(EXIT_FAILURE);
     938        }
     939
     940        object = magicNodeResultRowAlloc(-64, "a string", "a string");
     941        if (!object) {
     942            exit(EXIT_FAILURE);
     943        }
     944
     945        if (!magicNodeResultInsertObject(dbh, object)) {
     946            exit(EXIT_FAILURE);
     947        }
     948
     949        psFree(object);
     950        psDBCleanup(dbh);
     951    }
     952
     953    {
     954        psDB            *dbh;
     955        magicMaskRow    *object;
     956
     957        dbh = psDBInit("localhost", "test", NULL, "test");
     958        if (!dbh) {
     959            exit(EXIT_FAILURE);
     960        }
     961
     962        object = magicMaskRowAlloc(-64, "a string");
     963        if (!object) {
     964            exit(EXIT_FAILURE);
     965        }
     966
     967        if (!magicMaskInsertObject(dbh, object)) {
    858968            exit(EXIT_FAILURE);
    859969        }
Note: See TracChangeset for help on using the changeset viewer.