IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2006, 11:25:59 AM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.52

File:
1 edited

Legend:

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

    r9705 r9783  
    212212        }
    213213
    214         object = p2PendingExpRowAlloc("a string", "a string", -32, -32);
     214        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string");
    215215        if (!object) {
    216216            exit(EXIT_FAILURE);
     
    256256        }
    257257
    258         object = p2ProcessedExpRowAlloc("a string", -32, -32);
     258        object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string");
    259259        if (!object) {
    260260            exit(EXIT_FAILURE);
     
    262262
    263263        if (!p2ProcessedExpInsertObject(dbh, object)) {
     264            exit(EXIT_FAILURE);
     265        }
     266
     267        psFree(object);
     268        psDBCleanup(dbh);
     269    }
     270
     271    {
     272        psDB            *dbh;
     273        p2MaskRow       *object;
     274
     275        dbh = psDBInit("localhost", "test", NULL, "test");
     276        if (!dbh) {
     277            exit(EXIT_FAILURE);
     278        }
     279
     280        object = p2MaskRowAlloc("a string");
     281        if (!object) {
     282            exit(EXIT_FAILURE);
     283        }
     284
     285        if (!p2MaskInsertObject(dbh, object)) {
    264286            exit(EXIT_FAILURE);
    265287        }
Note: See TracChangeset for help on using the changeset viewer.