Changeset 11809 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Feb 14, 2007, 4:02:28 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r11780 r11809 775 775 } 776 776 777 { 778 psDB *dbh; 779 p5RunRow *object; 780 781 dbh = psDBInit("localhost", "test", NULL, "test"); 782 if (!dbh) { 783 exit(EXIT_FAILURE); 784 } 785 786 object = p5RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z"); 787 if (!object) { 788 exit(EXIT_FAILURE); 789 } 790 791 if (!p5RunInsertObject(dbh, object)) { 792 exit(EXIT_FAILURE); 793 } 794 795 psFree(object); 796 psDBCleanup(dbh); 797 } 798 799 { 800 psDB *dbh; 801 p5InputScfileRow *object; 802 803 dbh = psDBInit("localhost", "test", NULL, "test"); 804 if (!dbh) { 805 exit(EXIT_FAILURE); 806 } 807 808 object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", -32, "a string", true); 809 if (!object) { 810 exit(EXIT_FAILURE); 811 } 812 813 if (!p5InputScfileInsertObject(dbh, object)) { 814 exit(EXIT_FAILURE); 815 } 816 817 psFree(object); 818 psDBCleanup(dbh); 819 } 820 821 { 822 psDB *dbh; 823 p5DiffScfileRow *object; 824 825 dbh = psDBInit("localhost", "test", NULL, "test"); 826 if (!dbh) { 827 exit(EXIT_FAILURE); 828 } 829 830 object = p5DiffScfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64); 831 if (!object) { 832 exit(EXIT_FAILURE); 833 } 834 835 if (!p5DiffScfileInsertObject(dbh, object)) { 836 exit(EXIT_FAILURE); 837 } 838 839 psFree(object); 840 psDBCleanup(dbh); 841 } 842 777 843 exit(EXIT_SUCCESS); 778 844 }
Note:
See TracChangeset
for help on using the changeset viewer.
