From 414bf12f867b210fc72296bd1f4c021023b52cc7 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Thu, 2 Sep 2021 16:03:25 +0200 Subject: [PATCH] Python: Fix DefaultTextClauseConstruction --- python/ql/lib/semmle/python/frameworks/SqlAlchemy.qll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ql/lib/semmle/python/frameworks/SqlAlchemy.qll b/python/ql/lib/semmle/python/frameworks/SqlAlchemy.qll index fa3da97bf29..879456e4700 100644 --- a/python/ql/lib/semmle/python/frameworks/SqlAlchemy.qll +++ b/python/ql/lib/semmle/python/frameworks/SqlAlchemy.qll @@ -319,7 +319,8 @@ module SqlAlchemy { DataFlow::Node getTextArg() { result in [this.getArg(0), this.getArgByName("text")] } } - class DefaultTextClauseConstruction extends TextClauseConstruction { + /** `TextClause` constructions from the `sqlalchemy` package. */ + private class DefaultTextClauseConstruction extends TextClauseConstruction { DefaultTextClauseConstruction() { this = API::moduleImport("sqlalchemy").getMember("text").getACall() or