Changeset 8288
- Timestamp:
- Aug 10, 2006, 7:26:49 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
dettool.c (modified) (1 diff)
-
dettoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r8286 r8288 110 110 PS_ASSERT_PTR_NON_NULL(config, NULL); 111 111 112 char *query ="SELECT rawDetrendExp.* FROM rawDetrendExp"112 psString query = psStringCopy("SELECT rawDetrendExp.* FROM rawDetrendExp" 113 113 " LEFT JOIN detInputExp ON rawDetrendExp.exp_id = detInputExp.exp_id" 114 " WHERE detInputExp.exp_id IS NULL"; 114 " WHERE detInputExp.exp_id IS NULL"); 115 116 if (config->where) { 117 psString whereClaus = psDBGenerateWhereConditionSQL(config->where); 118 psStringAppend(&query, " AND %s", whereClaus); 119 psFree(whereClaus); 120 } 115 121 116 122 if (!p_psDBRunQuery(config->dbh, query)) { 117 123 psError(PS_ERR_UNKNOWN, false, "database error"); 124 psFree(query); 118 125 return false; 119 126 } 127 psFree(query); 120 128 121 129 psArray *output = p_psDBFetchResult(config->dbh); -
trunk/ippTools/src/dettoolConfig.c
r8286 r8288 23 23 // -pending 24 24 psMetadata *pendingArgs = psMetadataAlloc(); 25 psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-exp_id", 0, 26 "search by exposure ID", NULL); 27 psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-exp_type", 0, 28 "search by exposure type", NULL); 25 29 psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-inst", 0, 26 " define camera of interest", NULL);30 "search by camera", NULL); 27 31 psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-telescope", 0, 28 " define telescope of interest", NULL);32 "search by telescope", NULL); 29 33 psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-filter", 0, 30 "define filter of interest", NULL); 31 psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-exp_id", 0, 32 "define exposure ID", NULL); 33 psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-exp_type", 0, 34 "define exposure type", NULL); 34 "search by filter", NULL); 35 35 psMetadataAddStr(pendingArgs, PS_LIST_TAIL, "-uri", 0, 36 " defineURL", NULL);36 "searc hby URL", NULL); 37 37 psMetadataAddBool(pendingArgs, PS_LIST_TAIL, "-simple", 0, 38 38 "use the simple output format", false);
Note:
See TracChangeset
for help on using the changeset viewer.
