This project is archived and is in readonly mode.
Hash conditions fail with PostgreSQL ENUMs
-
Neeraj Singh
- Importance changed from to Low
In edge rails both of these work.
ree-1.8.7-2010.02 > Car.where(:name => 'honda').first Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."name" = 'honda' LIMIT 1 => #<Car id: 1, name: "honda", color: nil> ree-1.8.7-2010.02 > Car.where(["name = ?",'honda']).first Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE (name = 'honda') LIMIT 1 => #<Car id: 1, name: "honda", color: nil> ree-1.8.7-2010.02 > -
Tom Hughes
Well rails 3.0.4 is out now, but this still seems to be failing?
-
Tom Hughes
It seems the answer is to update arel - rails 3.0.4 was still only requiring arel 2.0.2 or later and I had 2.0.3 which was sufficient for that. Updating arel to 2.0.8 seems to fix the problem.