From d24c73dedb681551b7e48d3aa4c79d84df089b85 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 21 Aug 2007 22:11:14 +0000 Subject: [PATCH] Fix spacing git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../connection_adapters/abstract/schema_statements.rb | 2 +- .../lib/active_record/connection_adapters/oracle_adapter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 2ffe3690ef..0bedffa0e1 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -294,7 +294,7 @@ module ActiveRecord # ORDER BY clause for the passed order option. # PostgreSQL overrides this due to its stricter standards compliance. def add_order_by_for_association_limiting!(sql, options) - sql << "ORDER BY #{options[:order]}" + sql << " ORDER BY #{options[:order]}" end protected diff --git a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb index 8add5faf47..701d8f6c27 100644 --- a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb @@ -505,7 +505,7 @@ begin order.map! {|s| $1 if s =~ / (.*)/} order = order.zip((0...order.size).to_a).map { |s,i| "alias_#{i}__ #{s}" }.join(', ') - sql << "ORDER BY #{order}" + sql << " ORDER BY #{order}" end private