Thank you for replying Chris, quotes stays as quotes in generated sql thus i get: "PGError: ERROR: column "foo.*" does not exist"
Here was the fix(Thanks tobiash at #sequel): foo.all does foo.* without quotes. Product.join(:categories, :id => category_id).select(:products.all, :categories__name => :category_name).sql => "SELECT products.*, categories.\"name\" AS category_name FROM products INNER JOIN categories ON (categories.\"id\" = 3)" -kiko On Feb 6, 2:02 am, "Chris Farmiloe" <[EMAIL PROTECTED]> wrote: > try.. > .select([ :"foo.*", :"bar.baz".AS(:bar_baz) ]) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
