aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/engines/sql/compilers/oracle_compiler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/engines/sql/compilers/oracle_compiler.rb b/lib/arel/engines/sql/compilers/oracle_compiler.rb
index 560022445a..66a91cecb5 100644
--- a/lib/arel/engines/sql/compilers/oracle_compiler.rb
+++ b/lib/arel/engines/sql/compilers/oracle_compiler.rb
@@ -33,9 +33,9 @@ module Arel
"SELECT #{select_attributes_string}",
"FROM #{from_clauses}",
(joins(self) unless joins(self).blank? ),
- ("WHERE #{where_clauses_array.join(" AND ")}" unless where_clauses_array.blank? ),
+ ("WHERE #{where_clauses_array.join(' AND ')}" unless where_clauses_array.blank? ),
("GROUP BY #{group_clauses.join(', ')}" unless groupings.blank? ),
- ("HAVING #{having_clauses.join(', ')}" unless havings.blank? ),
+ ("HAVING #{having_clauses.join(' AND ')}" unless havings.blank? ),
("ORDER BY #{order_clauses_array.join(', ')}" unless order_clauses_array.blank? )
# Use existing method from oracle_enhanced adapter to implement limit and offset using subqueries