# HG changeset patch # User Andre Heinecke # Date 1364296036 -3600 # Node ID 70026e3b6af31499147a8449e8c74fadf006c68f # Parent fd07bcaff88079813892dfccb9a2f467976ad845 Add buildings of kind 0 to data cage diff -r fd07bcaff880 -r 70026e3b6af3 flys-artifacts/doc/conf/meta-data.xml --- a/flys-artifacts/doc/conf/meta-data.xml Tue Mar 26 12:04:52 2013 +0100 +++ b/flys-artifacts/doc/conf/meta-data.xml Tue Mar 26 12:07:16 2013 +0100 @@ -1526,7 +1526,8 @@ bk.name AS building_kind FROM buildings b JOIN building_kinds bk ON b.kind_id = bk.id - WHERE river_id = ${river_id} + WHERE b.river_id = ${river_id} + AND b.kind_id != 0 @@ -1536,6 +1537,30 @@ + + + SELECT DISTINCT + b.kind_id AS building_kind_id, + b.name AS building_name, + bk.name AS building_kind + FROM buildings b + JOIN building_kinds bk ON b.kind_id = bk.id + WHERE river_id = ${river_id} + AND kind_id = 0 OR + kind_id IS NULL + + + + + + + + + + + + +