Bugs item #12261, was opened at 2007-07-13 21:02
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=12261&group_id=2014
Category: AR-JDBC
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Todd Willey (xtoddx)
Assigned to: Nobody (None)
Summary: :offset in query doesn't find select_all
Initial Comment:
Version 0.4
@residents = Resident.find(
:all,
:conditions=>q,
:limit=>15,
:include=>['facility'],
:order=>'residents.last_name asc',
:offset =>(15 * params[:page].to_i)
)
undefined method `select_all' for
#<ActiveRecord::ConnectionAdapters::JdbcConnection:0x12f2476 ...
Using Microsoft's Sqlserver from
http://www.microsoft.com/downloads/details.aspx?FamilyID=f914793a-6fb4-475f-9537-b8fcb776befd&DisplayLang=en
Works great without offset. Pagination is broken as a result.
----------------------------------------------------------------------
>Comment By: Ola Bini (olabini)
Date: 2007-08-11 15:38
Message:
This is fixed in trunk.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=12261&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel