diff --git a/base_external_dbsource_sqlite/models/base_external_dbsource.py b/base_external_dbsource_sqlite/models/base_external_dbsource.py index ca62ceef1..8bace99ce 100644 --- a/base_external_dbsource_sqlite/models/base_external_dbsource.py +++ b/base_external_dbsource_sqlite/models/base_external_dbsource.py @@ -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]