Changeset 27315 for trunk/ippTools/src/regtool.c
- Timestamp:
- Mar 17, 2010, 4:15:53 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/regtool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/regtool.c
r27210 r27315 584 584 psStringPrepend(&whereClause, "\n AND "); 585 585 } 586 PXOPT_LOOKUP_BOOL(compress, config->args, "-compress", false); 587 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); 588 589 if ((compress && clean)||(!compress & !clean)) { 590 psStringAppend(&whereClause, "\n AND ((data_state = 'goto_compressed' AND state = 'goto_compressed')\n OR (data_state = 'goto_lossy' AND state = 'goto_lossy')) "); 591 } 592 else if (compress) { 593 psStringAppend(&whereClause, "\n AND ((data_state = 'goto_compressed' AND state = 'goto_compressed')) "); 594 } 595 else if (clean) { 596 psStringAppend(&whereClause, "\n AND ((data_state = 'goto_lossy' AND state = 'goto_lossy')) "); 597 } 598 else { 599 psStringAppend(&whereClause, "\n AND ((data_state = 'goto_compressed' AND state = 'goto_compressed')\n OR (data_state = 'goto_lossy' AND state = 'goto_lossy')) "); 600 } 586 601 587 602 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 588 603 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 589 604 590 605 psString query = pxDataGet("regtool_pendingcompressimfile.sql"); 591 606 if (!query) { 592 607 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 593 608 return(false); 594 } 609 } 595 610 psString limitString = NULL; 596 611 if (limit) {
Note:
See TracChangeset
for help on using the changeset viewer.
