Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 5f0c425e8d106df4cdf844ac4859fc373f9c43e1 1 parent 53be10c
@rsim rsim authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.