In JModelList I was using a query with a condition [where] that was put outside the limit making the query invalid:
SELECT t.id AS id, t.type AS type,t.code AS code,t.prodAlpha AS prodAlpha, t.retailerCode AS retailerCode,t.startDate AS startDate, t.endDate AS endDate,t.imageType AS imageType FROM [ApplicationImage] AS t WHERE t.type = 'BANNER'
SELECT * FROM ( SELECT t.id AS id, t.type AS type,t.code AS code,t.prodAlpha AS prodAlpha, t.retailerCode AS retailerCode,t.startDate AS startDate, t.endDate AS endDate,t.imageType AS imageType , ROW_NUMBER() OVER (ORDER BY t.id desc) AS RowNumber FROM [ApplicationImage] AS t WHERE t.type = 'BANNER') _myResults WHERE RowNumber BETWEEN 1 AND 20
SELECT * FROM ( SELECT t.id AS id, t.type AS type,t.code AS code,t.prodAlpha AS prodAlpha, t.retailerCode AS retailerCode,t.startDate AS startDate, t.endDate AS endDate,t.imageType AS imageType , ROW_NUMBER() OVER (ORDER BY t.id desc) AS RowNumber FROM [ApplicationImage] AS t ) _myResults WHERE RowNumber BETWEEN 1 AND 20 WHERE t.type = 'BANNER'
Joomla! 3.3.3
Moving lines 70-78 on "\libraries\joomla\database\query\sqlsrv.php" to before the break did the trick for me
Closing
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-08-13 09:04:50 |
Labels |
Added:
?
|
Would you be able to prepare a pull request with your change? http://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests will help you greatly if you've never done one before.