Feature request #3242
Bug in postgis layer geometry type detection when a filter is applied.
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||13302|
When adding a PostGIS layer and the estimated table metadata option is turned on, you can not apply a filter to layer and "Unknown geometry type" error is raised.
The reason for this is the SQL to determine the layer geometry type was corrupted in r13340 (add custom query capabilities).
This patch fixes the query.