diff options
author | Tarmo Tänav <tarmo@itech.ee> | 2008-07-31 19:52:35 +0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-07-31 19:02:32 +0200 |
commit | 896a3b9ab8dc02639ffa0b1dbf85011e1f3eda9b (patch) | |
tree | 1d9e85da2ce6b3eac57fba31545793fdd04fc888 /activerecord/test/cases | |
parent | fb5cc19707582fa61ca3e426697cc2b00e9e5ffa (diff) | |
download | rails-896a3b9ab8dc02639ffa0b1dbf85011e1f3eda9b.tar.gz rails-896a3b9ab8dc02639ffa0b1dbf85011e1f3eda9b.tar.bz2 rails-896a3b9ab8dc02639ffa0b1dbf85011e1f3eda9b.zip |
Fixed test_joins_with_namespaced_model_should_use_correct_type for postgresql
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index f8b8b1f96d..47e4b3527d 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -1007,7 +1007,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase firm.clients.create({ :name => 'Some Client' }) stats = Namespaced::Firm.find(firm.id, { - :select => "#{Namespaced::Firm.table_name}.*, COUNT(#{Namespaced::Client.table_name}.id) AS num_clients", + :select => "#{Namespaced::Firm.table_name}.id, COUNT(#{Namespaced::Client.table_name}.id) AS num_clients", :joins => :clients, :group => "#{Namespaced::Firm.table_name}.id" }) |