Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sql lab] fix impersonation + template issue
When the database impersonation flag is on, a query using a template fails. It has to do with templating using a database connection without a username being specified by the caller, along with the fact that the work is taking place on a worker, outside a web request, where referencing g.user raises this exception.
- Loading branch information