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

Fixed broken SQL statement. Added debug output. artifacts/trunk@2427 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 31 Jul 2011 17:28:07 +0000
parents 190aa68ae7a8
children 31ee2b3b5a57
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-postgresql-driver.properties	Sun Jul 31 15:18:57 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-postgresql-driver.properties	Sun Jul 31 17:28:07 2011 +0000
@@ -175,5 +175,5 @@
     SELECT u.gid AS u_gid, c.gid AS c_gid, a.gid AS a_gid, a.factory AS factory, a.data AS data FROM \
         users u INNER JOIN collections c       ON u.id = c.owner_id \
                 INNER JOIN collection_items ci ON c.id = ci.collection_id \
-                INNER JOIN artifacts a         ON a.if = ci.artifact_id \
+                INNER JOIN artifacts a         ON a.id = ci.artifact_id \
         ORDER BY u_gid, c_gid

http://dive4elements.wald.intevation.org