Changeset 12131 for trunk/ippTools/src/stacktool.c
- Timestamp:
- Feb 28, 2007, 6:44:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/stacktool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/stacktool.c
r12114 r12131 192 192 return false; 193 193 } 194 if (!stackInputSkyfileInsert(config->dbh, run->stack_id, atoi((char *)item->data.V))) {194 if (!stackInputSkyfileInsert(config->dbh, run->stack_id, (psS64)atoll((char *)item->data.V))) { 195 195 if (!psDBRollback(config->dbh)) { 196 196 psError(PS_ERR_UNKNOWN, false, "database error"); … … 296 296 // constrants 297 297 if (!stackInputSkyfileInsert(config->dbh, 298 (psS 32)atoi(stack_id),299 (psS 32)atoi(warp_id)298 (psS64)atoll(stack_id), 299 (psS64)atoll(warp_id) 300 300 )) { 301 301 psError(PS_ERR_UNKNOWN, false, "database error"); … … 388 388 389 389 if (psArrayLength(output)) { 390 if (!convertIdToStr(output)) { 391 psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings"); 392 psFree(output); 393 return false; 394 } 395 390 396 // negative simple so the default is true 391 397 if (!ippdbPrintMetadatas(stdout, output, "stackInputSkyfile", !simple)) { … … 477 483 478 484 if (psArrayLength(output)) { 485 if (!convertIdToStr(output)) { 486 psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings"); 487 psFree(output); 488 return false; 489 } 490 479 491 // negative simple so the default is true 480 492 if (!ippdbPrintMetadatas(stdout, output, "stackSumSkyfile", !simple)) { … … 539 551 // constrants 540 552 if (!stackSumSkyfileInsert(config->dbh, 541 (psS 32)atoi(stack_id),553 (psS64)atoll(stack_id), 542 554 uri, 543 555 bg, … … 642 654 643 655 if (psArrayLength(output)) { 656 if (!convertIdToStr(output)) { 657 psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings"); 658 psFree(output); 659 return false; 660 } 661 644 662 if (!ippdbPrintMetadatas(stdout, output, "stackSumSkyfile", !simple)) { 645 663 psError(PS_ERR_UNKNOWN, false, "failed to print array");
Note:
See TracChangeset
for help on using the changeset viewer.
