Changeset 8665 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Aug 28, 2006, 6:44:34 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r8543 r8665 425 425 { 426 426 psDB *dbh; 427 p2 DoneExpRow*object;428 429 dbh = psDBInit("localhost", "test", NULL, "test"); 430 if (!dbh) { 431 exit(EXIT_FAILURE); 432 } 433 434 object = p2 DoneExpRowAlloc("a string","a string", -32, -32);435 if (!object) { 436 exit(EXIT_FAILURE); 437 } 438 439 if (!p2 DoneExpInsertObject(dbh, object)) {440 exit(EXIT_FAILURE); 441 } 442 443 psFree(object); 444 psDBCleanup(dbh); 445 } 446 447 { 448 psDB *dbh; 449 p2 DoneImfileRow *object;450 451 dbh = psDBInit("localhost", "test", NULL, "test"); 452 if (!dbh) { 453 exit(EXIT_FAILURE); 454 } 455 456 object = p2 DoneImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32);457 if (!object) { 458 exit(EXIT_FAILURE); 459 } 460 461 if (!p2 DoneImfileInsertObject(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)) { 462 462 exit(EXIT_FAILURE); 463 463 } … … 476 476 } 477 477 478 object = p3PendingExpRowAlloc("a string", "a string",-32, -32);478 object = p3PendingExpRowAlloc("a string", -32, -32); 479 479 if (!object) { 480 480 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
