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.

ActiveRecord limited eager loading associations with numbers in the name fix

#2668

Something since ActiveRecord 2.0 has broken this, and upgrading to 2.3 has made this apparent. Attached is the patch with tests. Basic problem:

Limited eager loading performs detection of tables to include in the initial id load query, but if an association has a number in it it won't be detected as a table and this results in a malformed query and SQL error.

Confirmed this is an issue for all DB types and tests ran on MySQL and sqlite3.

Reported by Benjamin Floering · May 18th, 2009 @ 08:12 AM

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

Activity

  1. Benjamin Floering
    Benjamin Floering
    • Title changed from AR limited eager loading associations with numbers in the name fix to ActiveRecord limited eager loading associations with numbers in the name fix

    May 18th, 2009 @ 08:17 AM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from activecord, association, eagerloading, eager_loading, numeric to activecord, association, eagerloading, eager_loading, numeric, pat

    May 18th, 2009 @ 11:36 AM

  3. Repository