Bug report #13505

python error when trying to show the attribute table of Spatialite layer in DB Manager

Added by Giovanni Manghi about 4 years ago. Updated about 4 years ago.

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

Description

Try preview the table of the layer in the attached SL db, in DB Manager of QGIS master, this will result in

Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\db_manager\\db_plugins\\data_model.py", line 79, in data
return unicode(val, 'utf-8', 'replace') # convert from utf8 and replace errors (if any)
TypeError: coercing to Unicode: need string or buffer, int found

it works ok up to 2.8.


Related issues

Related to QGIS Application - Bug report #13508: QGIS master: table preview in DB Manager completely empty Closed 2015-10-04

Associated revisions

Revision 396ec229
Added by Giuseppe Sucameli about 4 years ago

DBManager: fix int/float conversion to unicode (partially revert changes in 401f43c and fix #13505)

Also available in: Atom PDF