Fix small formatting issues

pull/260/head
lukasmartinelli 2016-04-20 21:10:49 +02:00
rodzic c0d7b38940
commit 09ee97382d
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
CREATE OR REPLACE FUNCTION count_osmid( tablelist TEXT[] ) RETURNS bigint AS $$
CREATE OR REPLACE FUNCTION count_osmid(tablelist TEXT[]) RETURNS bigint AS $$
DECLARE
i int8 := 0;
feature_count bigint;
@ -39,7 +39,7 @@ RETURNS TABLE (
BEGIN
RETURN QUERY
SELECT id as tid,
count_osmid(iosmlist) as all_features,
count_osmid(iosmlist) as all_features,
count_osmid(ilayerlist) as used_features,
iosmlist as osmlist,
ilayerlist as layerlist;

Wyświetl plik

@ -70,6 +70,6 @@ WITH vlayers AS (
array['mountain_peak_label_layer']
)
)
SELECT *, round ((used_features::numeric*100) / all_features::numeric, 2) as percent
SELECT *, round((used_features::numeric * 100) / all_features::numeric, 2) as percent
FROM vlayers
ORDER BY tid;