Bug report #12847

virtual layer query in DBmanager throws error

Added by Regis Haubourg over 9 years ago. Updated over 9 years ago.

Status:Closed
Priority:High
Assignee:Hugo Mercier
Category:DB Manager
Affected QGIS version:2.8.2 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:20941

Description

a simple query on a postgis layer : "select * from cours_eau" throws this error message:

Traceback (most recent call last):
  File "\\\\NAS01\\appdata2008\\haubourg\\AppData\\Roaming\\.qgismaster/python/plugins\\db_manager\\dlg_sql_window.py", line 172, in executeSql
    model = self.db.sqlResultModel(sql, self)
  File "\\\\NAS01\\appdata2008\\haubourg\\AppData\\Roaming\\.qgismaster/python/plugins\\db_manager\\db_plugins\\vlayers\\plugin.py", line 105, in sqlResultModel
    return LSqlResultModel(self, sql, parent)
  File "\\\\NAS01\\appdata2008\\haubourg\\AppData\\Roaming\\.qgismaster/python/plugins\\db_manager\\db_plugins\\vlayers\\data_model.py", line 76, in __init__
    if not p.isValid():
AttributeError: 'NoneType' object has no attribute 'isValid'

History

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

  • Resolution set to invalid
  • Status changed from Open to Closed

third party plugin. Maybe file a ticket here

#2 Updated by Regis Haubourg over 9 years ago

Sorry for that, I thought it was in core.
Cheers

Also available in: Atom PDF