Changeset 11988 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Feb 21, 2007, 4:29:12 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r11873 r11988 755 755 { 756 756 psDB *dbh; 757 p4S cfileRow*object;758 759 dbh = psDBInit("localhost", "test", NULL, "test"); 760 if (!dbh) { 761 exit(EXIT_FAILURE); 762 } 763 764 object = p4S cfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64);765 if (!object) { 766 exit(EXIT_FAILURE); 767 } 768 769 if (!p4S cfileInsertObject(dbh, object)) {757 p4SkyfileRow *object; 758 759 dbh = psDBInit("localhost", "test", NULL, "test"); 760 if (!dbh) { 761 exit(EXIT_FAILURE); 762 } 763 764 object = p4SkyfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64); 765 if (!object) { 766 exit(EXIT_FAILURE); 767 } 768 769 if (!p4SkyfileInsertObject(dbh, object)) { 770 770 exit(EXIT_FAILURE); 771 771 } … … 784 784 } 785 785 786 object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z" );786 object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"); 787 787 if (!object) { 788 788 exit(EXIT_FAILURE); … … 799 799 { 800 800 psDB *dbh; 801 p5InputS cfileRow *object;802 803 dbh = psDBInit("localhost", "test", NULL, "test"); 804 if (!dbh) { 805 exit(EXIT_FAILURE); 806 } 807 808 object = p5InputS cfileRowAlloc(-32, -32, "a string", "a string", "a string", true);809 if (!object) { 810 exit(EXIT_FAILURE); 811 } 812 813 if (!p5InputS cfileInsertObject(dbh, object)) {814 exit(EXIT_FAILURE); 815 } 816 817 psFree(object); 818 psDBCleanup(dbh); 819 } 820 821 { 822 psDB *dbh; 823 p5DiffS cfileRow *object;824 825 dbh = psDBInit("localhost", "test", NULL, "test"); 826 if (!dbh) { 827 exit(EXIT_FAILURE); 828 } 829 830 object = p5DiffS cfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64);831 if (!object) { 832 exit(EXIT_FAILURE); 833 } 834 835 if (!p5DiffS cfileInsertObject(dbh, object)) {801 p5InputSkyfileRow *object; 802 803 dbh = psDBInit("localhost", "test", NULL, "test"); 804 if (!dbh) { 805 exit(EXIT_FAILURE); 806 } 807 808 object = p5InputSkyfileRowAlloc(-32, -32, "a string", "a string", "a string", true); 809 if (!object) { 810 exit(EXIT_FAILURE); 811 } 812 813 if (!p5InputSkyfileInsertObject(dbh, object)) { 814 exit(EXIT_FAILURE); 815 } 816 817 psFree(object); 818 psDBCleanup(dbh); 819 } 820 821 { 822 psDB *dbh; 823 p5DiffSkyfileRow *object; 824 825 dbh = psDBInit("localhost", "test", NULL, "test"); 826 if (!dbh) { 827 exit(EXIT_FAILURE); 828 } 829 830 object = p5DiffSkyfileRowAlloc(-32, "a string", 64.64, 64.64); 831 if (!object) { 832 exit(EXIT_FAILURE); 833 } 834 835 if (!p5DiffSkyfileInsertObject(dbh, object)) { 836 836 exit(EXIT_FAILURE); 837 837 } … … 850 850 } 851 851 852 object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z" );852 object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"); 853 853 if (!object) { 854 854 exit(EXIT_FAILURE); … … 865 865 { 866 866 psDB *dbh; 867 p6InputS cfileRow *object;868 869 dbh = psDBInit("localhost", "test", NULL, "test"); 870 if (!dbh) { 871 exit(EXIT_FAILURE); 872 } 873 874 object = p6InputS cfileRowAlloc(-32, -32, "a string", "a string");875 if (!object) { 876 exit(EXIT_FAILURE); 877 } 878 879 if (!p6InputS cfileInsertObject(dbh, object)) {880 exit(EXIT_FAILURE); 881 } 882 883 psFree(object); 884 psDBCleanup(dbh); 885 } 886 887 { 888 psDB *dbh; 889 p6SumS cfileRow*object;890 891 dbh = psDBInit("localhost", "test", NULL, "test"); 892 if (!dbh) { 893 exit(EXIT_FAILURE); 894 } 895 896 object = p6SumS cfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64);897 if (!object) { 898 exit(EXIT_FAILURE); 899 } 900 901 if (!p6SumS cfileInsertObject(dbh, object)) {867 p6InputSkyfileRow *object; 868 869 dbh = psDBInit("localhost", "test", NULL, "test"); 870 if (!dbh) { 871 exit(EXIT_FAILURE); 872 } 873 874 object = p6InputSkyfileRowAlloc(-32, -32); 875 if (!object) { 876 exit(EXIT_FAILURE); 877 } 878 879 if (!p6InputSkyfileInsertObject(dbh, object)) { 880 exit(EXIT_FAILURE); 881 } 882 883 psFree(object); 884 psDBCleanup(dbh); 885 } 886 887 { 888 psDB *dbh; 889 p6SumSkyfileRow *object; 890 891 dbh = psDBInit("localhost", "test", NULL, "test"); 892 if (!dbh) { 893 exit(EXIT_FAILURE); 894 } 895 896 object = p6SumSkyfileRowAlloc(-32, "a string", 64.64, 64.64); 897 if (!object) { 898 exit(EXIT_FAILURE); 899 } 900 901 if (!p6SumSkyfileInsertObject(dbh, object)) { 902 902 exit(EXIT_FAILURE); 903 903 }
Note:
See TracChangeset
for help on using the changeset viewer.
