Mercurial > dive4elements > framework
comparison 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 |
comparison
equal
deleted
inserted
replaced
307:d96bcb40dbf9 | 308:a077bb098eb4 |
---|---|
173 | 173 |
174 all.artifacts = \ | 174 all.artifacts = \ |
175 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 \ | 175 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 \ |
176 users u INNER JOIN collections c ON u.id = c.owner_id \ | 176 users u INNER JOIN collections c ON u.id = c.owner_id \ |
177 INNER JOIN collection_items ci ON c.id = ci.collection_id \ | 177 INNER JOIN collection_items ci ON c.id = ci.collection_id \ |
178 INNER JOIN artifacts a ON a.if = ci.artifact_id \ | 178 INNER JOIN artifacts a ON a.id = ci.artifact_id \ |
179 ORDER BY u_gid, c_gid | 179 ORDER BY u_gid, c_gid |