Changeset 15576 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Nov 9, 2007, 5:14:16 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r15569 r15576 1105 1105 } 1106 1106 1107 { 1108 psDB *dbh; 1109 flatcorrRunRow *object; 1110 1111 dbh = psDBInit("localhost", "test", NULL, "test"); 1112 if (!dbh) { 1113 exit(EXIT_FAILURE); 1114 } 1115 1116 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string"); 1117 if (!object) { 1118 exit(EXIT_FAILURE); 1119 } 1120 1121 if (!flatcorrRunInsertObject(dbh, object)) { 1122 exit(EXIT_FAILURE); 1123 } 1124 1125 psFree(object); 1126 psDBCleanup(dbh); 1127 } 1128 1129 { 1130 psDB *dbh; 1131 flatcorrExpRow *object; 1132 1133 dbh = psDBInit("localhost", "test", NULL, "test"); 1134 if (!dbh) { 1135 exit(EXIT_FAILURE); 1136 } 1137 1138 object = flatcorrExpRowAlloc(-64, -64, "a string"); 1139 if (!object) { 1140 exit(EXIT_FAILURE); 1141 } 1142 1143 if (!flatcorrExpInsertObject(dbh, object)) { 1144 exit(EXIT_FAILURE); 1145 } 1146 1147 psFree(object); 1148 psDBCleanup(dbh); 1149 } 1150 1107 1151 exit(EXIT_SUCCESS); 1108 1152 }
Note:
See TracChangeset
for help on using the changeset viewer.
