[GRASS-SVN] r59802 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 19 08:49:53 PDT 2014
Author: martinl
Date: 2014-04-19 08:49:53 -0700 (Sat, 19 Apr 2014)
New Revision: 59802
Modified:
grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
Log:
winGRASS: fix SQLBuilder to get values on Windows
Modified: grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py 2014-04-19 14:00:56 UTC (rev 59801)
+++ grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py 2014-04-19 15:49:53 UTC (rev 59802)
@@ -39,7 +39,7 @@
from grass.pydispatch.signal import Signal
from core.gcmd import RunCommand, GError, GMessage
-from dbmgr.vinfo import CreateDbInfoDesc, VectorDBInfo
+from dbmgr.vinfo import CreateDbInfoDesc, VectorDBInfo, GetUnicodeValue
import grass.script as grass
@@ -299,7 +299,7 @@
data = grass.db_select(sql = "SELECT %s FROM %s" % (column, self.tablename),
database = self.database,
- driver = self.driver)
+ driver = self.driver, sep = '{_sep_}')
if not data:
return
@@ -312,6 +312,8 @@
if desc['type'] != 'character':
item = str(item)
+ else:
+ item = GetUnicodeValue(item)
self.list_values.Append(item)
i += 1
More information about the grass-commit
mailing list