Changeset 8288 for trunk/ippTools/src/dettool.c
- Timestamp:
- Aug 10, 2006, 7:26:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettool.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);
Note:
See TracChangeset
for help on using the changeset viewer.
