• N
    Make filter_binds filter out symbols that are equal to strings · 1d316ac1
    Nat Budin 提交于
    ActiveRecord::Relation::Merger's filter_binds method does not filter out bind
    variables when one of the attribute nodes has a string name, but the other has
    a symbol name, even when those names are actually equal.
    
    This can result in there being more bind variables than placeholders in the
    generated SQL.  This is particularly an issue for PostgreSQL, where this is
    treated as an error.
    
    This patch changes the filter_binds method to make it convert both attribute
    names to strings before comparing.
    1d316ac1
post.rb 8.3 KB