public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Fixed test_joins_with_namespaced_model_should_use_correct_type for postgresql

Signed-off-by: Michael Koziarski <michael@koziarski.com>
Tarmo Tänav (author)
Thu Jul 31 09:52:35 -0700 2008
NZKoz (committer)
Thu Jul 31 10:02:32 -0700 2008
commit  896a3b9ab8dc02639ffa0b1dbf85011e1f3eda9b
tree    1d9e85da2ce6b3eac57fba31545793fdd04fc888
parent  fb5cc19707582fa61ca3e426697cc2b00e9e5ffa
...
1007
1008
1009
1010
 
1011
1012
1013
...
1007
1008
1009
 
1010
1011
1012
1013
0
@@ -1007,7 +1007,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
0
     firm.clients.create({ :name => 'Some Client' })
0
 
0
     stats = Namespaced::Firm.find(firm.id, {
0
-      :select => "#{Namespaced::Firm.table_name}.*, COUNT(#{Namespaced::Client.table_name}.id) AS num_clients",
0
+      :select => "#{Namespaced::Firm.table_name}.id, COUNT(#{Namespaced::Client.table_name}.id) AS num_clients",
0
       :joins  => :clients,
0
       :group  => "#{Namespaced::Firm.table_name}.id"
0
     })

Comments