Skip to content

Commit

Permalink
Format sql query debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
natelust committed Dec 16, 2018
1 parent 88381ab commit 19a90b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lsst/daf/butler/registries/sqlPreFlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ def selectDimensions(self, originInfo, expression, neededDatasetTypes, futureDat
where = text(expression)
_LOG.debug("full where: %s", where)
q = q.where(where)
_LOG.debug("full query: %s", q)
_LOG.debug("full query: %s",
q.compile(bind=self._connection.engine,
compile_kwargs={"literal_binds": True}))

# execute and return result iterator
rows = self._connection.execute(q).fetchall()
Expand Down

0 comments on commit 19a90b2

Please sign in to comment.