mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
Re-add delete_all and destroy_all methods
These methods don't take any arguments in Rails versions > 3, but there's no harm in checking for them anyway, and some people might be using very old Rails versions.
This commit is contained in:
@@ -68,10 +68,10 @@ private Expr sqlFragmentArgument(MethodCall call) {
|
||||
(
|
||||
methodName =
|
||||
[
|
||||
"delete_by", "destroy_by", "exists?", "find_by", "find_by!", "find_or_create_by",
|
||||
"find_or_create_by!", "find_or_initialize_by", "find_by_sql", "from", "group", "having",
|
||||
"joins", "lock", "not", "order", "pluck", "where", "rewhere", "select", "reselect",
|
||||
"update_all"
|
||||
"delete_all", "delete_by", "destroy_all", "destroy_by", "exists?", "find_by", "find_by!",
|
||||
"find_or_create_by", "find_or_create_by!", "find_or_initialize_by", "find_by_sql", "from",
|
||||
"group", "having", "joins", "lock", "not", "order", "pluck", "where", "rewhere", "select",
|
||||
"reselect", "update_all"
|
||||
] and
|
||||
result = call.getArgument(0)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user