IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 19, 2007, 3:59:06 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.28

File:
1 edited

Legend:

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

    r15003 r15343  
    77    {
    88        psDB            *dbh;
     9        pzDataStoreRow  *object;
     10
     11        dbh = psDBInit("localhost", "test", NULL, "test");
     12        if (!dbh) {
     13            exit(EXIT_FAILURE);
     14        }
     15
     16        object = pzDataStoreRowAlloc("a string", "a string", "a string");
     17        if (!object) {
     18            exit(EXIT_FAILURE);
     19        }
     20
     21        if (!pzDataStoreInsertObject(dbh, object)) {
     22            exit(EXIT_FAILURE);
     23        }
     24
     25        psFree(object);
     26        psDBCleanup(dbh);
     27    }
     28
     29    {
     30        psDB            *dbh;
    931        summitExpRow    *object;
    1032
     
    865887    {
    866888        psDB            *dbh;
     889        detCorrectedExpRow *object;
     890
     891        dbh = psDBInit("localhost", "test", NULL, "test");
     892        if (!dbh) {
     893            exit(EXIT_FAILURE);
     894        }
     895
     896        object = detCorrectedExpRowAlloc(-64, -64, "a string", -64, "a string", "a string", "a string", -16);
     897        if (!object) {
     898            exit(EXIT_FAILURE);
     899        }
     900
     901        if (!detCorrectedExpInsertObject(dbh, object)) {
     902            exit(EXIT_FAILURE);
     903        }
     904
     905        psFree(object);
     906        psDBCleanup(dbh);
     907    }
     908
     909    {
     910        psDB            *dbh;
     911        detCorrectedImfileRow *object;
     912
     913        dbh = psDBInit("localhost", "test", NULL, "test");
     914        if (!dbh) {
     915            exit(EXIT_FAILURE);
     916        }
     917
     918        object = detCorrectedImfileRowAlloc(-64, -64, "a string", "a string", "a string", -16);
     919        if (!object) {
     920            exit(EXIT_FAILURE);
     921        }
     922
     923        if (!detCorrectedImfileInsertObject(dbh, object)) {
     924            exit(EXIT_FAILURE);
     925        }
     926
     927        psFree(object);
     928        psDBCleanup(dbh);
     929    }
     930
     931    {
     932        psDB            *dbh;
    867933        magicRunRow     *object;
    868934
     
    9661032
    9671033        if (!magicMaskInsertObject(dbh, object)) {
     1034            exit(EXIT_FAILURE);
     1035        }
     1036
     1037        psFree(object);
     1038        psDBCleanup(dbh);
     1039    }
     1040
     1041    {
     1042        psDB            *dbh;
     1043        magicSkyfileMaskRow *object;
     1044
     1045        dbh = psDBInit("localhost", "test", NULL, "test");
     1046        if (!dbh) {
     1047            exit(EXIT_FAILURE);
     1048        }
     1049
     1050        object = magicSkyfileMaskRowAlloc(-64, -64, "a string");
     1051        if (!object) {
     1052            exit(EXIT_FAILURE);
     1053        }
     1054
     1055        if (!magicSkyfileMaskInsertObject(dbh, object)) {
    9681056            exit(EXIT_FAILURE);
    9691057        }
Note: See TracChangeset for help on using the changeset viewer.