Bug report #8366

DB Manager error with retrieve columns from SQL Window

Added by Pedro Venâncio over 11 years ago. Updated over 11 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 #:17143

Description

The execution of the query works well, as well as the "load the new layer" when choosing the "id" and "geometry" fields manually. Making "retrieve columns", it throws this error:

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/db_manager/dlg_sql_window.py", line 229, in fillColumnCombos
    if not query.contains( QRegExp(escaped, Qt.CaseInsensitive) ):
AttributeError: 'unicode' object has no attribute 'contains'

Python version:
2.7.3 (default, Apr 10 2013, 06:03:17) 
[GCC 4.6.3]

QGIS version:
1.9.0-Master Master, exported

Associated revisions

Revision 3d6fd9a6
Added by Nathan Woodrow over 11 years ago

Merge pull request #773 from slarosa/fix_8366

Fix #8366

History

#1 Updated by Giovanni Manghi over 11 years ago

  • OS version deleted (Xubuntu 12.04)
  • Operating System deleted (Linux)
  • Priority changed from Normal to Severe/Regression

it works fine on QGIS 1.8

#2 Updated by Nathan Woodrow over 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF