Exclude osm_id 0 from QA report

pull/269/head v1.4.1
Lukas Martinelli 2016-04-21 20:28:22 +02:00
rodzic e756550520
commit 25ed827079
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ BEGIN
IF numpars = 0 THEN
fullcode = ' select null ';
ELSIF numpars = 1 THEN
fullcode = ' select count( distinct osm_id ) as alluid from ' || tablelist[1];
fullcode = ' select count( distinct osm_id ) as alluid from ' || tablelist[1] || ' where osm_id <> 0';
ELSE
FOREACH table_name IN ARRAY tablelist
LOOP
@ -21,7 +21,7 @@ BEGIN
END IF ;
i = i + 1;
END LOOP;
fullcode = ' select count( distinct osm_id ) as alluid from (' || code || ') as sq';
fullcode = ' select count( distinct osm_id ) as alluid from (' || code || ') as sq where osm_id <> 0';
END IF;
EXECUTE fullcode INTO feature_count;
RETURN feature_count;