aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorTarmo Tänav <tarmo@itech.ee>2008-07-31 19:52:35 +0300
committerMichael Koziarski <michael@koziarski.com>2008-07-31 19:02:32 +0200
commit896a3b9ab8dc02639ffa0b1dbf85011e1f3eda9b (patch)
tree1d9e85da2ce6b3eac57fba31545793fdd04fc888 /activerecord
parentfb5cc19707582fa61ca3e426697cc2b00e9e5ffa (diff)
downloadrails-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')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb2
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"
})