aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/select_manager.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index 6942014208..ce74daab82 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -63,6 +63,8 @@ module Arel
end
def having expr
+ expr = Nodes::SqlLiteral.new(expr) if String === expr
+
@ctx.having = Nodes::Having.new(expr)
self
end