Changeset 26969 for trunk/ippTools/src/difftool.c
- Timestamp:
- Feb 16, 2010, 5:34:49 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/difftool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r26958 r26969 1965 1965 } 1966 1966 1967 psArray *list = psArrayAllocEmpty(16); // List of runs defined, to print 1967 1968 for (long i = 0; i < output->n; i++) { 1968 1969 psMetadata *row = output->data[i]; // Output row from query … … 2052 2053 return false; 2053 2054 } 2054 // diffRunPrintObject(stdout,run,1); 2055 /* diffRunPrintObject(stdout,run,1); */ 2055 2056 run->diff_id = psDBLastInsertID(config->dbh); 2056 2057 for (long j = 0; j < diff_id_output->n; j++) { … … 2082 2083 } 2083 2084 2084 // diffInputSkyfilePrintObject(stdout,input,1); 2085 /* diffInputSkyfilePrintObject(stdout,input,1); */ 2085 2086 psFree(input); 2086 2087 } … … 2092 2093 psFree(diffQuery); 2093 2094 psFree(run); 2095 psFree(list); 2094 2096 if (!psDBRollback(config->dbh)) { 2095 2097 psError(PS_ERR_UNKNOWN, false, "database error"); … … 2097 2099 return false; 2098 2100 } 2099 2101 psArrayAdd(list, list->n, run); 2100 2102 psFree(run); 2101 2103 } 2104 2105 if (!psDBCommit(config->dbh)) { 2106 psError(PS_ERR_UNKNOWN, false, "database error"); 2107 psFree(list); 2108 return false; 2109 } 2110 2111 if (!diffRunPrintObjects(stdout, list, !simple)) { 2112 psError(PS_ERR_UNKNOWN, false, "failed to print object"); 2113 psFree(list); 2114 return false; 2115 } 2116 2102 2117 psFree(query); 2103 2118 psFree(stack1Query); … … 2105 2120 psFree(diffQuery); 2106 2121 psFree(output); 2122 psFree(list); 2107 2123 2108 2124 return(true);
Note:
See TracChangeset
for help on using the changeset viewer.
