I do not know if this is an issue or if this was actually done on purpose. I tested the master branch (downloaded the latest mapserver build on gisinternals)
It looks like UNIQUE has now to be lowercase when using a subquery in a PostGIS data connection:
Working:
DATA "geom FROM (SELECT * from routes.rt101_entretien_talus) AS foo USING unique idobj USING srid=2056"
Not working anymore (is working with Mapserver 7.4.2):
DATA "geom FROM (SELECT * from routes.rt101_entretien_talus) AS foo USING UNIQUE idobj USING srid=2056"
The returned error is:
msWMSApplyFilter(): WMS server error. FLTApplyFilterToLayer() failed msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. You must specify 'using unique' when supplying a subselect in the data definition.
Is that a bug or do with have to use "unique" only in its lowercase form ?
I do not know if this is an issue or if this was actually done on purpose. I tested the master branch (downloaded the latest mapserver build on gisinternals)
It looks like
UNIQUEhas now to be lowercase when using a subquery in a PostGIS data connection:Working:
Not working anymore (is working with Mapserver 7.4.2):
The returned error is:
Is that a bug or do with have to use "unique" only in its lowercase form ?