changeset 340:560d2e6eaf9c

Fix SQL typo. artifacts/trunk@2957 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 13 Oct 2011 11:38:52 +0000 (2011-10-13)
parents f6beb4ffcf23
children e0efa2c28d19
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	Mon Oct 10 07:40:49 2011 +0000
+++ b/ChangeLog	Thu Oct 13 11:38:52 2011 +0000
@@ -1,3 +1,9 @@
+2011-10-13	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* artifact-database/src/main/resources/sql/org-h2-driver.properties,
+	  artifact-database/src/main/resources/sql/org-postgresql-driver.properties:
+	  Fix SQL typo.
+
 2011-10-10	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java:
--- a/artifact-database/src/main/resources/sql/org-h2-driver.properties	Mon Oct 10 07:40:49 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties	Thu Oct 13 11:38:52 2011 +0000
@@ -77,7 +77,7 @@
     UPDATE artifacts \
     SET last_access = DATEADD('MILLISECOND', -2, CURRENT_TIMESTAMP), ttl = 1 \
     WHERE id = ? AND \
-    NOT EXSITS \
+    NOT EXISTS \
     (SELECT id FROM collection_items WHERE collection_id <> ? AND artifact_id = ?)
 
 collection.item.delete=DELETE FROM collection_items WHERE id = ?
--- a/artifact-database/src/main/resources/sql/org-postgresql-driver.properties	Mon Oct 10 07:40:49 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-postgresql-driver.properties	Thu Oct 13 11:38:52 2011 +0000
@@ -77,7 +77,7 @@
     UPDATE artifacts \
     SET last_access = CURRENT_TIMESTAMP - '2 milliseconds'::interval, ttl = 1 \
     WHERE id = ? AND \
-    NOT EXSITS \
+    NOT EXISTS \
     (SELECT id FROM collection_items WHERE collection_id <> ? AND artifact_id = ?)
 
 collection.item.delete=DELETE FROM collection_items WHERE id = ?

http://dive4elements.wald.intevation.org