Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
This demonstrates a bug with ActiveRecord in Rails 3.1 After downloading the application, run `rake db:create db:migrate test` to view the failing test case. See `test/units/person_test.rb` for the tests that show how to recreate the error. The problem occurs when performing a search query with a word that's at least two characters and ends in a period. In these cases, the eager loading `includes()` command gets expanding inline into the SQL query, and the original `select` clause is ignored. This results in a crash when other parts of the SQL statement rely on the provided SQL statement.