Changeset 8380 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Aug 15, 2006, 6:14:10 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r8368 r8380 608 608 } 609 609 610 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string" , "a string");610 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string"); 611 611 if (!object) { 612 612 exit(EXIT_FAILURE); … … 667 667 { 668 668 psDB *dbh; 669 detResidImfile AnalysisRow *object;670 671 dbh = psDBInit("localhost", "test", NULL, "test"); 672 if (!dbh) { 673 exit(EXIT_FAILURE); 674 } 675 676 object = detResidImfile AnalysisRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string");677 if (!object) { 678 exit(EXIT_FAILURE); 679 } 680 681 if (!detResidImfile AnalysisInsertObject(dbh, object)) {682 exit(EXIT_FAILURE); 683 } 684 685 psFree(object); 686 psDBCleanup(dbh); 687 } 688 689 { 690 psDB *dbh; 691 detResidExp AnalysisRow*object;692 693 dbh = psDBInit("localhost", "test", NULL, "test"); 694 if (!dbh) { 695 exit(EXIT_FAILURE); 696 } 697 698 object = detResidExp AnalysisRowAlloc(-32, -32, "a string", "a string", true, true);699 if (!object) { 700 exit(EXIT_FAILURE); 701 } 702 703 if (!detResidExp AnalysisInsertObject(dbh, object)) {669 detResidImfileRow *object; 670 671 dbh = psDBInit("localhost", "test", NULL, "test"); 672 if (!dbh) { 673 exit(EXIT_FAILURE); 674 } 675 676 object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string"); 677 if (!object) { 678 exit(EXIT_FAILURE); 679 } 680 681 if (!detResidImfileInsertObject(dbh, object)) { 682 exit(EXIT_FAILURE); 683 } 684 685 psFree(object); 686 psDBCleanup(dbh); 687 } 688 689 { 690 psDB *dbh; 691 detResidExpRow *object; 692 693 dbh = psDBInit("localhost", "test", NULL, "test"); 694 if (!dbh) { 695 exit(EXIT_FAILURE); 696 } 697 698 object = detResidExpRowAlloc(-32, -32, "a string", "a string", true, true); 699 if (!object) { 700 exit(EXIT_FAILURE); 701 } 702 703 if (!detResidExpInsertObject(dbh, object)) { 704 704 exit(EXIT_FAILURE); 705 705 }
Note:
See TracChangeset
for help on using the changeset viewer.
