You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
safe query raises when eager loading on a resultset using #includes that only has a single related record. this is because activerecord doesnt generate an IN clause, but rather an equals clause. safe query doesnt recognize that the generated query is inherently bounded because the query is matching on a (unique) primary key.
the detection code should ideally figure out if the clause is equality matching on a unique column or pk so it doesnt throw on those queries
The text was updated successfully, but these errors were encountered:
safe query raises when eager loading on a resultset using
#includes
that only has a single related record. this is because activerecord doesnt generate an IN clause, but rather an equals clause. safe query doesnt recognize that the generated query is inherently bounded because the query is matching on a (unique) primary key.the detection code should ideally figure out if the clause is equality matching on a unique column or pk so it doesnt throw on those queries
The text was updated successfully, but these errors were encountered: