fix parameters qareports paramaters

This commit is contained in:
ImreSamu
2016-12-05 01:11:39 +01:00
parent 4cea3eec65
commit d4c06a4eba
2 changed files with 6 additions and 13 deletions

View File

@@ -14,10 +14,10 @@ echo "## $layerid z$z max length ($classvar)"
SQL=$(generate-sqlquery layers/${layerid}/${layerid}.yaml $z )
SQLCODE=$(cat <<-END
select $classvar , length( $classvar ) as _length_ from
SELECT DISTINCT $classvar , length( $classvar ) AS _length_ from
$SQL
WHERE length( $classvar ) > 0
ORDER BY length( $classvar ) DESC NULLS LAST
ORDER BY length( $classvar ) DESC NULLS LAST
LIMIT 30
;
END