Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 6655:86b17c675374
Cast ld values to varchar in user artifacts statement
The problem appears to be that now with v in the artifactsdb as
a TEXT datatype that we get CLOBS as a result here. To make
the old stuff work we cast the ld_ values that are evalutated
in datacage functions back to varchar and thus to strings.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 24 Jul 2013 19:03:33 +0200 |
parents | 6f42a62d0cf2 |
children | 85ca64599445 |
comparison
equal
deleted
inserted
replaced
6654:6f42a62d0cf2 | 6655:86b17c675374 |
---|---|
2446 </dc:context> | 2446 </dc:context> |
2447 </dc:macro> | 2447 </dc:macro> |
2448 | 2448 |
2449 <dc:macro name="all-user-artifacts"> | 2449 <dc:macro name="all-user-artifacts"> |
2450 <dc:context connection="user"> | 2450 <dc:context connection="user"> |
2451 <dc:comment>Select collections and masterartifacts.</dc:comment> | 2451 <dc:comment>Select collections and masterartifacts. |
2452 XXX: The cast is a quick hack because the ld_* values are | |
2453 now TEXT fields. To properly fix / asses the problems here | |
2454 an SLT evaluation is needed. | |
2455 </dc:comment> | |
2452 <dc:statement> | 2456 <dc:statement> |
2453 SELECT c.name AS collection_name, | 2457 SELECT c.name AS collection_name, |
2454 ma.id AS a_id, | 2458 ma.id AS a_id, |
2455 ma.state AS a_state, | 2459 ma.state AS a_state, |
2456 ma.gid AS a_gid, | 2460 ma.gid AS a_gid, |
2457 ma.creation AS a_creation, | 2461 ma.creation AS a_creation, |
2458 COALESCE(ma.ld_mode, '') AS ld_m, | 2462 CAST(COALESCE(ma.ld_mode, '') AS VARCHAR(255)) AS ld_m, |
2459 COALESCE(ma.ld_locations, '') AS ld_l, | 2463 CAST(COALESCE(ma.ld_locations, '') AS VARCHAR(255)) AS ld_l, |
2460 COALESCE(ma.ld_from, '') AS ld_f, | 2464 CAST(COALESCE(ma.ld_from, '') AS VARCHAR(255)) AS ld_f, |
2461 COALESCE(ma.ld_to, '') AS ld_t, | 2465 CAST(COALESCE(ma.ld_to, '') AS VARCHAR(255)) AS ld_t, |
2462 o.name AS out_name, | 2466 o.name AS out_name, |
2463 o.id AS out_id, | 2467 o.id AS out_id, |
2464 f.name AS facet_name, | 2468 f.name AS facet_name, |
2465 f.num AS facet_num, | 2469 f.num AS facet_num, |
2466 f.description AS facet_description, | 2470 f.description AS facet_description, |