aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRaimonds Simanovskis <raimonds.simanovskis@gmail.com>2009-08-03 14:13:03 +0300
committerRaimonds Simanovskis <raimonds.simanovskis@gmail.com>2009-08-06 23:41:00 +0300
commit5f0c425e8d106df4cdf844ac4859fc373f9c43e1 (patch)
tree67a4b66fbbe649f63f397763acbcfb6d0d66be20 /activerecord/test
parent53be10c5e6939c9093c4ae863fd380a6dbf1e50e (diff)
downloadrails-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
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/finder_test.rb2
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