Skip to content

Commit f53a882

Browse files
committed
Bug fix: use column_id instead of column to correctly handle the id attribute in queries.yaml (#20)
1 parent 66be7a8 commit f53a882

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mapserver/competency/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def make_sql(self, request: QueryRequest) -> tuple[str, list[str]]:
266266
negate = '!' if req_param.get('negate', False) else ''
267267
where_condition = f'{column} {negate}= ({param_def.default_sql})'
268268
conditions[param_def.condition].append(where_condition)
269-
used_columns.append(column)
269+
used_columns.append(column_id)
270270
# NB. req_params might/will not have entries for default params
271271
for column, param_def in self.__parameters.items():
272272
if column not in used_columns:

0 commit comments

Comments
 (0)