This project is archived and is in readonly mode.
[PATCH] Finding records by ID and passing blank :condtions option throws ActiveRecord::StatementInvalid
-
Dan
- Title changed from Finding records by ID and passing blank :condtions option throws ActiveRecord::StatementInvalid to [PATCH] Finding records by ID and passing blank :condtions option throws ActiveRecord::StatementInvalid
-
Matt Jones
This may be a larger design issue - there are a couple other spots (in the associations code) where this exact pattern comes up. I could see an alternative fix that sanitizes an empty :conditions array to a SQL no-op, "1=1" for instance. You may want to bring this up on rails-core.
-
Rohit Arondekar
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
