summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-09-14 23:49:58 +0000
committerrandomdan <randomdan@localhost>2010-09-14 23:49:58 +0000
commitd1595452e147be462d7594cefd88ced46002c31c (patch)
tree2d73019ef33a35ee949e95e19ef93f7fa40cddaf
parentFix Chromium irritation with whitespace in tooltips (diff)
downloadgentoobrowse-d1595452e147be462d7594cefd88ced46002c31c.tar.bz2
gentoobrowse-d1595452e147be462d7594cefd88ced46002c31c.tar.xz
gentoobrowse-d1595452e147be462d7594cefd88ced46002c31c.zip
Fix regexp_replace to match multiple times
-rw-r--r--gentoobrowse/console/bugassociate.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoobrowse/console/bugassociate.xml b/gentoobrowse/console/bugassociate.xml
index 655e33f..245c62d 100644
--- a/gentoobrowse/console/bugassociate.xml
+++ b/gentoobrowse/console/bugassociate.xml
@@ -7,7 +7,7 @@
SELECT b.bugid, p.packageid
FROM bugs b, packages p, categories c
WHERE p.categoryid = c.categoryid
- AND TO_TSVECTOR('english', REGEXP_REPLACE(b.summary,'-[0-9][^ ]*','')) @@ PLAINTO_TSQUERY('english', c.name || '/' || p.name)
+ AND TO_TSVECTOR('english', REGEXP_REPLACE(b.summary, '-[0-9][^ ]*', '', 'g')) @@ PLAINTO_TSQUERY('english', c.name || '/' || p.name)
</sql>
<columns>
<column key="true">bugid</column>