IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2006, 2:19:43 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.56

File:
1 edited

Legend:

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

    r9970 r10060  
    1414        }
    1515
    16         object = summitExpRowAlloc("a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string");
     16        object = summitExpRowAlloc("a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", -32);
    1717        if (!object) {
    1818            exit(EXIT_FAILURE);
     
    2929    {
    3030        psDB            *dbh;
     31        summitImfileRow *object;
     32
     33        dbh = psDBInit("localhost", "test", NULL, "test");
     34        if (!dbh) {
     35            exit(EXIT_FAILURE);
     36        }
     37
     38        object = summitImfileRowAlloc("a string", "a string", "a string", -32, "a string", "a string", "a string", "a string");
     39        if (!object) {
     40            exit(EXIT_FAILURE);
     41        }
     42
     43        if (!summitImfileInsertObject(dbh, object)) {
     44            exit(EXIT_FAILURE);
     45        }
     46
     47        psFree(object);
     48        psDBCleanup(dbh);
     49    }
     50
     51    {
     52        psDB            *dbh;
    3153        pzPendingExpRow *object;
    3254
     
    3658        }
    3759
    38         object = pzPendingExpRowAlloc("a string", "a string", "a string", "a string", -32);
     60        object = pzPendingExpRowAlloc("a string", "a string", "a string");
    3961        if (!object) {
    4062            exit(EXIT_FAILURE);
     
    5880        }
    5981
    60         object = pzPendingImfileRowAlloc("a string", "a string", "a string", -32, "a string", "a string", "a string", "a string");
     82        object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string");
    6183        if (!object) {
    6284            exit(EXIT_FAILURE);
     
    7395    {
    7496        psDB            *dbh;
     97        pzDoneExpRow    *object;
     98
     99        dbh = psDBInit("localhost", "test", NULL, "test");
     100        if (!dbh) {
     101            exit(EXIT_FAILURE);
     102        }
     103
     104        object = pzDoneExpRowAlloc("a string", "a string", "a string");
     105        if (!object) {
     106            exit(EXIT_FAILURE);
     107        }
     108
     109        if (!pzDoneExpInsertObject(dbh, object)) {
     110            exit(EXIT_FAILURE);
     111        }
     112
     113        psFree(object);
     114        psDBCleanup(dbh);
     115    }
     116
     117    {
     118        psDB            *dbh;
     119        pzDoneImfileRow *object;
     120
     121        dbh = psDBInit("localhost", "test", NULL, "test");
     122        if (!dbh) {
     123            exit(EXIT_FAILURE);
     124        }
     125
     126        object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", "a string");
     127        if (!object) {
     128            exit(EXIT_FAILURE);
     129        }
     130
     131        if (!pzDoneImfileInsertObject(dbh, object)) {
     132            exit(EXIT_FAILURE);
     133        }
     134
     135        psFree(object);
     136        psDBCleanup(dbh);
     137    }
     138
     139    {
     140        psDB            *dbh;
    75141        newExpRow       *object;
    76142
     
    80146        }
    81147
    82         object = newExpRowAlloc("a string", "a string", "a string", "a string", "a string", -32);
     148        object = newExpRowAlloc(64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32);
    83149        if (!object) {
    84150            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.