History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FC-1466
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matthew Bryant
Reporter: Tomek Kott
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FarCry Core Framework

Bad Oracle SQL Query for showing only specific categories in a rule

Created: 20/Aug/08 11:48 PM   Updated: 06/Oct/08 05:23 PM
Component/s: Tray, Containers & Rules
Affects Version/s: 5.0.2
Fix Version/s: FarCry 5.1

Time Tracking:
Not Specified

File Attachments: 1. File category.cfc (32 kb)

Environment: Shared host, *nix, Oracle 8i


 Description  « Hide
Essentially, when trying to view, for example, news from a specific category, the SQL query would fail for Oracle because there is no LIMIT statement in oracle. Instead, ROWNUM has to be used. I have attached a fixed category.cfc file that seems to solve the problem for me.

In /core/packages/types/category.cfc around line 200 in function getDataQuery, I changed things to have a separate case for an oracle database using existing variables sqlMaxRows (changed from and sqlMaxRowsPre) and bSqlMax (which now takes values 0,1,2).

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Tomek Kott - 20/Aug/08 11:49 PM
A fixed version of category.cfc that works for my Oracle 8i setup.