Skip to content

Commit

Permalink
fix where query for /
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 committed Sep 30, 2020
1 parent 85a36c3 commit 40af085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translators/sql_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def _get_where_clause(self, entity_ids, from_date, to_date, fiware_sp=None,
# Match prefix of fiware service path
if fiware_sp == '/':
clauses.append(
" " + FIWARE_SERVICEPATH + " ~* '($|/.*)'")
" " + FIWARE_SERVICEPATH + " ~* '/.*'")
else:
clauses.append(
" " + FIWARE_SERVICEPATH + " ~* '"
Expand Down

0 comments on commit 40af085

Please sign in to comment.