IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 21, 2007, 4:29:12 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.10

File:
1 edited

Legend:

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

    r11873 r11988  
    755755    {
    756756        psDB            *dbh;
    757         p4ScfileRow     *object;
    758 
    759         dbh = psDBInit("localhost", "test", NULL, "test");
    760         if (!dbh) {
    761             exit(EXIT_FAILURE);
    762         }
    763 
    764         object = p4ScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64);
    765         if (!object) {
    766             exit(EXIT_FAILURE);
    767         }
    768 
    769         if (!p4ScfileInsertObject(dbh, object)) {
     757        p4SkyfileRow    *object;
     758
     759        dbh = psDBInit("localhost", "test", NULL, "test");
     760        if (!dbh) {
     761            exit(EXIT_FAILURE);
     762        }
     763
     764        object = p4SkyfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64);
     765        if (!object) {
     766            exit(EXIT_FAILURE);
     767        }
     768
     769        if (!p4SkyfileInsertObject(dbh, object)) {
    770770            exit(EXIT_FAILURE);
    771771        }
     
    784784        }
    785785
    786         object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z");
     786        object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string");
    787787        if (!object) {
    788788            exit(EXIT_FAILURE);
     
    799799    {
    800800        psDB            *dbh;
    801         p5InputScfileRow *object;
    802 
    803         dbh = psDBInit("localhost", "test", NULL, "test");
    804         if (!dbh) {
    805             exit(EXIT_FAILURE);
    806         }
    807 
    808         object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", true);
    809         if (!object) {
    810             exit(EXIT_FAILURE);
    811         }
    812 
    813         if (!p5InputScfileInsertObject(dbh, object)) {
    814             exit(EXIT_FAILURE);
    815         }
    816 
    817         psFree(object);
    818         psDBCleanup(dbh);
    819     }
    820 
    821     {
    822         psDB            *dbh;
    823         p5DiffScfileRow *object;
    824 
    825         dbh = psDBInit("localhost", "test", NULL, "test");
    826         if (!dbh) {
    827             exit(EXIT_FAILURE);
    828         }
    829 
    830         object = p5DiffScfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64);
    831         if (!object) {
    832             exit(EXIT_FAILURE);
    833         }
    834 
    835         if (!p5DiffScfileInsertObject(dbh, object)) {
     801        p5InputSkyfileRow *object;
     802
     803        dbh = psDBInit("localhost", "test", NULL, "test");
     804        if (!dbh) {
     805            exit(EXIT_FAILURE);
     806        }
     807
     808        object = p5InputSkyfileRowAlloc(-32, -32, "a string", "a string", "a string", true);
     809        if (!object) {
     810            exit(EXIT_FAILURE);
     811        }
     812
     813        if (!p5InputSkyfileInsertObject(dbh, object)) {
     814            exit(EXIT_FAILURE);
     815        }
     816
     817        psFree(object);
     818        psDBCleanup(dbh);
     819    }
     820
     821    {
     822        psDB            *dbh;
     823        p5DiffSkyfileRow *object;
     824
     825        dbh = psDBInit("localhost", "test", NULL, "test");
     826        if (!dbh) {
     827            exit(EXIT_FAILURE);
     828        }
     829
     830        object = p5DiffSkyfileRowAlloc(-32, "a string", 64.64, 64.64);
     831        if (!object) {
     832            exit(EXIT_FAILURE);
     833        }
     834
     835        if (!p5DiffSkyfileInsertObject(dbh, object)) {
    836836            exit(EXIT_FAILURE);
    837837        }
     
    850850        }
    851851
    852         object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z");
     852        object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string");
    853853        if (!object) {
    854854            exit(EXIT_FAILURE);
     
    865865    {
    866866        psDB            *dbh;
    867         p6InputScfileRow *object;
    868 
    869         dbh = psDBInit("localhost", "test", NULL, "test");
    870         if (!dbh) {
    871             exit(EXIT_FAILURE);
    872         }
    873 
    874         object = p6InputScfileRowAlloc(-32, -32, "a string", "a string");
    875         if (!object) {
    876             exit(EXIT_FAILURE);
    877         }
    878 
    879         if (!p6InputScfileInsertObject(dbh, object)) {
    880             exit(EXIT_FAILURE);
    881         }
    882 
    883         psFree(object);
    884         psDBCleanup(dbh);
    885     }
    886 
    887     {
    888         psDB            *dbh;
    889         p6SumScfileRow *object;
    890 
    891         dbh = psDBInit("localhost", "test", NULL, "test");
    892         if (!dbh) {
    893             exit(EXIT_FAILURE);
    894         }
    895 
    896         object = p6SumScfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64);
    897         if (!object) {
    898             exit(EXIT_FAILURE);
    899         }
    900 
    901         if (!p6SumScfileInsertObject(dbh, object)) {
     867        p6InputSkyfileRow *object;
     868
     869        dbh = psDBInit("localhost", "test", NULL, "test");
     870        if (!dbh) {
     871            exit(EXIT_FAILURE);
     872        }
     873
     874        object = p6InputSkyfileRowAlloc(-32, -32);
     875        if (!object) {
     876            exit(EXIT_FAILURE);
     877        }
     878
     879        if (!p6InputSkyfileInsertObject(dbh, object)) {
     880            exit(EXIT_FAILURE);
     881        }
     882
     883        psFree(object);
     884        psDBCleanup(dbh);
     885    }
     886
     887    {
     888        psDB            *dbh;
     889        p6SumSkyfileRow *object;
     890
     891        dbh = psDBInit("localhost", "test", NULL, "test");
     892        if (!dbh) {
     893            exit(EXIT_FAILURE);
     894        }
     895
     896        object = p6SumSkyfileRowAlloc(-32, "a string", 64.64, 64.64);
     897        if (!object) {
     898            exit(EXIT_FAILURE);
     899        }
     900
     901        if (!p6SumSkyfileInsertObject(dbh, object)) {
    902902            exit(EXIT_FAILURE);
    903903        }
Note: See TracChangeset for help on using the changeset viewer.