Bug report #13505
python error when trying to show the attribute table of Spatialite layer in DB Manager
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
Associated revisions
DBManager: fix int/float conversion to unicode (partially revert changes in 401f43c and fix #13505)
History
#2 Updated by Giuseppe Sucameli about 9 years ago
- Status changed from Open to Closed
Fixed in changeset 396ec2290b2e7dfdeaf9657ab08e970439bd0065.