Changeset 12130 for trunk/ippdb/tests/insert.c
- Timestamp:
- Feb 28, 2007, 6:43:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insert.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insert.c
r12061 r12130 178 178 } 179 179 180 if (!guidePendingExpInsert(dbh, "a string", -32, "a string")) {181 exit(EXIT_FAILURE); 182 } 183 184 psDBCleanup(dbh); 185 } 186 187 { 188 psDB *dbh; 189 190 dbh = psDBInit("localhost", "test", NULL, "test"); 191 if (!dbh) { 192 exit(EXIT_FAILURE); 193 } 194 195 if (!chipPendingExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", "a string")) {196 exit(EXIT_FAILURE); 197 } 198 199 psDBCleanup(dbh); 200 } 201 202 { 203 psDB *dbh; 204 205 dbh = psDBInit("localhost", "test", NULL, "test"); 206 if (!dbh) { 207 exit(EXIT_FAILURE); 208 } 209 210 if (!chipPendingImfileInsert(dbh, "a string", -32, -32, "a string", "a string", "a string")) {211 exit(EXIT_FAILURE); 212 } 213 214 psDBCleanup(dbh); 215 } 216 217 { 218 psDB *dbh; 219 220 dbh = psDBInit("localhost", "test", NULL, "test"); 221 if (!dbh) { 222 exit(EXIT_FAILURE); 223 } 224 225 if (!chipProcessedExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string")) {180 if (!guidePendingExpInsert(dbh, -64, "a string", "a string")) { 181 exit(EXIT_FAILURE); 182 } 183 184 psDBCleanup(dbh); 185 } 186 187 { 188 psDB *dbh; 189 190 dbh = psDBInit("localhost", "test", NULL, "test"); 191 if (!dbh) { 192 exit(EXIT_FAILURE); 193 } 194 195 if (!chipPendingExpInsert(dbh, -64, "a string", -64, "a string", "a string", "a string", "a string")) { 196 exit(EXIT_FAILURE); 197 } 198 199 psDBCleanup(dbh); 200 } 201 202 { 203 psDB *dbh; 204 205 dbh = psDBInit("localhost", "test", NULL, "test"); 206 if (!dbh) { 207 exit(EXIT_FAILURE); 208 } 209 210 if (!chipPendingImfileInsert(dbh, -64, "a string", -64, "a string", "a string", "a string")) { 211 exit(EXIT_FAILURE); 212 } 213 214 psDBCleanup(dbh); 215 } 216 217 { 218 psDB *dbh; 219 220 dbh = psDBInit("localhost", "test", NULL, "test"); 221 if (!dbh) { 222 exit(EXIT_FAILURE); 223 } 224 225 if (!chipProcessedExpInsert(dbh, -64, "a string", -64, "a string", "a string", "a string")) { 226 226 exit(EXIT_FAILURE); 227 227 } … … 253 253 } 254 254 255 if (!chipProcessedImfileInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) {256 exit(EXIT_FAILURE); 257 } 258 259 psDBCleanup(dbh); 260 } 261 262 { 263 psDB *dbh; 264 265 dbh = psDBInit("localhost", "test", NULL, "test"); 266 if (!dbh) { 267 exit(EXIT_FAILURE); 268 } 269 270 if (!camPendingExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string")) {271 exit(EXIT_FAILURE); 272 } 273 274 psDBCleanup(dbh); 275 } 276 277 { 278 psDB *dbh; 279 280 dbh = psDBInit("localhost", "test", NULL, "test"); 281 if (!dbh) { 282 exit(EXIT_FAILURE); 283 } 284 285 if (!camProcessedExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", 32.32, 32.32, -16, "a string", "a string")) {255 if (!chipProcessedImfileInsert(dbh, -64, "a string", -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) { 256 exit(EXIT_FAILURE); 257 } 258 259 psDBCleanup(dbh); 260 } 261 262 { 263 psDB *dbh; 264 265 dbh = psDBInit("localhost", "test", NULL, "test"); 266 if (!dbh) { 267 exit(EXIT_FAILURE); 268 } 269 270 if (!camPendingExpInsert(dbh, -64, -64, "a string", "a string", "a string")) { 271 exit(EXIT_FAILURE); 272 } 273 274 psDBCleanup(dbh); 275 } 276 277 { 278 psDB *dbh; 279 280 dbh = psDBInit("localhost", "test", NULL, "test"); 281 if (!dbh) { 282 exit(EXIT_FAILURE); 283 } 284 285 if (!camProcessedExpInsert(dbh, -64, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", 32.32, 32.32, -16, "a string", "a string")) { 286 286 exit(EXIT_FAILURE); 287 287 } … … 313 313 } 314 314 315 if (!detRunInsert(dbh, - 32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32)) {316 exit(EXIT_FAILURE); 317 } 318 319 psDBCleanup(dbh); 320 } 321 322 { 323 psDB *dbh; 324 325 dbh = psDBInit("localhost", "test", NULL, "test"); 326 if (!dbh) { 327 exit(EXIT_FAILURE); 328 } 329 330 if (!detInputExpInsert(dbh, - 32, -32, "a string", true)) {331 exit(EXIT_FAILURE); 332 } 333 334 psDBCleanup(dbh); 335 } 336 337 { 338 psDB *dbh; 339 340 dbh = psDBInit("localhost", "test", NULL, "test"); 341 if (!dbh) { 342 exit(EXIT_FAILURE); 343 } 344 345 if (!detProcessedImfileInsert(dbh, - 32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) {346 exit(EXIT_FAILURE); 347 } 348 349 psDBCleanup(dbh); 350 } 351 352 { 353 psDB *dbh; 354 355 dbh = psDBInit("localhost", "test", NULL, "test"); 356 if (!dbh) { 357 exit(EXIT_FAILURE); 358 } 359 360 if (!detProcessedExpInsert(dbh, - 32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) {361 exit(EXIT_FAILURE); 362 } 363 364 psDBCleanup(dbh); 365 } 366 367 { 368 psDB *dbh; 369 370 dbh = psDBInit("localhost", "test", NULL, "test"); 371 if (!dbh) { 372 exit(EXIT_FAILURE); 373 } 374 375 if (!detStackedImfileInsert(dbh, - 32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, -16)) {376 exit(EXIT_FAILURE); 377 } 378 379 psDBCleanup(dbh); 380 } 381 382 { 383 psDB *dbh; 384 385 dbh = psDBInit("localhost", "test", NULL, "test"); 386 if (!dbh) { 387 exit(EXIT_FAILURE); 388 } 389 390 if (!detNormalizedStatImfileInsert(dbh, - 32, -32, "a string", 32.32, -16)) {391 exit(EXIT_FAILURE); 392 } 393 394 psDBCleanup(dbh); 395 } 396 397 { 398 psDB *dbh; 399 400 dbh = psDBInit("localhost", "test", NULL, "test"); 401 if (!dbh) { 402 exit(EXIT_FAILURE); 403 } 404 405 if (!detNormalizedImfileInsert(dbh, - 32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) {406 exit(EXIT_FAILURE); 407 } 408 409 psDBCleanup(dbh); 410 } 411 412 { 413 psDB *dbh; 414 415 dbh = psDBInit("localhost", "test", NULL, "test"); 416 if (!dbh) { 417 exit(EXIT_FAILURE); 418 } 419 420 if (!detNormalizedExpInsert(dbh, - 32, -32, "a string", 64.64, 64.64, 64.64, "a string", -16)) {421 exit(EXIT_FAILURE); 422 } 423 424 psDBCleanup(dbh); 425 } 426 427 { 428 psDB *dbh; 429 430 dbh = psDBInit("localhost", "test", NULL, "test"); 431 if (!dbh) { 432 exit(EXIT_FAILURE); 433 } 434 435 if (!detResidImfileInsert(dbh, - 32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) {436 exit(EXIT_FAILURE); 437 } 438 439 psDBCleanup(dbh); 440 } 441 442 { 443 psDB *dbh; 444 445 dbh = psDBInit("localhost", "test", NULL, "test"); 446 if (!dbh) { 447 exit(EXIT_FAILURE); 448 } 449 450 if (!detResidExpInsert(dbh, - 32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", true, -16)) {451 exit(EXIT_FAILURE); 452 } 453 454 psDBCleanup(dbh); 455 } 456 457 { 458 psDB *dbh; 459 460 dbh = psDBInit("localhost", "test", NULL, "test"); 461 if (!dbh) { 462 exit(EXIT_FAILURE); 463 } 464 465 if (!detRunSummaryInsert(dbh, - 32, -32, 64.64, 64.64, 64.64, true, -16)) {466 exit(EXIT_FAILURE); 467 } 468 469 psDBCleanup(dbh); 470 } 471 472 { 473 psDB *dbh; 474 475 dbh = psDBInit("localhost", "test", NULL, "test"); 476 if (!dbh) { 477 exit(EXIT_FAILURE); 478 } 479 480 if (!warpRunInsert(dbh, - 32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z")) {481 exit(EXIT_FAILURE); 482 } 483 484 psDBCleanup(dbh); 485 } 486 487 { 488 psDB *dbh; 489 490 dbh = psDBInit("localhost", "test", NULL, "test"); 491 if (!dbh) { 492 exit(EXIT_FAILURE); 493 } 494 495 if (!warpInputExpInsert(dbh, - 32, "a string", -32, true)) {496 exit(EXIT_FAILURE); 497 } 498 499 psDBCleanup(dbh); 500 } 501 502 { 503 psDB *dbh; 504 505 dbh = psDBInit("localhost", "test", NULL, "test"); 506 if (!dbh) { 507 exit(EXIT_FAILURE); 508 } 509 510 if (!warpSkyCellMapInsert(dbh, - 32, "a string", "a string", "a string", -32, "a string", -16)) {511 exit(EXIT_FAILURE); 512 } 513 514 psDBCleanup(dbh); 515 } 516 517 { 518 psDB *dbh; 519 520 dbh = psDBInit("localhost", "test", NULL, "test"); 521 if (!dbh) { 522 exit(EXIT_FAILURE); 523 } 524 525 if (!warpSkyfileInsert(dbh, - 32, "a string", "a string", "a string", 64.64, 64.64)) {526 exit(EXIT_FAILURE); 527 } 528 529 psDBCleanup(dbh); 530 } 531 532 { 533 psDB *dbh; 534 535 dbh = psDBInit("localhost", "test", NULL, "test"); 536 if (!dbh) { 537 exit(EXIT_FAILURE); 538 } 539 540 if (!diffRunInsert(dbh, - 32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) {541 exit(EXIT_FAILURE); 542 } 543 544 psDBCleanup(dbh); 545 } 546 547 { 548 psDB *dbh; 549 550 dbh = psDBInit("localhost", "test", NULL, "test"); 551 if (!dbh) { 552 exit(EXIT_FAILURE); 553 } 554 555 if (!diffInputSkyfileInsert(dbh, - 32, -32, "a string", "a string", "a string", true)) {556 exit(EXIT_FAILURE); 557 } 558 559 psDBCleanup(dbh); 560 } 561 562 { 563 psDB *dbh; 564 565 dbh = psDBInit("localhost", "test", NULL, "test"); 566 if (!dbh) { 567 exit(EXIT_FAILURE); 568 } 569 570 if (!diffSkyfileInsert(dbh, - 32, "a string", 64.64, 64.64)) {571 exit(EXIT_FAILURE); 572 } 573 574 psDBCleanup(dbh); 575 } 576 577 { 578 psDB *dbh; 579 580 dbh = psDBInit("localhost", "test", NULL, "test"); 581 if (!dbh) { 582 exit(EXIT_FAILURE); 583 } 584 585 if (!stackRunInsert(dbh, - 32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) {586 exit(EXIT_FAILURE); 587 } 588 589 psDBCleanup(dbh); 590 } 591 592 { 593 psDB *dbh; 594 595 dbh = psDBInit("localhost", "test", NULL, "test"); 596 if (!dbh) { 597 exit(EXIT_FAILURE); 598 } 599 600 if (!stackInputSkyfileInsert(dbh, - 32, -32)) {601 exit(EXIT_FAILURE); 602 } 603 604 psDBCleanup(dbh); 605 } 606 607 { 608 psDB *dbh; 609 610 dbh = psDBInit("localhost", "test", NULL, "test"); 611 if (!dbh) { 612 exit(EXIT_FAILURE); 613 } 614 615 if (!stackSumSkyfileInsert(dbh, - 32, "a string", 64.64, 64.64)) {315 if (!detRunInsert(dbh, -64, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32)) { 316 exit(EXIT_FAILURE); 317 } 318 319 psDBCleanup(dbh); 320 } 321 322 { 323 psDB *dbh; 324 325 dbh = psDBInit("localhost", "test", NULL, "test"); 326 if (!dbh) { 327 exit(EXIT_FAILURE); 328 } 329 330 if (!detInputExpInsert(dbh, -64, -32, "a string", true)) { 331 exit(EXIT_FAILURE); 332 } 333 334 psDBCleanup(dbh); 335 } 336 337 { 338 psDB *dbh; 339 340 dbh = psDBInit("localhost", "test", NULL, "test"); 341 if (!dbh) { 342 exit(EXIT_FAILURE); 343 } 344 345 if (!detProcessedImfileInsert(dbh, -64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) { 346 exit(EXIT_FAILURE); 347 } 348 349 psDBCleanup(dbh); 350 } 351 352 { 353 psDB *dbh; 354 355 dbh = psDBInit("localhost", "test", NULL, "test"); 356 if (!dbh) { 357 exit(EXIT_FAILURE); 358 } 359 360 if (!detProcessedExpInsert(dbh, -64, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) { 361 exit(EXIT_FAILURE); 362 } 363 364 psDBCleanup(dbh); 365 } 366 367 { 368 psDB *dbh; 369 370 dbh = psDBInit("localhost", "test", NULL, "test"); 371 if (!dbh) { 372 exit(EXIT_FAILURE); 373 } 374 375 if (!detStackedImfileInsert(dbh, -64, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, -16)) { 376 exit(EXIT_FAILURE); 377 } 378 379 psDBCleanup(dbh); 380 } 381 382 { 383 psDB *dbh; 384 385 dbh = psDBInit("localhost", "test", NULL, "test"); 386 if (!dbh) { 387 exit(EXIT_FAILURE); 388 } 389 390 if (!detNormalizedStatImfileInsert(dbh, -64, -32, "a string", 32.32, -16)) { 391 exit(EXIT_FAILURE); 392 } 393 394 psDBCleanup(dbh); 395 } 396 397 { 398 psDB *dbh; 399 400 dbh = psDBInit("localhost", "test", NULL, "test"); 401 if (!dbh) { 402 exit(EXIT_FAILURE); 403 } 404 405 if (!detNormalizedImfileInsert(dbh, -64, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) { 406 exit(EXIT_FAILURE); 407 } 408 409 psDBCleanup(dbh); 410 } 411 412 { 413 psDB *dbh; 414 415 dbh = psDBInit("localhost", "test", NULL, "test"); 416 if (!dbh) { 417 exit(EXIT_FAILURE); 418 } 419 420 if (!detNormalizedExpInsert(dbh, -64, -32, "a string", 64.64, 64.64, 64.64, "a string", -16)) { 421 exit(EXIT_FAILURE); 422 } 423 424 psDBCleanup(dbh); 425 } 426 427 { 428 psDB *dbh; 429 430 dbh = psDBInit("localhost", "test", NULL, "test"); 431 if (!dbh) { 432 exit(EXIT_FAILURE); 433 } 434 435 if (!detResidImfileInsert(dbh, -64, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16)) { 436 exit(EXIT_FAILURE); 437 } 438 439 psDBCleanup(dbh); 440 } 441 442 { 443 psDB *dbh; 444 445 dbh = psDBInit("localhost", "test", NULL, "test"); 446 if (!dbh) { 447 exit(EXIT_FAILURE); 448 } 449 450 if (!detResidExpInsert(dbh, -64, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", true, -16)) { 451 exit(EXIT_FAILURE); 452 } 453 454 psDBCleanup(dbh); 455 } 456 457 { 458 psDB *dbh; 459 460 dbh = psDBInit("localhost", "test", NULL, "test"); 461 if (!dbh) { 462 exit(EXIT_FAILURE); 463 } 464 465 if (!detRunSummaryInsert(dbh, -64, -32, 64.64, 64.64, 64.64, true, -16)) { 466 exit(EXIT_FAILURE); 467 } 468 469 psDBCleanup(dbh); 470 } 471 472 { 473 psDB *dbh; 474 475 dbh = psDBInit("localhost", "test", NULL, "test"); 476 if (!dbh) { 477 exit(EXIT_FAILURE); 478 } 479 480 if (!warpRunInsert(dbh, -64, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z")) { 481 exit(EXIT_FAILURE); 482 } 483 484 psDBCleanup(dbh); 485 } 486 487 { 488 psDB *dbh; 489 490 dbh = psDBInit("localhost", "test", NULL, "test"); 491 if (!dbh) { 492 exit(EXIT_FAILURE); 493 } 494 495 if (!warpInputExpInsert(dbh, -64, -64, true)) { 496 exit(EXIT_FAILURE); 497 } 498 499 psDBCleanup(dbh); 500 } 501 502 { 503 psDB *dbh; 504 505 dbh = psDBInit("localhost", "test", NULL, "test"); 506 if (!dbh) { 507 exit(EXIT_FAILURE); 508 } 509 510 if (!warpSkyCellMapInsert(dbh, -64, "a string", "a string", -64, "a string", -16)) { 511 exit(EXIT_FAILURE); 512 } 513 514 psDBCleanup(dbh); 515 } 516 517 { 518 psDB *dbh; 519 520 dbh = psDBInit("localhost", "test", NULL, "test"); 521 if (!dbh) { 522 exit(EXIT_FAILURE); 523 } 524 525 if (!warpSkyfileInsert(dbh, -64, "a string", "a string", "a string", 64.64, 64.64)) { 526 exit(EXIT_FAILURE); 527 } 528 529 psDBCleanup(dbh); 530 } 531 532 { 533 psDB *dbh; 534 535 dbh = psDBInit("localhost", "test", NULL, "test"); 536 if (!dbh) { 537 exit(EXIT_FAILURE); 538 } 539 540 if (!diffRunInsert(dbh, -64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) { 541 exit(EXIT_FAILURE); 542 } 543 544 psDBCleanup(dbh); 545 } 546 547 { 548 psDB *dbh; 549 550 dbh = psDBInit("localhost", "test", NULL, "test"); 551 if (!dbh) { 552 exit(EXIT_FAILURE); 553 } 554 555 if (!diffInputSkyfileInsert(dbh, -64, -64, "a string", "a string", "a string", true)) { 556 exit(EXIT_FAILURE); 557 } 558 559 psDBCleanup(dbh); 560 } 561 562 { 563 psDB *dbh; 564 565 dbh = psDBInit("localhost", "test", NULL, "test"); 566 if (!dbh) { 567 exit(EXIT_FAILURE); 568 } 569 570 if (!diffSkyfileInsert(dbh, -64, "a string", 64.64, 64.64)) { 571 exit(EXIT_FAILURE); 572 } 573 574 psDBCleanup(dbh); 575 } 576 577 { 578 psDB *dbh; 579 580 dbh = psDBInit("localhost", "test", NULL, "test"); 581 if (!dbh) { 582 exit(EXIT_FAILURE); 583 } 584 585 if (!stackRunInsert(dbh, -64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) { 586 exit(EXIT_FAILURE); 587 } 588 589 psDBCleanup(dbh); 590 } 591 592 { 593 psDB *dbh; 594 595 dbh = psDBInit("localhost", "test", NULL, "test"); 596 if (!dbh) { 597 exit(EXIT_FAILURE); 598 } 599 600 if (!stackInputSkyfileInsert(dbh, -64, -64)) { 601 exit(EXIT_FAILURE); 602 } 603 604 psDBCleanup(dbh); 605 } 606 607 { 608 psDB *dbh; 609 610 dbh = psDBInit("localhost", "test", NULL, "test"); 611 if (!dbh) { 612 exit(EXIT_FAILURE); 613 } 614 615 if (!stackSumSkyfileInsert(dbh, -64, "a string", 64.64, 64.64)) { 616 616 exit(EXIT_FAILURE); 617 617 }
Note:
See TracChangeset
for help on using the changeset viewer.
