Oracle ORA-01795 error in Rails

Posted by Cyborgo on Stack Overflow See other posts from Stack Overflow or by Cyborgo
Published on 2010-06-10T21:50:10Z Indexed on 2010/06/10 23:53 UTC
Read the original article Hit count: 156

Filed under:
|

Hi,

I am using Oracle as database for my Rails applications and have got some pretty intense tables. I'm trying to find the particular entries using a query like this

Author.all( :conditions => { :name => names } )

I have been working SQlite all along and just migrated to Oracle which complains that IN clause has more than 1000 entries. Obvious workaround would be to break it into subclauses for which I need to write some raw sql queries. Is there anything in Rails that facilitate this?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about Oracle