Skip to content

Commit

Permalink
return None instead of () to fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
szampier committed Feb 7, 2024
1 parent 8b84ae2 commit b6e4103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngamsCore/ngamsLib/ngamsDbCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ def _prepare_query(self, sql, args):
markers = ["'{}'" if isinstance(arg, str) else "NULL" if arg is None else "{}" for arg in args]
args = list(filter(lambda arg: arg is not None, args))
args = [arg.replace("'", "''") if isinstance(arg, str) else arg for arg in args]
return sql.format(*markers).format(*args), ()
return sql.format(*markers).format(*args), None

# Depending on the database vendor and its declared paramstyle
# we will need to escape '%' literals so they are not considered
Expand Down

0 comments on commit b6e4103

Please sign in to comment.