Bug report #6847

db manager error when deleting a PG column

Added by Giovanni Manghi almost 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:Normal
Assignee:Giuseppe Sucameli
Category:DB Manager
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:15983

Description

Traceback (most recent call last):
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\dlg_table_properties.py",
line 180, in deleteColumn
self.populateViews()
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\dlg_table_properties.py",
line 86, in populateViews
self.populateIndexes()
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\dlg_table_properties.py",
line 261, in populateIndexes
m.append( idx )
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\db_plugins\\data_model.py",
line 281, in append
field_names = map( lambda (k,v): unicode(v.name), idx.fields().iteritems() )
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\db_plugins\\data_model.py",
line 281, in
field_names = map( lambda (k,v): unicode(v.name), idx.fields().iteritems() )
AttributeError: 'NoneType' object has no attribute 'name'

Associated revisions

History

#1 Updated by Giuseppe Sucameli almost 7 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF