search for: ambigueties

Displaying 1 result from an estimated 1 matches for "ambigueties".

Did you mean: ambiguates
2006 Apr 11
2
how to order by a related class???
...books.[title] as t0_r1, authors.[id] as t1_r0, authors.[name] as t1_r1 FROM books LEFT OUTER JOIN authors ON books.author_id = authors.id ORDER BY name ) AS tmp1 ORDER BY name desc) AS tmp2 ORDER BY name The inner "ORDER BY NAME" can be acomplished, provided there are no ambigueties (that is, the table books hasn''t any column named "name") But then, in the outers select, there is no name column to order by. Is this a bug, or there''s some other way to acomplish this thing??? I guess rails should generate some meaningfull field_name (like authors_...