Changeset 11045 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Jan 11, 2007, 3:35:04 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r11030 r11045 168 168 } 169 169 170 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32 , -16);170 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32); 171 171 if (!object) { 172 172 exit(EXIT_FAILURE); … … 190 190 } 191 191 192 object = newImfileRowAlloc("a string", "a string", "a string", "a string" , -16);192 object = newImfileRowAlloc("a string", "a string", "a string", "a string"); 193 193 if (!object) { 194 194 exit(EXIT_FAILURE); … … 205 205 { 206 206 psDB *dbh; 207 rawDetrendExpRow *object; 208 209 dbh = psDBInit("localhost", "test", NULL, "test"); 210 if (!dbh) { 211 exit(EXIT_FAILURE); 212 } 213 214 object = rawDetrendExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z"); 215 if (!object) { 216 exit(EXIT_FAILURE); 217 } 218 219 if (!rawDetrendExpInsertObject(dbh, object)) { 220 exit(EXIT_FAILURE); 221 } 222 223 psFree(object); 224 psDBCleanup(dbh); 225 } 226 227 { 228 psDB *dbh; 229 rawScienceExpRow *object; 230 231 dbh = psDBInit("localhost", "test", NULL, "test"); 232 if (!dbh) { 233 exit(EXIT_FAILURE); 234 } 235 236 object = rawScienceExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z"); 237 if (!object) { 238 exit(EXIT_FAILURE); 239 } 240 241 if (!rawScienceExpInsertObject(dbh, object)) { 207 rawExpRow *object; 208 209 dbh = psDBInit("localhost", "test", NULL, "test"); 210 if (!dbh) { 211 exit(EXIT_FAILURE); 212 } 213 214 object = rawExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", -16); 215 if (!object) { 216 exit(EXIT_FAILURE); 217 } 218 219 if (!rawExpInsertObject(dbh, object)) { 242 220 exit(EXIT_FAILURE); 243 221 } … … 256 234 } 257 235 258 object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z" );236 object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", -16); 259 237 if (!object) { 260 238 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
