This project is archived and is in readonly mode.

#425 ✓duplicate
Kazuhiro Yoshida

inner join error in has_many :through

Reported by Kazuhiro Yoshida | June 15th, 2008 @ 04:35 PM

$ rake test_sqlite3 TEST=test/cases/associations/has_many_through_associations_test.rb

test_inner_join_with_quoted_table_name(HasManyThroughAssociationsTest):

ActiveRecord::StatementInvalid: SQLite3::SQLException: near "references": syntax error: SELECT count(*) AS count_all FROM "jobs" INNER JOIN references ON jobs.id = references.job_id WHERE (("references".person_id = 1))

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages