Dim
Not a member
Dim's latest activity
Wednesday, August 25 2010
5457
Arel/AR prepending 'AND' unconditionally after newlines in string literals in...
was updated
in Ruby on Rails
-
Dim commented at 6:29 PMJust to confirm:
ruby-1.9.2-rc2 > Array("a\nb") => ["a\nb"] ree-1.8.7-2010.02 > Array("a\nb") => ["a\n", "b"] -
Dim commented at 6:13 PMGot it, I found the issue!
In http://github.com/rails/arel/blob/master/lib/arel/algebra/relations... the clause is passed to Array(clause), therefore:
> Arra...
5456
AREL is building incorrect conditions when line-breaks are included
was updated
in Ruby on Rails
-
-
Dim created the ticket at 5:51 PMI have the following problem with ActiveRecord 3.0.0.RC2:
> Account.where(:name => "some\nname").to_sql => "SELECT \"accounts\".* FROM \"accounts...