diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-08-03 14:13:03 +0300 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-08-06 23:41:00 +0300 |
commit | 5f0c425e8d106df4cdf844ac4859fc373f9c43e1 (patch) | |
tree | 67a4b66fbbe649f63f397763acbcfb6d0d66be20 | |
parent | 53be10c5e6939c9093c4ae863fd380a6dbf1e50e (diff) | |
download | rails-5f0c425e8d106df4cdf844ac4859fc373f9c43e1.tar.gz rails-5f0c425e8d106df4cdf844ac4859fc373f9c43e1.tar.bz2 rails-5f0c425e8d106df4cdf844ac4859fc373f9c43e1.zip |
Some databases (e.g. Oracle) does not allow "AS" between table name and table alias name, for others it is optional
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 893fc34c36..7f3be1fa67 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -1027,7 +1027,7 @@ class FinderTest < ActiveRecord::TestCase def test_joins_dont_clobber_id first = Firm.find( :first, - :joins => 'INNER JOIN companies AS clients ON clients.firm_id = companies.id', + :joins => 'INNER JOIN companies clients ON clients.firm_id = companies.id', :conditions => 'companies.id = 1' ) assert_equal 1, first.id |