Mercurial > dive4elements > river
changeset 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 |
files | artifacts/doc/conf/meta-data.xml |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml Thu May 23 11:18:51 2013 +0200 +++ b/artifacts/doc/conf/meta-data.xml Thu May 23 11:21:58 2013 +0200 @@ -2637,7 +2637,7 @@ FROM users u JOIN collections c ON c.user_id = u.id JOIN master_artifacts_range ma ON ma.collection_id = c.id - WHERE c.id = ${collection_id} + WHERE u.gid = CAST(${user-id} AS UUID) AND ma.gid <> CAST(${artifact-id} AS uuid) AND EXISTS ( SELECT id