diff artifact-database/src/main/resources/sql/org-postgresql-driver.properties @ 253:a2df2b48d2aa

Enabled the artifact database to handle requests specific to collection attributes and collection item attributes. artifacts/trunk@1746 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 26 Apr 2011 07:43:40 +0000
parents 33b9cc23ac9b
children 22a90706d32d
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-postgresql-driver.properties	Tue Apr 26 06:56:01 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-postgresql-driver.properties	Tue Apr 26 07:43:40 2011 +0000
@@ -160,3 +160,8 @@
             (SELECT artifact_id FROM collection_items WHERE collection_id IN \
                 (SELECT id FROM collections WHERE owner_id <> ?)))
 
+collection.get.attribute= \
+    SELECT c.attribute FROM collections c WHERE c.gid = ?::uuid
+
+collection.set.attribute= \
+    UPDATE collections SET attribute = ? WHERE gid = ?::uuid

http://dive4elements.wald.intevation.org