aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/formatters.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/engines/sql/formatters.rb')
-rw-r--r--lib/arel/engines/sql/formatters.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/formatters.rb b/lib/arel/engines/sql/formatters.rb
index 626803a887..e05dc3eb93 100644
--- a/lib/arel/engines/sql/formatters.rb
+++ b/lib/arel/engines/sql/formatters.rb
@@ -57,6 +57,12 @@ module Arel
end
end
+ class HavingClause < PassThrough
+ def attribute(attribute)
+ attribute
+ end
+ end
+
class WhereCondition < Formatter
def attribute(attribute)
"#{quote_table_name(name_for(attribute.original_relation))}.#{quote_column_name(attribute.name)}"