Bug report #1762

Table Manager: gives an error if the postgis table structure have been modified

Added by Giovanni Manghi over 14 years ago. Updated over 13 years ago.

Assignee:Borys Jurgiel
Category:Python plugins
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11822


When I modify the table structure of a postgis layer, adding a column trough the Postgis Manager or with the "properties -> attributes" dialog, then when the Table Manager is clicked it gives

An error has occured while executing Python code:

Traceback (most recent call last):
line 63, in run
dialoga = tableManager_gui.TableManager(self.iface)
"/home/gio/.qgis//python/plugins/tablemanager/tableManager_gui.py", line
174, in init
"/home/gio/.qgis//python/plugins/tablemanager/tableManager_gui.py", line
184, in drawFieldsTable
item = QTableWidgetItem(fields[i].name())
KeyError: 8

Python version:
2.6.2 (release26-maint, Apr 19 2009, 02:11:59)
[GCC 4.3.3]

Python path:['/usr/local/share/qgis/python',
'/usr/local/share/qgis/python/plugins', '/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',

Qgis 1.2 rev. 11023 on Ubuntu 9.04


#1 Updated by Borys Jurgiel over 14 years ago

  • Status changed from Open to In Progress

#2 Updated by Giovanni Manghi over 14 years ago

still true on the latest trunk version

#3 Updated by Borys Jurgiel over 13 years ago

  • Resolution set to fixed
  • Status changed from In Progress to Closed

Should work with v 0.1.11. Please reopen otherwise.

Also available in: Atom PDF