lukefx
3/17/2011 - 2:59 PM

activerecord-jdbc-adapter

activerecord-jdbc-adapter

irb(main):008:0> User.limit(10)
ActiveRecord::StatementInvalid: ActiveRecord::JDBCError: Incorrect syntax near the keyword 'ORDER'.: SELECT TOP 10   db_UTENTE.* FROM db_UTENTE WHERE db_UTENTE.id NOT IN (SELECT TOP 0 db_UTENTE.id FROM db_UTENTE ORDER BY ORDER BY db_UTENTE.
Utente_ID, db_UTENTE.id) ORDER BY db_UTENTE.Utente_ID