Changeset 27838 for branches/tap_branches/ippTools/src/receivetool.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/receivetool.c (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/ippTools/src
- Property svn:ignore
-
old new 16 16 difftool 17 17 disttool 18 dqstatstool 18 19 faketool 19 20 flatcorr
-
- Property svn:ignore
-
branches/tap_branches/ippTools/src/receivetool.c
r24784 r27838 105 105 // optional 106 106 PXOPT_LOOKUP_STR(comment, config->args, "-comment", false, false); 107 PXOPT_LOOKUP_STR(state, config->args, "-state", false, false); 107 108 PXOPT_LOOKUP_STR(last, config->args, "-last", false, false); 108 109 PXOPT_LOOKUP_STR(status_product, config->args, "-status_product", false, false); … … 110 111 PXOPT_LOOKUP_STR(ds_dbhost, config->args, "-ds_dbhost", false, false); 111 112 112 if (!receiveSourceInsert(config->dbh, 0, source, product, workdir, comment, last, status_product, ds_dbname, ds_dbhost)) {113 if (!receiveSourceInsert(config->dbh, 0, source, product, workdir, state, comment, last, status_product, ds_dbname, ds_dbhost)) { 113 114 psError(PS_ERR_UNKNOWN, false, "Database error"); 114 115 return false; … … 135 136 psString query = pxDataGet("receivetool_list.sql"); 136 137 if (!query) { 137 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");138 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 138 139 psFree(where); 139 140 return false; … … 142 143 if (psListLength(where->list)) { 143 144 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 144 psStringAppend(&query, " WHERE%s", whereClause);145 psStringAppend(&query, " AND %s", whereClause); 145 146 psFree(whereClause); 146 147 } … … 194 195 psString query = pxDataGet("receivetool_addfileset.sql"); 195 196 if (!query) { 196 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");197 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 197 198 return false; 198 199 } … … 301 302 psString query = pxDataGet("receivetool_pendingfileset.sql"); 302 303 if (!query) { 303 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");304 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 304 305 psFree(where); 305 306 return false; … … 380 381 psString file_type = psMetadataLookupStr(NULL, md, "file_type"); 381 382 psString component = psMetadataLookupStr(NULL, md, "component"); 382 383 383 384 if (!file) { 384 385 psError(PS_ERR_UNKNOWN, false, "failed to find value for file"); … … 430 431 psString query = pxDataGet("receivetool_pendingfile.sql"); 431 432 if (!query) { 432 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");433 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 433 434 psFree(where); 434 435 return false; … … 513 514 psString query = pxDataGet("receivetool_revert.sql"); 514 515 if (!query) { 515 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");516 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 516 517 psFree(where); 517 518 return false; … … 546 547 psString query = pxDataGet("receivetool_toadvance.sql"); 547 548 if (!query) { 548 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");549 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 549 550 psFree(where); 550 551 return false; … … 612 613 psString query = NULL; // Query to execute 613 614 psStringAppend(&query, "UPDATE receiveFileset SET "); 614 615 615 616 psString sep = ""; 616 617 if (fault) { … … 630 631 sep = ","; 631 632 } 632 633 633 634 psStringAppend(&query, " WHERE fileset_id = %" PRId64, fileset_id); 634 635
Note:
See TracChangeset
for help on using the changeset viewer.
