Changeset 12535 for trunk/ippdb/tests/insert.c
- Timestamp:
- Mar 21, 2007, 5:14:51 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insert.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insert.c
r12426 r12535 313 313 } 314 314 315 if (!warpRunInsert(dbh, -64, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z")) { 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 (!warpInputExpInsert(dbh, -64, -64, 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 (!warpSkyCellMapInsert(dbh, -64, "a string", "a string", -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 (!warpSkyfileInsert(dbh, -64, "a string", "a string", "a string", 64.64, 64.64)) { 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 (!diffRunInsert(dbh, -64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) { 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 (!diffInputSkyfileInsert(dbh, -64, -64, "a string", "a string", "a string", true)) { 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 (!diffSkyfileInsert(dbh, -64, "a string", 64.64, 64.64)) { 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 (!stackRunInsert(dbh, -64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) { 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 (!stackInputSkyfileInsert(dbh, -64, -64)) { 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 (!stackSumSkyfileInsert(dbh, -64, "a string", 64.64, 64.64)) { 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 315 465 if (!detRunInsert(dbh, -64, -32, "a string", "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 466 exit(EXIT_FAILURE); … … 464 614 465 615 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.
