diff artifact-database/src/main/resources/sql/org-h2-driver.properties @ 215:a9c8fa38ba03

Added new collection specific sql statements. artifacts/trunk@1554 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 24 Mar 2011 11:28:26 +0000
parents 199f0e553e3a
children 328ef982d768
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-h2-driver.properties	Wed Mar 23 16:23:52 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties	Thu Mar 24 11:28:26 2011 +0000
@@ -120,6 +120,10 @@
     SELECT c.gid, c.name, c.creation, u.gid FROM \
     collections c LEFT OUTER JOIN users u ON c.owner_id = u.id
 
+collections.select.by.gid= \
+    SELECT id, name, owner_id, creation, last_access, attribute \
+    FROM collections WHERE gid = ?
+
 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ?
 users.collection.ids=SELECT collection_id FROM collections WHERE owner_id = ?
 

http://dive4elements.wald.intevation.org