diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/alias_predication.rb | 2 | ||||
-rw-r--r-- | lib/arel/nodes/function.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/arel/alias_predication.rb b/lib/arel/alias_predication.rb index 3f3db7671e..f42e9ee1a6 100644 --- a/lib/arel/alias_predication.rb +++ b/lib/arel/alias_predication.rb @@ -1,7 +1,7 @@ module Arel module AliasPredication def as other - Nodes::As.new self, Nodes::SqlLiteral.new(other.to_s) + Nodes::As.new self, Nodes::SqlLiteral.new(other) end end end
\ No newline at end of file diff --git a/lib/arel/nodes/function.rb b/lib/arel/nodes/function.rb index 3263ff9cd4..85347fc028 100644 --- a/lib/arel/nodes/function.rb +++ b/lib/arel/nodes/function.rb @@ -6,12 +6,12 @@ module Arel def initialize expr, aliaz = nil @expressions = expr - @alias = aliaz && SqlLiteral.new(aliaz.to_s) + @alias = aliaz && SqlLiteral.new(aliaz) @distinct = false end def as aliaz - self.alias = SqlLiteral.new(aliaz.to_s) + self.alias = SqlLiteral.new(aliaz) self end end |