Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails 2.1 : Has Many Through Association and Eager Loading problem

#1164

In a Has Many Through Association, if include option contains the same table name as that of the "THROUGH" table, then when executing :size or :count methods on the association throws "NOT Unique Table/Alias error" while running the sql.

Please find attached zip file containing the necessary files and steps to reproduce the issue.

Please go thru README file for steps.

Reported by Karthik Krishnan · October 3rd, 2008 @ 01:04 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Frederick Cheung
    Frederick Cheung
    • State changed from new to resolved

    Could reproduce on rails 2.1.0 but not on 2.2.2, 2.2.2 or edge

    December 21st, 2008 @ 10:55 AM