提交 fd97f356 编写于 作者: A Aaron Patterson

fixing column alias resolution

上级 91d3d002
......@@ -922,8 +922,8 @@ def build_where(opts, other = [])
[@klass.send(:sanitize_sql, other.empty? ? opts : ([opts] + other))]
when Hash
temp_opts = opts.dup
opts = PredicateBuilder.resolve_column_aliases(klass, opts)
temp_opts = opts.dup
attributes = @klass.send(:expand_hash_conditions_for_aggregates, opts)
create_binds(temp_opts)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册