Hi,
I have this:
SectionHistory.find(:all, :conditions => ["id=? and (name!=? or code!=?)", sec.id, sec.name, sec.code])
And I get the error "The character "!" following "and (name!=? or code" is not valid"
if my condition string is just "id=? and (name!=?)" it's OK
We're using DB2.
Any suggestions on this?
Thanks