diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-04-21 13:11:56 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-04-21 13:11:56 +0100 |
commit | 2381f6f3dc311f18164aeb4a253ced0feaeef8a9 (patch) | |
tree | 16e1b7f5c81df511f5f78ac383df8522a360953d /activerecord | |
parent | 6513dde490ac35aa6974d85377ecc9af4d2e20fd (diff) | |
download | rails-2381f6f3dc311f18164aeb4a253ced0feaeef8a9.tar.gz rails-2381f6f3dc311f18164aeb4a253ced0feaeef8a9.tar.bz2 rails-2381f6f3dc311f18164aeb4a253ced0feaeef8a9.zip |
Specify :group with the table name for it to work on sqlite3
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/test/cases/base_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 99d77961fc..43cda45d71 100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1756,7 +1756,7 @@ class BasicsTest < ActiveRecord::TestCase end def test_scoped_find_with_group_and_having - developers = Developer.with_scope(:find => { :group => 'salary', :having => "SUM(salary) > 10000", :select => "SUM(salary) as salary" }) do + developers = Developer.with_scope(:find => { :group => 'developers.salary', :having => "SUM(salary) > 10000", :select => "SUM(salary) as salary" }) do Developer.find(:all) end assert_equal 3, developers.size |