Skip to content

Postgis @variables error #882

Description

@springmeyer

Seeing:

  1) mapnik.VectorTile postgis.input passes variables to replace tokens in query:
     Uncaught Error: Postgis Plugin: ERROR:  column "fieldid" does not exist
LINE 1: ...T * FROM (SELECT gid, geom FROM test WHERE gid = @fieldid) a...
                                                             ^
in executeQuery Full sql was: 'SELECT * FROM (SELECT gid, geom FROM test WHERE gid = @fieldid) as field_shapes LIMIT 0'
  encountered during parsing of layer 'field_shapes' in Layer of './test/data/postgis_datasource_tokens_query.xml'
      at Error (native)
      at ChildProcess.<anonymous> (test/vector-tile.postgis.test.js:67:21)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)

On travis: https://travis-ci.org/mapnik/node-mapnik/jobs/396403731#L2544

This looks like a problem with #809.

/cc @rafatower @Algunenano - any idea what might be causing this error?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions