IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2007, 4:42:05 PM (19 years ago)
Author:
jhoblitt
Message:

update

File:
1 edited

Legend:

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

    r15343 r15420  
    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;
    319        summitExpRow    *object;
    3210
     
    10280        }
    10381
    104         object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string");
     82        object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -64);
    10583        if (!object) {
    10684            exit(EXIT_FAILURE);
     
    146124        }
    147125
    148         object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string");
     126        object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -64, "a string");
    149127        if (!object) {
    150128            exit(EXIT_FAILURE);
     
    168146        }
    169147
    170         object = newExpRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string");
     148        object = newExpRowAlloc(-64, "a string", "a string", "a string", "a string", -32, "a string", "a string");
    171149        if (!object) {
    172150            exit(EXIT_FAILURE);
     
    212190        }
    213191
    214         object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16);
     192        object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", -32, "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16);
    215193        if (!object) {
    216194            exit(EXIT_FAILURE);
     
    278256        }
    279257
    280         object = chipRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string");
     258        object = chipRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string");
    281259        if (!object) {
    282260            exit(EXIT_FAILURE);
     
    293271    {
    294272        psDB            *dbh;
     273        chipInputImfileRow *object;
     274
     275        dbh = psDBInit("localhost", "test", NULL, "test");
     276        if (!dbh) {
     277            exit(EXIT_FAILURE);
     278        }
     279
     280        object = chipInputImfileRowAlloc(-64, -64, "a string");
     281        if (!object) {
     282            exit(EXIT_FAILURE);
     283        }
     284
     285        if (!chipInputImfileInsertObject(dbh, object)) {
     286            exit(EXIT_FAILURE);
     287        }
     288
     289        psFree(object);
     290        psDBCleanup(dbh);
     291    }
     292
     293    {
     294        psDB            *dbh;
    295295        chipProcessedImfileRow *object;
    296296
     
    476476        }
    477477
    478         object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16);
     478        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64);
    479479        if (!object) {
    480480            exit(EXIT_FAILURE);
     
    520520        }
    521521
    522         object = diffInputSkyfileRowAlloc(-64, true, -64, -64, "a string", "a string", "a string");
     522        object = diffInputSkyfileRowAlloc(-64, -64, "a string", "a string", "a string", true);
    523523        if (!object) {
    524524            exit(EXIT_FAILURE);
     
    542542        }
    543543
    544         object = diffSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64, -16);
     544        object = diffSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64);
    545545        if (!object) {
    546546            exit(EXIT_FAILURE);
     
    608608        }
    609609
    610         object = stackSumSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64, -16);
     610        object = stackSumSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64);
    611611        if (!object) {
    612612            exit(EXIT_FAILURE);
     
    806806        }
    807807
    808         object = detResidImfileRowAlloc(-64, -32, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16);
     808        object = detResidImfileRowAlloc(-64, -32, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16);
    809809        if (!object) {
    810810            exit(EXIT_FAILURE);
     
    828828        }
    829829
    830         object = detResidExpRowAlloc(-64, -32, -64, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", true, -16);
     830        object = detResidExpRowAlloc(-64, -32, -64, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", true, -16);
    831831        if (!object) {
    832832            exit(EXIT_FAILURE);
     
    856856
    857857        if (!detRunSummaryInsertObject(dbh, object)) {
    858             exit(EXIT_FAILURE);
    859         }
    860 
    861         psFree(object);
    862         psDBCleanup(dbh);
    863     }
    864 
    865     {
    866         psDB            *dbh;
    867         detRegisteredImfileRow *object;
    868 
    869         dbh = psDBInit("localhost", "test", NULL, "test");
    870         if (!dbh) {
    871             exit(EXIT_FAILURE);
    872         }
    873 
    874         object = detRegisteredImfileRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16);
    875         if (!object) {
    876             exit(EXIT_FAILURE);
    877         }
    878 
    879         if (!detRegisteredImfileInsertObject(dbh, object)) {
    880             exit(EXIT_FAILURE);
    881         }
    882 
    883         psFree(object);
    884         psDBCleanup(dbh);
    885     }
    886 
    887     {
    888         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;
    933         magicRunRow     *object;
    934 
    935         dbh = psDBInit("localhost", "test", NULL, "test");
    936         if (!dbh) {
    937             exit(EXIT_FAILURE);
    938         }
    939 
    940         object = magicRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");
    941         if (!object) {
    942             exit(EXIT_FAILURE);
    943         }
    944 
    945         if (!magicRunInsertObject(dbh, object)) {
    946             exit(EXIT_FAILURE);
    947         }
    948 
    949         psFree(object);
    950         psDBCleanup(dbh);
    951     }
    952 
    953     {
    954         psDB            *dbh;
    955         magicInputSkyfileRow *object;
    956 
    957         dbh = psDBInit("localhost", "test", NULL, "test");
    958         if (!dbh) {
    959             exit(EXIT_FAILURE);
    960         }
    961 
    962         object = magicInputSkyfileRowAlloc(-64, -64, "a string");
    963         if (!object) {
    964             exit(EXIT_FAILURE);
    965         }
    966 
    967         if (!magicInputSkyfileInsertObject(dbh, object)) {
    968             exit(EXIT_FAILURE);
    969         }
    970 
    971         psFree(object);
    972         psDBCleanup(dbh);
    973     }
    974 
    975     {
    976         psDB            *dbh;
    977         magicTreeRow    *object;
    978 
    979         dbh = psDBInit("localhost", "test", NULL, "test");
    980         if (!dbh) {
    981             exit(EXIT_FAILURE);
    982         }
    983 
    984         object = magicTreeRowAlloc(-64, "a string", "a string");
    985         if (!object) {
    986             exit(EXIT_FAILURE);
    987         }
    988 
    989         if (!magicTreeInsertObject(dbh, object)) {
    990             exit(EXIT_FAILURE);
    991         }
    992 
    993         psFree(object);
    994         psDBCleanup(dbh);
    995     }
    996 
    997     {
    998         psDB            *dbh;
    999         magicNodeResultRow *object;
    1000 
    1001         dbh = psDBInit("localhost", "test", NULL, "test");
    1002         if (!dbh) {
    1003             exit(EXIT_FAILURE);
    1004         }
    1005 
    1006         object = magicNodeResultRowAlloc(-64, "a string", "a string");
    1007         if (!object) {
    1008             exit(EXIT_FAILURE);
    1009         }
    1010 
    1011         if (!magicNodeResultInsertObject(dbh, object)) {
    1012             exit(EXIT_FAILURE);
    1013         }
    1014 
    1015         psFree(object);
    1016         psDBCleanup(dbh);
    1017     }
    1018 
    1019     {
    1020         psDB            *dbh;
    1021         magicMaskRow    *object;
    1022 
    1023         dbh = psDBInit("localhost", "test", NULL, "test");
    1024         if (!dbh) {
    1025             exit(EXIT_FAILURE);
    1026         }
    1027 
    1028         object = magicMaskRowAlloc(-64, "a string");
    1029         if (!object) {
    1030             exit(EXIT_FAILURE);
    1031         }
    1032 
    1033         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)) {
    1056858            exit(EXIT_FAILURE);
    1057859        }
Note: See TracChangeset for help on using the changeset viewer.