Opened 14 years ago

Closed 14 years ago

#2445 closed bug (fixed)

Problems with table manager and postgis tables

Reported by: bjpfei Owned by: borysiasty
Priority: major: does not work as expected Milestone: Version 1.6.0
Component: Python plugins and bindings Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

Description

It seems that the table manager doesn't work with postgis tables that don't have the geometry column as last column.

1.) Try a shapefile => Table Manger works
2.) Try a postgis Table with geometry column as last column => Table manager works
3.) try a postgis table with geometry column not as last column => you get an python error

Traceback (most recent call last):
  File "/home/bjsvwpfe/.qgis//python/plugins/tablemanager/tableManager_plugin.py", line 63, in run
    dialoga = tableManager_gui.TableManager(self.iface)
  File "/home/bjsvwpfe/.qgis//python/plugins/tablemanager/tableManager_gui.py", line 173, in __init__
    self.drawFieldsTable()
  File "/home/bjsvwpfe/.qgis//python/plugins/tablemanager/tableManager_gui.py", line 183, in drawFieldsTable
    item = QTableWidgetItem(fields[i].name())
KeyError: 82

thx

Change History (4)

comment:1 by lutra, 14 years ago

Priority: critical: causes crash or data corruptionmajor: does not work as expected

meanwhile you can use the "postgis manager" plugin.

comment:2 by bjpfei, 14 years ago

me yes but not our users. It's not that good if they edit the tables directly on the database ;-)

comment:3 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

Why not? If they got permission to do it, they're assumed safe

comment:4 by borysiasty, 14 years ago

Resolution: fixed
Status: newclosed

fixed in v 0.1.11

Note: See TracTickets for help on using tickets.