Skip to content

Lowercase UNIQUE in PostGIS subquery #6060

Description

@kalbermattenm

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions