diff options
Diffstat (limited to 'gentoobrowse/views/package.xml')
-rw-r--r-- | gentoobrowse/views/package.xml | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gentoobrowse/views/package.xml b/gentoobrowse/views/package.xml index 4cb0a0d..a7fc724 100644 --- a/gentoobrowse/views/package.xml +++ b/gentoobrowse/views/package.xml @@ -101,7 +101,7 @@ </project2:sqlview> <project2:sqlview name="maskstatus" recordname="mask" datasource="postgres"> <sql> - SELECT em.ebuildid, RANK() OVER(ORDER BY em.setno) AS setno + SELECT em.ebuildid, DENSE_RANK() OVER(ORDER BY em.setno) AS setno FROM ebuild_masks em, ebuilds e WHERE em.ebuildid = e.ebuildid AND e.packageid = ? @@ -112,12 +112,26 @@ </project2:sqlview> <project2:sqlview name="maskdetails" recordname="mask" datasource="postgres"> <sql> - SELECT DISTINCT RANK() OVER(ORDER BY em.setno), ms.person, ms.message, ms.dateadded + SELECT DISTINCT DENSE_RANK() OVER(ORDER BY em.setno), ms.person, ms.message, ms.dateadded FROM ebuild_masks em, ebuilds e, masksets ms WHERE em.ebuildid = e.ebuildid AND ms.setno = em.setno AND e.packageid = ? - ORDER BY RANK() OVER(ORDER BY em.setno) + ORDER BY DENSE_RANK() OVER(ORDER BY em.setno) + </sql> + <parameters> + <param bind="0" value="^packageid" /> + </parameters> + </project2:sqlview> + <project2:sqlview name="changelog" recordname="line" datasource="postgres"> + <sql> + SELECT line, content + FROM files f, filecache fc, packages p, categories c + WHERE f.fileid = fc.fileid + AND p.categoryid = c.categoryid + AND f.filename = c.name || '/' || p.name || '/ChangeLog' + AND p.packageid = ? + ORDER BY line </sql> <parameters> <param bind="0" value="^packageid" /> |