Changeset 6157
- Timestamp:
- Jan 21, 2006, 7:16:02 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
p2searchPendingFrames.c (modified) (2 diffs)
-
p2searchRawFrames.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/p2searchPendingFrames.c
r6156 r6157 5 5 PS_ASSERT_PTR_NON_NULL(config, NULL); 6 6 7 // build 'where' structure8 7 psMetadata *where = psMetadataAlloc(); 9 8 10 // in order to include these restrictions, we need to define these table columns11 9 if (config->camera_name != NULL) { 12 10 psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==", … … 37 35 } 38 36 */ 37 38 // if no search criteria were added then set where to NULL to search for 39 // everything 40 // XXX fix handling of where 41 if (where->list->n < 1) { 42 psFree(where); 43 where = NULL; 44 } 39 45 40 46 psArray *exposures = p2PendingExpSelectRowObjects(config->database, where, MAX_ROWS); -
trunk/ippTools/src/p2searchRawFrames.c
r6151 r6157 5 5 PS_ASSERT_PTR_NON_NULL(config, NULL); 6 6 7 // build 'where' structure 8 psMetadata *where = NULL; 7 psMetadata *where = psMetadataAlloc(); 9 8 10 // psMetadataAddS32 (where, PS_LIST_TAIL, "TYPE", 0, "==", P2_TYPE_OBJECT);11 12 9 if (config->camera_name != NULL) { 13 10 psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==", … … 26 23 */ 27 24 25 // if no search criteria were added then set where to NULL to search for 26 // everything 27 // XXX fix handling of where 28 if (where->list->n < 1) { 29 psFree(where); 30 where = NULL; 31 } 32 28 33 psArray *exposures = rawScienceExpSelectRowObjects(config->database, where, 29 34 MAX_ROWS); 30 psFree (where);35 psFree(where); 31 36 if (!exposures) { 32 37 psError(PS_ERR_UNKNOWN, false, "no rawScienceExp rows found");
Note:
See TracChangeset
for help on using the changeset viewer.
