summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-08-21 15:48:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-08-21 15:48:12 +0100
commitc495a745d0318a3a009ac5a7f07951217190c37d (patch)
treeca3021d10725f1b5b597e82714a293faa0313611
parentCorrect the owner of filterspec and related operator (diff)
downloadgentoobrowse-1.1.0.1.tar.bz2
gentoobrowse-1.1.0.1.tar.xz
gentoobrowse-1.1.0.1.zip
Fix herd in category view now DB correctly contains nulls, not empty stringsgentoobrowse-1.1.0.1
-rw-r--r--gentoobrowse/views/category.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoobrowse/views/category.xml b/gentoobrowse/views/category.xml
index 01baa14..c14c2d2 100644
--- a/gentoobrowse/views/category.xml
+++ b/gentoobrowse/views/category.xml
@@ -3,7 +3,7 @@
xmlns:project2="http://project2.randomdan.homeip.net">
<project2:sqlrows name="categoryPackages" datasource="postgres-web">
<sql>
- SELECT c.name AS catname, p.name AS pkgname, p.description, CASE WHEN p.herd = '' THEN '-none-' ELSE p.herd END as herd
+ SELECT c.name AS catname, p.name AS pkgname, p.description, COALESCE(herd, '-none-') herd
FROM categories c, packages p
WHERE c.categoryid = p.categoryid
<filter name="byCatName">AND c.name = <param name="catname" /></filter>