Skip to content

Commit

Permalink
Merge branch '12.0_fix_query_no_return' of git+ssh://github.com/efatt…
Browse files Browse the repository at this point in the history
…o/server-backend into 12.0
  • Loading branch information
Pretecno committed Oct 26, 2024
2 parents 683a75c + 1f9588e commit 7483126
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def _execute_sqlalchemy(self, sqlquery, sqlparams, metadata):
cur = connection.execute(sqlquery)
else:
cur = connection.execute(sqlquery, sqlparams)
if self.env.context.get("no_return", False):
return rows, cols
if metadata:
cols = list(cur.keys())
rows = [r for r in cur]
Expand Down

0 comments on commit 7483126

Please sign in to comment.