Changeset 33027 for branches/haf_add201112/ippTools/src/addtool.c
- Timestamp:
- Dec 27, 2011, 11:34:14 AM (15 years ago)
- File:
-
- 1 edited
-
branches/haf_add201112/ippTools/src/addtool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/haf_add201112/ippTools/src/addtool.c
r33023 r33027 825 825 PXOPT_LOOKUP_STR(minidvodb_name, config->args, "-minidvodb_name", false, false); 826 826 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 827 827 PXOPT_LOOKUP_S64(stage_extra1, config->args, "-stage_extra1", false, false); 828 828 // generate restrictions 829 829 psMetadata *where = psMetadataAlloc(); … … 903 903 } 904 904 } 905 905 //if there is a stage_extra1, set it in addRun (it's not known until it is processed) 906 if (stage_extra1) { 907 psString setExtra = NULL; 908 psStringAppend (&setExtra, "UPDATE addRun set stage_extra1 = %" PRId64, stage_extra1); 909 psStringAppend (&setExtra, " where add_id = %" PRId64, row->add_id); 910 911 if (!p_psDBRunQuery(config->dbh, setExtra)) { 912 if (!psDBRollback(config->dbh)) { 913 psError(PS_ERR_UNKNOWN, false, "database error"); 914 } 915 psError(PS_ERR_UNKNOWN, false, "database error"); 916 917 return false; 918 } 919 } 906 920 907 921 … … 1050 1064 PXOPT_COPY_S64(config->args, where, "-add_id", "addRun.add_id", "=="); 1051 1065 PXOPT_COPY_S64(config->args, where, "-stage_id", "addRun.stage_id", "=="); 1052 PXOPT_LOOKUP_STR(stage, config->args, "-stage", false, false);1066 PXOPT_LOOKUP_STR(stage, config->args, "-stage", true, false); 1053 1067 pxcamGetSearchArgs (config, where); 1054 1068 pxAddLabelSearchArgs (config, where, "-label", "addRun.label", "==");
Note:
See TracChangeset
for help on using the changeset viewer.
