Changeset 12131 for trunk/ippTools/src/chiptool.c
- Timestamp:
- Feb 28, 2007, 6:44:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r12096 r12131 169 169 "INSERT INTO chipPendingExp\n" 170 170 " SElECT\n" 171 " 0\n" // chip_id 171 172 " exp_tag,\n" 172 173 " 'my recipe',\n" // recipe … … 269 270 } 270 271 272 if (!convertIdToStr(output)) { 273 psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings"); 274 psFree(output); 275 return false; 276 } 277 271 278 // negative simple so the default is true 272 279 if (!ippdbPrintMetadatas(stdout, output, "chipPendingImfile", !simple)) { … … 307 314 psMetadata *where = psMetadataAlloc(); 308 315 bool status = false; 309 psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag"); if (!status) {310 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for - exp_tag");316 psString chip_id = psMetadataLookupStr(&status, config->args, "-chip_id"); if (!status) { 317 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -chip_id"); 311 318 psFree(query); 312 319 return false; 313 320 } 314 if ( exp_tag) {315 if (!psMetadataAddStr(where, PS_LIST_TAIL, " exp_tag", 0, "==", exp_tag)) {316 psError(PS_ERR_UNKNOWN, false, "failed to add item exp_tag");321 if (chip_id) { 322 if (!psMetadataAddStr(where, PS_LIST_TAIL, "chip_id", 0, "==", chip_id)) { 323 psError(PS_ERR_UNKNOWN, false, "failed to add item chip_id"); 317 324 psFree(where); 318 325 psFree(query); … … 320 327 } 321 328 } 329 322 330 psString class_id = psMetadataLookupStr(&status, config->args, "-class_id"); 323 331 if (!status) { … … 517 525 } 518 526 527 if (!convertIdToStr(output)) { 528 psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings"); 529 psFree(output); 530 return false; 531 } 532 519 533 // negative simple so the default is true 520 534 if (!ippdbPrintMetadatas(stdout, output, "chipProcessedImfile", !simple)) { … … 606 620 return false; 607 621 } 622 } 623 624 if (!convertIdToStr(output)) { 625 psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings"); 626 psFree(output); 627 return false; 608 628 } 609 629 … … 799 819 800 820 return chipProcessedImfileRowAlloc( 821 imfile->chip_id, 801 822 imfile->exp_tag, 802 imfile->chip_version, 803 imfile->guide_version, 823 imfile->guide_id, 804 824 imfile->class_id, 805 825 recipe, … … 819 839 820 840 return chipProcessedExpRowAlloc( 841 pendingExp->chip_id, 821 842 pendingExp->exp_tag, 822 pendingExp->chip_version, 823 pendingExp->guide_version, 843 pendingExp->guide_id, 824 844 pendingExp->label, 825 845 pendingExp->expgroup, … … 834 854 835 855 return camPendingExpRowAlloc( 836 pendingExp->exp_tag, 837 0x0, // cam version 838 pendingExp->chip_version, 856 0, // cam version, assigned by db 857 pendingExp->chip_id, 839 858 pendingExp->label, 840 859 pendingExp->expgroup,
Note:
See TracChangeset
for help on using the changeset viewer.
