diff artifact-database/src/main/resources/sql/org-h2-driver.properties @ 346:2d525562fae9

Bugfix: added missing bracket to a H2 sql statement. artifacts/trunk@3050 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 21 Oct 2011 07:45:33 +0000
parents 542caebea773
children 08731e7403b5
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-h2-driver.properties	Thu Oct 20 10:13:46 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties	Fri Oct 21 07:45:33 2011 +0000
@@ -168,7 +168,7 @@
 outdate.artifacts.collection=UPDATE artifacts \
     SET last_access = DATEADD('MILLISECOND', -2, CURRENT_TIMESTAMP), ttl = 1 \
     WHERE id IN \
-    SELECT artifact_id FROM collection_items \
+    (SELECT artifact_id FROM collection_items \
         WHERE collection_id = ? AND \
         artifact_id NOT IN (SELECT DISTINCT artifact_id FROM collection_items WHERE collection_id <> ?))
 

http://dive4elements.wald.intevation.org