#835 closed defect (fixed)
Qgis assertion when loading a postgres layer when the postgis extent() function is missing
Reported by: | g_j_m | Owned by: | g_j_m |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | Vectors | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
Qgis crashes (with an assertion) when loading a postgres layer when the postgis extent() function is missing. This is clearly a problem with the setup of the database, but qgis could be a bit more robust with unexpected behaviour from postgres.
Debug: qgspostgresprovider.cpp: 2526: (calculateExtents) +++++++++QgsPostgresProvider::calculateExtents - Getting extents using schema.table: select extent("trackline") from "public"."t_station" Fatal: ASSERT: "PQntuples(result) == 1" in file qgspostgresprovider.cpp, line 2529 Aborted
and a similar query from psql:
omandb=# select extent(trackline) from t_station; ERROR: function extent(geometry) does not exist HINT: No function matches the given name and argument types. You may need to add explicit type casts.
Change History (3)
comment:1 by , 17 years ago
Status: | new → assigned |
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
fixed in r7661