Bug report #9991

python error when deleting PostGIS spatial index with DB manager

Added by Giovanni Manghi over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
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 #:18483

Description

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/db_manager/dlg_table_properties.py", line 316, in deleteIndex
    idx = m.getObject(index)
  File "/usr/share/qgis/python/plugins/db_manager/db_plugins/data_model.py", line 301, in getObject
    idx = val.toPyObject() if val.isValid() else self._getNewObject()
AttributeError: 'PGTableIndex' object has no attribute 'isValid'

Associated revisions

Revision 272ac2ec
Added by Jürgen Fischer over 6 years ago

db_manager: replace toPyObject() (old sip api; fixes #9991)

History

#1 Updated by Jürgen Fischer over 6 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF