Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix "ORDER BY id" with table name. #17

Open
JivanAmara opened this issue Mar 6, 2018 · 0 comments
Open

Prefix "ORDER BY id" with table name. #17

JivanAmara opened this issue Mar 6, 2018 · 0 comments

Comments

@JivanAmara
Copy link
Collaborator

JivanAmara commented Mar 6, 2018

The order-by addition to gpkg provider generates SQL that can fail when joined tables both have an "id" field.

2018/03/06 14:59:07 handlers.go:216: Getting page 0 (size 10) for 'land_polygons'
2018-03-06 14:59:45 [ERROR] gpkg.go:138: err during query: SELECT `id` AS fid, `geom` AS geom FROM boundary l JOIN rtree_boundary_geom si ON l.id = si.id WHERE geom IS NOT NULL AND minx <= 179.99999997494382 AND maxx >= -179.99999997494382 AND miny <= 85.05112877764508 AND maxy >= -85.05112877764508 ORDER BY id - ambiguous column name: id
getFeatureIds len: 33289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant