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

PERF: fewer objects, pass through on values

上级 4d271c96
......@@ -65,7 +65,14 @@ def primary_key
end
def select_clauses
attributes.collect { |a| a.to_sql(Sql::SelectClause.new(self)) }
attributes.map { |a|
case a
when Value
a.value
else
a.to_sql(Sql::SelectClause.new(self))
end
}
end
def from_clauses
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册