Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 6070:cd8f77794a03
meta-data.xml: Fix query, select on user-id not collection-id.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 23 May 2013 11:21:58 +0200 |
parents | dcbc06ca5d19 |
children | 038e60fdd49a |
comparison
equal
deleted
inserted
replaced
6069:dcbc06ca5d19 | 6070:cd8f77794a03 |
---|---|
2635 COALESCE(ma.ld_from, '') AS ld_f, | 2635 COALESCE(ma.ld_from, '') AS ld_f, |
2636 COALESCE(ma.ld_to, '') AS ld_t | 2636 COALESCE(ma.ld_to, '') AS ld_t |
2637 FROM users u | 2637 FROM users u |
2638 JOIN collections c ON c.user_id = u.id | 2638 JOIN collections c ON c.user_id = u.id |
2639 JOIN master_artifacts_range ma ON ma.collection_id = c.id | 2639 JOIN master_artifacts_range ma ON ma.collection_id = c.id |
2640 WHERE c.id = ${collection_id} | 2640 WHERE u.gid = CAST(${user-id} AS UUID) |
2641 AND ma.gid <> CAST(${artifact-id} AS uuid) | 2641 AND ma.gid <> CAST(${artifact-id} AS uuid) |
2642 AND EXISTS ( | 2642 AND EXISTS ( |
2643 SELECT id | 2643 SELECT id |
2644 FROM artifact_data ad | 2644 FROM artifact_data ad |
2645 WHERE ad.artifact_id = ma.id | 2645 WHERE ad.artifact_id = ma.id |