changeset 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 171b6200d26d
children 6370369412e9
files ChangeLog artifact-database/src/main/resources/sql/org-h2-driver.properties artifact-database/src/main/resources/sql/org-postgresql-driver.properties
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Mar 08 10:38:14 2011 +0000
+++ b/ChangeLog	Wed Mar 09 10:24:56 2011 +0000
@@ -1,3 +1,9 @@
+2011-03-09  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifact-database/src/main/resources/sql/org-h2-driver.properties,
+	  artifact-database/src/main/resources/sql/org-postgresql-driver.properties:
+	  Fixed a typo.
+
 2011-03-08  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java,
--- a/artifact-database/src/main/resources/sql/org-h2-driver.properties	Tue Mar 08 10:38:14 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-h2-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 DATEDIFF('MILLISECOND', last_access, CURRENT_TIMESTAMP) > ttl \
-    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 = ?
--- 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