Changeset 31428 for branches/czw_branch/20110406/ippTools/src/laptool.c
- Timestamp:
- May 3, 2011, 2:25:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20110406/ippTools/src/laptool.c
r31417 r31428 295 295 return(false); 296 296 } 297 psStringAppend(&query, " %s", whereClause); 297 298 if (whereClause) { 299 psStringSubstitute(&query,whereClause,"@WHERE@"); 300 } 298 301 psFree(where); 299 302 … … 467 470 } 468 471 else { 469 return( false);472 return(true); // We shouldn't really fail if we didn't change anything. Maybe there's nothing to change. 470 473 } 471 474 } 472 return(true); 473 } 474 else { 475 return(false); 476 } 475 476 } 477 478 return(true); 477 479 } 478 480 … … 496 498 if (psListLength(where->list)) { 497 499 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 498 psStringAppend(&query, " WHERE%s", whereClause);500 psStringAppend(&query, "\n AND %s", whereClause); 499 501 psFree(whereClause); 500 502 } 501 503 psStringAppend(&query, " ORDER BY rawExp.dateobs "); 504 502 505 if (limit) { 503 506 psString limitString = psDBGenerateLimitSQL(limit); 504 psStringAppend(&query, " %s", limitString);507 psStringAppend(&query, "\n %s", limitString); 505 508 psFree(limitString); 506 509 } 507 psStringAppend(&query, " ORDER BY rawExp.dateobs "); 510 508 511 509 512 if (!p_psDBRunQuery(config->dbh, query)) { … … 615 618 616 619 psMetadata *where = psMetadataAlloc(); 617 PXOPT_COPY_S64(config->args, where, "-lap_id", "lap _id", "==");620 PXOPT_COPY_S64(config->args, where, "-lap_id", "lapRun.lap_id", "=="); 618 621 619 622 psString query = pxDataGet("laptool_stacks.sql");
Note:
See TracChangeset
for help on using the changeset viewer.
