Changeset 15343 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Oct 19, 2007, 3:59:06 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r15003 r15343 7 7 { 8 8 psDB *dbh; 9 pzDataStoreRow *object; 10 11 dbh = psDBInit("localhost", "test", NULL, "test"); 12 if (!dbh) { 13 exit(EXIT_FAILURE); 14 } 15 16 object = pzDataStoreRowAlloc("a string", "a string", "a string"); 17 if (!object) { 18 exit(EXIT_FAILURE); 19 } 20 21 if (!pzDataStoreInsertObject(dbh, object)) { 22 exit(EXIT_FAILURE); 23 } 24 25 psFree(object); 26 psDBCleanup(dbh); 27 } 28 29 { 30 psDB *dbh; 9 31 summitExpRow *object; 10 32 … … 865 887 { 866 888 psDB *dbh; 889 detCorrectedExpRow *object; 890 891 dbh = psDBInit("localhost", "test", NULL, "test"); 892 if (!dbh) { 893 exit(EXIT_FAILURE); 894 } 895 896 object = detCorrectedExpRowAlloc(-64, -64, "a string", -64, "a string", "a string", "a string", -16); 897 if (!object) { 898 exit(EXIT_FAILURE); 899 } 900 901 if (!detCorrectedExpInsertObject(dbh, object)) { 902 exit(EXIT_FAILURE); 903 } 904 905 psFree(object); 906 psDBCleanup(dbh); 907 } 908 909 { 910 psDB *dbh; 911 detCorrectedImfileRow *object; 912 913 dbh = psDBInit("localhost", "test", NULL, "test"); 914 if (!dbh) { 915 exit(EXIT_FAILURE); 916 } 917 918 object = detCorrectedImfileRowAlloc(-64, -64, "a string", "a string", "a string", -16); 919 if (!object) { 920 exit(EXIT_FAILURE); 921 } 922 923 if (!detCorrectedImfileInsertObject(dbh, object)) { 924 exit(EXIT_FAILURE); 925 } 926 927 psFree(object); 928 psDBCleanup(dbh); 929 } 930 931 { 932 psDB *dbh; 867 933 magicRunRow *object; 868 934 … … 966 1032 967 1033 if (!magicMaskInsertObject(dbh, object)) { 1034 exit(EXIT_FAILURE); 1035 } 1036 1037 psFree(object); 1038 psDBCleanup(dbh); 1039 } 1040 1041 { 1042 psDB *dbh; 1043 magicSkyfileMaskRow *object; 1044 1045 dbh = psDBInit("localhost", "test", NULL, "test"); 1046 if (!dbh) { 1047 exit(EXIT_FAILURE); 1048 } 1049 1050 object = magicSkyfileMaskRowAlloc(-64, -64, "a string"); 1051 if (!object) { 1052 exit(EXIT_FAILURE); 1053 } 1054 1055 if (!magicSkyfileMaskInsertObject(dbh, object)) { 968 1056 exit(EXIT_FAILURE); 969 1057 }
Note:
See TracChangeset
for help on using the changeset viewer.
