This project is archived and is in readonly mode.
RC1 to RC2 regression : multilines where conditions autojoin with "AND"
-
oleg dashevskii
Got bitten by it too. Quick workaround is to add backslash:
class User < ActiveRecord::Base scope :test_scope, where("active = ? \ and login like ?", true, "%test%") end -
Brandon Tilley
It appears that this only happens for certain adapters. In particular, I did not have this problem on my local development machine using SQLite, but when I pushed to Heroku (which uses PostgreSQL) the bug manifested itself.
-
Thong Kuah
- Tag changed from arel activerecord bug rails3, activerecord, arel, rails3 to arel activerecord bug rails3, line break, activerecord, arel, rails3
-
Thong Kuah
- Tag changed from arel activerecord bug rails3, line break, activerecord, arel, rails3 to arel activerecord bug rails3, line break, activerecord, arel, multiline, rails3
-
oleg dashevskii
So, the bug confirmed with MySQL and PostgreSQL adapters.
-
oleg dashevskii
Duplicate of #5457
-
Rohit Arondekar
- State changed from new to duplicate
- Importance changed from to Low
-
Aditya Sanghi
Automatic cleanup of spam.