Changeset 37165 for trunk/ippTools/src/releasetool.c
- Timestamp:
- Jul 31, 2014, 3:54:49 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/releasetool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/releasetool.c
r37131 r37165 1124 1124 1125 1125 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1126 PXOPT_LOOKUP_BOOL(replace, config->args, "-replace", false); 1126 1127 1127 1128 psString query = pxDataGet("releasetool_setrelstackcalibratedfromskycal.sql"); … … 1132 1133 } 1133 1134 1135 if (replace) { 1136 // don't cut on relStack.state 1137 psStringAppend(&query, "\nWHERE ");; 1138 } else { 1139 // normal path only update rows in state processed 1140 psStringAppend(&query, "\nWHERE relStack.state = 'processed'\nAND ");; 1141 } 1142 1134 1143 // Add in the where conditions 1135 1144 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 1136 psStringAppend(&query, " \nAND%s", whereClause);1145 psStringAppend(&query, "%s", whereClause); 1137 1146 psFree(whereClause); 1138 1147 … … 1233 1242 1234 1243 PXOPT_COPY_STR(config->args, where, "-surveyName", "survey.surveyName", "LIKE"); 1235 PXOPT_COPY_S32(config->args, where, "-rel_id", "rel Exp.rel_id", "==");1244 PXOPT_COPY_S32(config->args, where, "-rel_id", "relStack.rel_id", "=="); 1236 1245 pxskycellAddWhere(config, where); 1237 1246
Note:
See TracChangeset
for help on using the changeset viewer.
