Ticket #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: | ||
| 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
Note: See
TracTickets for help on using
tickets.