Skip to content

Commit e78e71c

Browse files
committed
List Squirrel builders explicitly
1 parent a264ea2 commit e78e71c

File tree

1 file changed

+1
-2
lines changed
  • go/ql/lib/semmle/go/frameworks

1 file changed

+1
-2
lines changed

go/ql/lib/semmle/go/frameworks/SQL.qll

+1-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ module SQL {
8383
|
8484
fn.hasQualifiedName(sq, ["Delete", "Expr", "Insert", "Select", "Update"])
8585
or
86-
// first argument to the `OrderBy`, `Prefix`, `Suffix` or `Where` method of one of the `*Builder` classes
8786
exists(Method m, string builder | m = fn |
88-
builder.matches("%Builder") and
87+
builder = ["DeleteBuilder", "InsertBuilder", "SelectBuilder", "UpdateBuilder"] and
8988
m.hasQualifiedName(sq, builder,
9089
["Columns", "From", "Options", "OrderBy", "Prefix", "Suffix", "Where"])
9190
or

0 commit comments

Comments
 (0)