comparison artifact-database/src/main/resources/sql/org-h2-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
184 184
185 all.artifacts = \ 185 all.artifacts = \
186 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 \ 186 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 \
187 users u INNER JOIN collections c ON u.id = c.owner_id \ 187 users u INNER JOIN collections c ON u.id = c.owner_id \
188 INNER JOIN collection_items ci ON c.id = ci.collection_id \ 188 INNER JOIN collection_items ci ON c.id = ci.collection_id \
189 INNER JOIN artifacts a ON a.if = ci.artifact_id \ 189 INNER JOIN artifacts a ON a.id = ci.artifact_id \
190 ORDER BY u_gid, c_gid 190 ORDER BY u_gid, c_gid

http://dive4elements.wald.intevation.org