Changeset 27518 for trunk/ippTools/src/magicdstool.c
- Timestamp:
- Mar 29, 2010, 4:00:36 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/magicdstool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magicdstool.c
r27452 r27518 1135 1135 1136 1136 psMetadata *where = psMetadataAlloc(); 1137 PXOPT_COPY_S64(config->args, where, "-magic_ds_id", "magicDSRun.magic_ds_id", "=="); 1137 1138 PXOPT_COPY_STR(config->args, where, "-class_id", "warpSkyCellMap.class_id", "=="); 1138 1139 PXOPT_COPY_STR(config->args, where, "-skycell_id", "warpSkyCellMap.skycell_id", "=="); … … 1146 1147 } 1147 1148 1149 psString whereClause = NULL; 1148 1150 if (psListLength(where->list)) { 1149 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 1150 psStringAppend(&query, " AND %s", whereClause); 1151 psFree(whereClause); 1151 whereClause = psDBGenerateWhereConditionSQL(where, NULL); 1152 psStringPrepend(&whereClause, "\n"); 1152 1153 } 1153 1154 psFree(where); 1154 1155 1155 if (!p_psDBRunQueryF(config->dbh, query, magic_ds_id)) {1156 if (!p_psDBRunQueryF(config->dbh, query, whereClause, whereClause)) { 1156 1157 psError(PS_ERR_UNKNOWN, false, "database error"); 1157 1158 psFree(query);
Note:
See TracChangeset
for help on using the changeset viewer.
