IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 28, 2006, 6:44:34 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.34

File:
1 edited

Legend:

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

    r8543 r8665  
    425425    {
    426426        psDB            *dbh;
    427         p2DoneExpRow    *object;
    428 
    429         dbh = psDBInit("localhost", "test", NULL, "test");
    430         if (!dbh) {
    431             exit(EXIT_FAILURE);
    432         }
    433 
    434         object = p2DoneExpRowAlloc("a string", "a string", -32, -32);
    435         if (!object) {
    436             exit(EXIT_FAILURE);
    437         }
    438 
    439         if (!p2DoneExpInsertObject(dbh, object)) {
    440             exit(EXIT_FAILURE);
    441         }
    442 
    443         psFree(object);
    444         psDBCleanup(dbh);
    445     }
    446 
    447     {
    448         psDB            *dbh;
    449         p2DoneImfileRow *object;
    450 
    451         dbh = psDBInit("localhost", "test", NULL, "test");
    452         if (!dbh) {
    453             exit(EXIT_FAILURE);
    454         }
    455 
    456         object = p2DoneImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32);
    457         if (!object) {
    458             exit(EXIT_FAILURE);
    459         }
    460 
    461         if (!p2DoneImfileInsertObject(dbh, object)) {
     427        p2ProcessedExpRow *object;
     428
     429        dbh = psDBInit("localhost", "test", NULL, "test");
     430        if (!dbh) {
     431            exit(EXIT_FAILURE);
     432        }
     433
     434        object = p2ProcessedExpRowAlloc("a string", -32, -32);
     435        if (!object) {
     436            exit(EXIT_FAILURE);
     437        }
     438
     439        if (!p2ProcessedExpInsertObject(dbh, object)) {
     440            exit(EXIT_FAILURE);
     441        }
     442
     443        psFree(object);
     444        psDBCleanup(dbh);
     445    }
     446
     447    {
     448        psDB            *dbh;
     449        p2ProcessedImfileRow *object;
     450
     451        dbh = psDBInit("localhost", "test", NULL, "test");
     452        if (!dbh) {
     453            exit(EXIT_FAILURE);
     454        }
     455
     456        object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32);
     457        if (!object) {
     458            exit(EXIT_FAILURE);
     459        }
     460
     461        if (!p2ProcessedImfileInsertObject(dbh, object)) {
    462462            exit(EXIT_FAILURE);
    463463        }
     
    476476        }
    477477
    478         object = p3PendingExpRowAlloc("a string", "a string", -32, -32);
     478        object = p3PendingExpRowAlloc("a string", -32, -32);
    479479        if (!object) {
    480480            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.