diff artifact-database/src/main/resources/sql/org-postgresql-driver.properties @ 197:94654cbf8db2

Fixed a typo in the sql statements. artifacts/trunk@1435 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Mar 2011 10:24:56 +0000
parents 63f555bbdbc0
children face2302387c
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-postgresql-driver.properties	Tue Mar 08 10:38:14 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-postgresql-driver.properties	Wed Mar 09 10:24:56 2011 +0000
@@ -11,7 +11,7 @@
 
 artifacts.outdated=SELECT id, factory, data FROM artifacts WHERE ttl IS NOT NULL \
     AND CURRENT_TIMESTAMP - last_access > (ttl || ' microseconds')::interval \
-    AND id NOT IN (SELECT UNIQUE artifact_id FROM collection_items) \
+    AND id NOT IN (SELECT DISTINCT artifact_id FROM collection_items) \
     LIMIT 50
 
 artifacts.select.gid=SELECT id, last_access, ttl, factory, data FROM artifacts WHERE gid = ?::uuid

http://dive4elements.wald.intevation.org