Ticket #2445 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

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:
Platform Version: Platform: All
Must Fix for Release: Yes 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

Changed 3 years ago by lutra

  • priority changed from critical: causes crash or data corruption to major: does not work as expected

meanwhile you can use the "postgis manager" plugin.

Changed 3 years ago by bjpfei

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

Changed 3 years ago by pcav

  • milestone changed from Version 1.5.0 to Version 1.6.0

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

Changed 3 years ago by borysiasty

  • status changed from new to closed
  • resolution set to fixed

fixed in v 0.1.11

Note: See TracTickets for help on using tickets.