First page Back Continue Last page Overview Graphics


Notes:

That problem is join clobbering.

Since Sequel returns rows as hashes, if multiple tables have the same column names and you don't alias the columns manually, columns in the joined tables end up clobbering columns in the original table.

In this example, both attendees and events have id and name columns.

However, when you join them and get results, the columns from the events table clobber columns from the attendees table.