Title:
Bug 74368:(Watson Migration Closure)CFQuery should be updated with the following new optional attributes:
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): David McGuigan / David McGuigan (David McGuigan)
Created: 12/17/2008
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 6
Problem:
CFQuery should be updated with the following new optional attributes:
page (numeric)
recordsPerPage (numeric, defaults to 10 when page is provided alone)
<cfquery name="currentPage" page="#url.page#" recordsPerPage="#x#" >
select * from table
</cfquery>
The indexes of the first and last returned, and the total number of applicable records for a query that uses pagination should be available as properties of the query object (similar to recordCount), named as follows:
Ex: Viewing #currentPage.firstRecord# - #currentPage.lastRecord# of #currentPage.totalRecords# total search results.
Benefits: Improves application performance by implementing paginating at the data level instead of the application level and returning only the portion of the recordset that’s needed. Simplifies and improves pagination (next n interface) code. Provides an RDMS-agnostic, portable syntax for common functionality.
Sidenote: While it’s on stage, the maxRows attribute should be deprecated and maxRecords should replace it. It’s inconsistent and hampering to have a property called recordCount and an attribute called maxRows. (Or recordCount could be deprecated in favor of rowCount, in which case recordsPerPage would be rowsPerPage, firstRecord firstRow, etc.)
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037081
External Customer Info:
External Company:
External Customer Name: David McGuigan
External Customer Email: 5E0D54C04462BF5E992016B6
External Test Config: 12/17/2008
Attachments:
Comments: