Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#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 g_j_m, 16 years ago

Status: newassigned

comment:2 by jef, 16 years ago

Resolution: fixed
Status: assignedclosed

fixed in r7661

comment:3 by (none), 15 years ago

Milestone: Version 0.9.1

Milestone Version 0.9.1 deleted

Note: See TracTickets for help on using tickets.