Skip to content

Commit

Permalink
Fix typo in 'Graphing Datasets' section of README.rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan committed Aug 9, 2009
1 parent 051d897 commit e3b938c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -327,7 +327,7 @@ Which is equivalent to the SQL:
When retrieving records from joined datasets, you get the results in a single hash, which is subject to clobbering if you have columns with the same name in multiple tables:

DB[:items].join(:order_items, :item_id => :id).first
=> {:id=>order_items.id), :item_id=>order_items.item_id}
=> {:id=>order_items.id, :item_id=>order_items.item_id}

Using graph, you can split the result hashes into subhashes, one per join:

Expand Down

0 comments on commit e3b938c

Please sign in to comment.