Skip to content
Browse files

Some databases (e.g. Oracle) does not allow "AS" between table name a…

…nd table alias name, for others it is optional
  • Loading branch information...
1 parent 53be10c commit 5f0c425e8d106df4cdf844ac4859fc373f9c43e1 @rsim rsim committed Aug 3, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/finder_test.rb
View
2 activerecord/test/cases/finder_test.rb
@@ -1027,7 +1027,7 @@ def test_find_all_with_join
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

0 comments on commit 5f0c425

Please sign in to comment.
Something went wrong with that request. Please try again.