Displaying 1 result from an estimated 1 matches for "other_relation".
2006 Apr 10
1
random | in join statement with more than one :include
...s several has_many,belongs_to,
habtm, and the new has_many => :through relationships.
Whenever I try a
find(:all, :conditions => "some conds", :include [:relationship])
it works fine, but if I have
find(:all, :conditions => "some conds", :include [:relationship,
:other_relation])
it gets a sql error such as
Mysql::Error: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ...
I''ll paste the actual output below, but what I''ve found is that there is
a stray pipe charact...