diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-22 12:04:02 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-22 12:04:02 -0700 |
commit | 80f1f863cd0f9cba89079511282de5710a2e1832 (patch) | |
tree | 16a0df573a65d4cfc922a07b54b4a44d902e81dc /activerecord/test/models/company.rb | |
parent | 4851ca9e13a4317342df02ae25b1929340523f7a (diff) | |
download | rails-80f1f863cd0f9cba89079511282de5710a2e1832.tar.gz rails-80f1f863cd0f9cba89079511282de5710a2e1832.tar.bz2 rails-80f1f863cd0f9cba89079511282de5710a2e1832.zip |
Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"
This reverts commit 4851ca9e13a4317342df02ae25b1929340523f7a.
The tests do not pass for postgresql.
Diffstat (limited to 'activerecord/test/models/company.rb')
-rw-r--r-- | activerecord/test/models/company.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb index 840527ddeb..4c2514b0b3 100644 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -48,10 +48,6 @@ class Firm < Company has_many :clients_with_interpolated_conditions, :class_name => "Client", :conditions => 'rating > #{rating}' has_many :clients_like_ms_with_hash_conditions, :conditions => { :name => 'Microsoft' }, :class_name => "Client", :order => "id" has_many :clients_using_sql, :class_name => "Client", :finder_sql => 'SELECT * FROM companies WHERE client_of = #{id}' - has_many :clients_using_multiline_sql, :class_name => "Client", :finder_sql => ' - SELECT - companies.* - FROM companies WHERE companies.client_of = #{id}' has_many :clients_using_counter_sql, :class_name => "Client", :finder_sql => 'SELECT * FROM companies WHERE client_of = #{id}', :counter_sql => 'SELECT COUNT(*) FROM companies WHERE client_of = #{id}' |