Changeset 25840 for trunk/ippTools/src/pxtools.c
- Timestamp:
- Oct 14, 2009, 12:22:54 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxtools.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxtools.c
r25835 r25840 110 110 111 111 // shared code for updating the various strings for a Run 112 bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, bool has_dist_group)112 bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString table, bool has_dist_group) 113 113 { 114 114 PS_ASSERT_PTR_NON_NULL(config, false); … … 150 150 char *comma = ","; 151 151 152 # define addColumn(_ val) \152 # define addColumn(_tab, _val) \ 153 153 do { \ 154 154 if (_val) { \ 155 psStringAppend(pQuery, "%s %s = '%s'", separator, #_val, _val); \155 psStringAppend(pQuery, "%s %s.%s = '%s'", separator, _tab, #_val, _val); \ 156 156 separator = comma; \ 157 157 } \ 158 158 } while (0) 159 159 160 addColumn( state);161 addColumn( data_group);160 addColumn(table, state); 161 addColumn(table, data_group); 162 162 if (has_dist_group) { 163 addColumn( dist_group);163 addColumn(table, dist_group); 164 164 } 165 addColumn( note);166 addColumn( label);165 addColumn(table, note); 166 addColumn(table, label); 167 167 168 168 psString whereClause = psDBGenerateWhereSQL(where, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
