diff artifact-database/src/main/resources/sql/org-h2-driver.properties @ 317:824051dff018

When loading all artifacts fetch the name of the collections, too. artifacts/trunk@2453 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 02 Aug 2011 14:05:34 +0000
parents 31ee2b3b5a57
children 61017c6031b8
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-h2-driver.properties	Tue Aug 02 13:10:56 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties	Tue Aug 02 14:05:34 2011 +0000
@@ -183,7 +183,9 @@
     UPDATE collections SET attribute = ? WHERE gid = ?
 
 all.artifacts = \
-    SELECT u.gid AS u_gid, c.gid AS c_gid, a.gid AS a_gid, a.factory AS factory, a.data AS data FROM \
+    SELECT u.gid AS u_gid, c.gid AS c_gid, c.name as name, \
+           a.gid AS a_gid, a.factory AS factory, a.data AS data \
+    FROM \
         users u INNER JOIN collections c       ON u.id = c.owner_id \
                 INNER JOIN collection_items ci ON c.id = ci.collection_id \
                 INNER JOIN artifacts a         ON a.id = ci.artifact_id \

http://dive4elements.wald.intevation.org