Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 9641:f96be528ee35
Removed AS for table aliases in infrastructure queries to avoid Oracle problem
author | mschaefer |
---|---|
date | Mon, 02 Dec 2019 09:24:38 +0100 |
parents | 68d7b09a47b7 |
children | 4311db5dacc8 |
comparison
equal
deleted
inserted
replaced
9640:68d7b09a47b7 | 9641:f96be528ee35 |
---|---|
1460 <dc:message>infrastructures_statement.infra_rs_clause: $infra_rs_clause</dc:message> | 1460 <dc:message>infrastructures_statement.infra_rs_clause: $infra_rs_clause</dc:message> |
1461 <dc:message>infrastructures_statement.infra_rs_clause: ${infra_rs_clause}</dc:message> | 1461 <dc:message>infrastructures_statement.infra_rs_clause: ${infra_rs_clause}</dc:message> |
1462 <dc:statement> | 1462 <dc:statement> |
1463 SELECT s.id, MIN(s.filename) AS filename, MIN(s.group_id) AS group_id, MIN(g.name) AS group_label, | 1463 SELECT s.id, MIN(s.filename) AS filename, MIN(s.group_id) AS group_id, MIN(g.name) AS group_label, |
1464 MIN(s.annotation_type_id) AS type_id, MIN(t.name) AS type_label | 1464 MIN(s.annotation_type_id) AS type_id, MIN(t.name) AS type_label |
1465 FROM (((infrastructure AS s INNER JOIN infrastructure_values AS v ON v.infrastructure_id = s.id) | 1465 FROM (((infrastructure s INNER JOIN infrastructure_values v ON v.infrastructure_id = s.id) |
1466 INNER JOIN annotation_types AS g ON s.group_id = g.id) | 1466 INNER JOIN annotation_types g ON s.group_id = g.id) |
1467 INNER JOIN annotation_types AS t ON s.annotation_type_id = t.id) | 1467 INNER JOIN annotation_types t ON s.annotation_type_id = t.id) |
1468 INNER JOIN attributes AS rs ON v.attribute_id = rs.id | 1468 INNER JOIN attributes rs ON v.attribute_id = rs.id |
1469 WHERE (s.river_id = ${river_id}) | 1469 WHERE (s.river_id = ${river_id}) |
1470 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 1470 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) |
1471 ${infra_rs_clause} | 1471 ${infra_rs_clause} |
1472 GROUP BY s.id | 1472 GROUP BY s.id |
1473 ORDER BY MIN(g.name), MIN(t.name) | 1473 ORDER BY MIN(g.name), MIN(t.name) |
1476 | 1476 |
1477 <dc:macro name="infrastructures_leftside_statement"> | 1477 <dc:macro name="infrastructures_leftside_statement"> |
1478 <dc:statement> | 1478 <dc:statement> |
1479 SELECT s.id, MIN(s.filename) AS filename, MIN(s.group_id) AS group_id, MIN(g.name) AS group_label, | 1479 SELECT s.id, MIN(s.filename) AS filename, MIN(s.group_id) AS group_id, MIN(g.name) AS group_label, |
1480 MIN(s.annotation_type_id) AS type_id, MIN(t.name) AS type_label | 1480 MIN(s.annotation_type_id) AS type_id, MIN(t.name) AS type_label |
1481 FROM (((infrastructure AS s INNER JOIN infrastructure_values AS v ON v.infrastructure_id = s.id) | 1481 FROM (((infrastructure s INNER JOIN infrastructure_values v ON v.infrastructure_id = s.id) |
1482 INNER JOIN annotation_types AS g ON s.group_id = g.id) | 1482 INNER JOIN annotation_types g ON s.group_id = g.id) |
1483 INNER JOIN annotation_types AS t ON s.annotation_type_id = t.id) | 1483 INNER JOIN annotation_types t ON s.annotation_type_id = t.id) |
1484 INNER JOIN attributes AS rs ON v.attribute_id = rs.id | 1484 INNER JOIN attributes rs ON v.attribute_id = rs.id |
1485 WHERE (s.river_id = ${river_id}) | 1485 WHERE (s.river_id = ${river_id}) |
1486 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 1486 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) |
1487 AND (lower(rs.value) = 'links') | 1487 AND (lower(rs.value) = 'links') |
1488 GROUP BY s.id | 1488 GROUP BY s.id |
1489 ORDER BY MIN(g.name), MIN(t.name) | 1489 ORDER BY MIN(g.name), MIN(t.name) |
1492 | 1492 |
1493 <dc:macro name="infrastructures_rightside_statement"> | 1493 <dc:macro name="infrastructures_rightside_statement"> |
1494 <dc:statement> | 1494 <dc:statement> |
1495 SELECT s.id, MIN(s.filename) AS filename, MIN(s.group_id) AS group_id, MIN(g.name) AS group_label, | 1495 SELECT s.id, MIN(s.filename) AS filename, MIN(s.group_id) AS group_id, MIN(g.name) AS group_label, |
1496 MIN(s.annotation_type_id) AS type_id, MIN(t.name) AS type_label | 1496 MIN(s.annotation_type_id) AS type_id, MIN(t.name) AS type_label |
1497 FROM (((infrastructure AS s INNER JOIN infrastructure_values AS v ON v.infrastructure_id = s.id) | 1497 FROM (((infrastructure s INNER JOIN infrastructure_values v ON v.infrastructure_id = s.id) |
1498 INNER JOIN annotation_types AS g ON s.group_id = g.id) | 1498 INNER JOIN annotation_types g ON s.group_id = g.id) |
1499 INNER JOIN annotation_types AS t ON s.annotation_type_id = t.id) | 1499 INNER JOIN annotation_types t ON s.annotation_type_id = t.id) |
1500 INNER JOIN attributes AS rs ON v.attribute_id = rs.id | 1500 INNER JOIN attributes rs ON v.attribute_id = rs.id |
1501 WHERE (s.river_id = ${river_id}) | 1501 WHERE (s.river_id = ${river_id}) |
1502 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 1502 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) |
1503 AND (lower(rs.value) = 'rechts') | 1503 AND (lower(rs.value) = 'rechts') |
1504 GROUP BY s.id | 1504 GROUP BY s.id |
1505 ORDER BY MIN(g.name), MIN(t.name) | 1505 ORDER BY MIN(g.name), MIN(t.name) |
1508 | 1508 |
1509 <dc:macro name="infrastructures_bothsides_statement"> | 1509 <dc:macro name="infrastructures_bothsides_statement"> |
1510 <dc:statement> | 1510 <dc:statement> |
1511 SELECT s.id, MIN(s.filename) AS filename, MIN(s.group_id) AS group_id, MIN(g.name) AS group_label, | 1511 SELECT s.id, MIN(s.filename) AS filename, MIN(s.group_id) AS group_id, MIN(g.name) AS group_label, |
1512 MIN(s.annotation_type_id) AS type_id, MIN(t.name) AS type_label | 1512 MIN(s.annotation_type_id) AS type_id, MIN(t.name) AS type_label |
1513 FROM (((infrastructure AS s INNER JOIN infrastructure_values AS v ON v.infrastructure_id = s.id) | 1513 FROM (((infrastructure s INNER JOIN infrastructure_values v ON v.infrastructure_id = s.id) |
1514 INNER JOIN annotation_types AS g ON s.group_id = g.id) | 1514 INNER JOIN annotation_types g ON s.group_id = g.id) |
1515 INNER JOIN annotation_types AS t ON s.annotation_type_id = t.id) | 1515 INNER JOIN annotation_types t ON s.annotation_type_id = t.id) |
1516 INNER JOIN attributes AS rs ON v.attribute_id = rs.id | 1516 INNER JOIN attributes rs ON v.attribute_id = rs.id |
1517 WHERE (s.river_id = ${river_id}) | 1517 WHERE (s.river_id = ${river_id}) |
1518 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 1518 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) |
1519 GROUP BY s.id | 1519 GROUP BY s.id |
1520 ORDER BY MIN(g.name), MIN(t.name) | 1520 ORDER BY MIN(g.name), MIN(t.name) |
1521 </dc:statement> | 1521 </dc:statement> |