]> git.decadent.org.uk Git - dak.git/commitdiff
dak/dakdb/update79.py: Use || operator instead of CONCAT to make postgresql 9.0 happy
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 12:49:01 +0000 (14:49 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 12:49:01 +0000 (14:49 +0200)
dak/dakdb/update79.py

index 67ad01a63cea6ed39be73bf56b95e34b02ca080f..954f393d45858cc52e34f87529abda1d71fc53cd 100644 (file)
@@ -47,7 +47,7 @@ def do_update(self):
             CREATE OR REPLACE VIEW world."files-1" AS
               SELECT
                 files.id AS id,
-                CONCAT(component.name, '/', files.filename) AS filename,
+                component.name || '/' || files.filename AS filename,
                 files.size AS size,
                 files.md5sum AS md5sum,
                 files.sha1sum AS sha1sum,