Hi,

today rails_sql_views requires explicit view fields declaration, ie:

create_view(:view_name,"select first_name,last_name from my_table") do
|view|
  view.column :first_name
  view.column :last_name
end

I've patched my local adapter_extensions to support fields declarations
implicit to allow this:

create_view(:view_name,"select first_name,last_name from my_table")

FWIW, my own need is to ease my work while I'm working around today's lack
of support for subqueries in mysql views.

Should this be committed to the trunk ? (patch attached, doesn't add support
for create_mapping_view though).

cheers,

Thibaut Barrère
--
LoGeek
[blog] http://www.dotnetguru2.org/tbarrere

Attachment: implicit_columns.patch
Description: Binary data

_______________________________________________
Activewarehouse-discuss mailing list
Activewarehouse-discuss@rubyforge.org
http://rubyforge.org/mailman/listinfo/activewarehouse-discuss

Reply via email to