Hi all,
I'm trying to generate simple SQL as following, but can't figure out
the way to specify foo.* in sequel.
"SELECT foo.*, bar.baz AS bar_baz.."
My (failed) attempts are..
.select(:foo.*, bar__baz => :bar_baz)
=> method missing * for :foo symbol.
.select('foo.*', bar__baz => :bar_baz)
=> SELECT 'foo.*', bar.baz AS bar_baz...
Here's the actual code:
Product.join(:categories, :id =>
category_id).select(:products.*, :categories__name => :category_name)
Any suggestions are greatly appreciated.
Thanks,
-kiko
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---