Bug report #6842

db manager error when running > 1 query

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

Status:Closed
Priority:High
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:Yes Copied to github as #:15978

Description

Traceback (most recent call last):
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\dlg_sql_window.py",
line 117, in executeSql
model = self.db.sqlResultModel( sql, self )
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\db_plugins\\spatialite\\plugin.py",
line 106, in sqlResultModel
return SLSqlResultModel(self, sql, parent)
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\db_plugins\\data_model.py",
line 133, in init
c = self.db._execute(None, unicode(sql))
File "C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\db_manager\\db_plugins\\connector.py",
line 76, in _execute
cursor.execute(unicode(sql))
Warning: You can only execute one statement at a time.

after that qgis become not responsive and must be killed.

Associated revisions

History

#1 Updated by Giuseppe Sucameli almost 12 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF