Changeset 14598 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Aug 21, 2007, 4:25:34 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r14451 r14598 80 80 } 81 81 82 object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string" , -64);82 object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string"); 83 83 if (!object) { 84 84 exit(EXIT_FAILURE); … … 124 124 } 125 125 126 object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -64,"a string");126 object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string"); 127 127 if (!object) { 128 128 exit(EXIT_FAILURE); … … 454 454 } 455 455 456 object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, -16);456 object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16); 457 457 if (!object) { 458 458 exit(EXIT_FAILURE); … … 856 856 857 857 if (!detRegisteredImfileInsertObject(dbh, object)) { 858 exit(EXIT_FAILURE); 859 } 860 861 psFree(object); 862 psDBCleanup(dbh); 863 } 864 865 { 866 psDB *dbh; 867 magicRunRow *object; 868 869 dbh = psDBInit("localhost", "test", NULL, "test"); 870 if (!dbh) { 871 exit(EXIT_FAILURE); 872 } 873 874 object = magicRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z"); 875 if (!object) { 876 exit(EXIT_FAILURE); 877 } 878 879 if (!magicRunInsertObject(dbh, object)) { 880 exit(EXIT_FAILURE); 881 } 882 883 psFree(object); 884 psDBCleanup(dbh); 885 } 886 887 { 888 psDB *dbh; 889 magicInputSkyfileRow *object; 890 891 dbh = psDBInit("localhost", "test", NULL, "test"); 892 if (!dbh) { 893 exit(EXIT_FAILURE); 894 } 895 896 object = magicInputSkyfileRowAlloc(-64, -64, -32); 897 if (!object) { 898 exit(EXIT_FAILURE); 899 } 900 901 if (!magicInputSkyfileInsertObject(dbh, object)) { 902 exit(EXIT_FAILURE); 903 } 904 905 psFree(object); 906 psDBCleanup(dbh); 907 } 908 909 { 910 psDB *dbh; 911 magicTreeRow *object; 912 913 dbh = psDBInit("localhost", "test", NULL, "test"); 914 if (!dbh) { 915 exit(EXIT_FAILURE); 916 } 917 918 object = magicTreeRowAlloc(-64, "a string", "a string"); 919 if (!object) { 920 exit(EXIT_FAILURE); 921 } 922 923 if (!magicTreeInsertObject(dbh, object)) { 924 exit(EXIT_FAILURE); 925 } 926 927 psFree(object); 928 psDBCleanup(dbh); 929 } 930 931 { 932 psDB *dbh; 933 magicNodeResultRow *object; 934 935 dbh = psDBInit("localhost", "test", NULL, "test"); 936 if (!dbh) { 937 exit(EXIT_FAILURE); 938 } 939 940 object = magicNodeResultRowAlloc(-64, "a string", "a string"); 941 if (!object) { 942 exit(EXIT_FAILURE); 943 } 944 945 if (!magicNodeResultInsertObject(dbh, object)) { 946 exit(EXIT_FAILURE); 947 } 948 949 psFree(object); 950 psDBCleanup(dbh); 951 } 952 953 { 954 psDB *dbh; 955 magicMaskRow *object; 956 957 dbh = psDBInit("localhost", "test", NULL, "test"); 958 if (!dbh) { 959 exit(EXIT_FAILURE); 960 } 961 962 object = magicMaskRowAlloc(-64, "a string"); 963 if (!object) { 964 exit(EXIT_FAILURE); 965 } 966 967 if (!magicMaskInsertObject(dbh, object)) { 858 968 exit(EXIT_FAILURE); 859 969 }
Note:
See TracChangeset
for help on using the changeset viewer.
