Changeset 19256
- Timestamp:
- Aug 27, 2008, 5:57:07 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/stacktool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/stacktool.c
r19249 r19256 129 129 PXOPT_COPY_F32(config->args, where, "-select_good_frac_min", "warpSkyfile.good_frac", ">="); 130 130 PXOPT_COPY_STR(config->args, where, "-select_skycell_id", "warpSkyfile.skycell_id", "=="); 131 PXOPT_COPY_STR(config->args, where, "-select_label", "warpRun.label", "=="); 131 132 132 133 // these are used to build the HAVING restriction … … 242 243 if (psListLength(where->list)) { 243 244 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 244 psStringAppend(& select, " AND %s", whereClause);245 psStringAppend(&insert, " AND %s", whereClause); 245 246 psFree(whereClause); 246 247 } … … 350 351 // this insert needs to use exactly the same restrictions (race condition is probably not critical) 351 352 // the insert below seems to only restrict matches to the skycell, tess, and filter 352 if ((randomLimit > 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, tess_id, filter, 353 randomLimit)) || 354 (randomLimit <= 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, tess_id, filter))) { 353 if ((randomLimit > 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter, randomLimit)) || 354 (randomLimit <= 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter))) { 355 355 psError(PS_ERR_UNKNOWN, false, "database error"); 356 356 psFree(thisInsert);
Note:
See TracChangeset
for help on using the changeset viewer.
