Browse Source

wxGUI/SqlWhereSelect: fix renaming issues

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72550 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 7 years ago
parent
commit
96c6d36132
2 changed files with 1 additions and 4 deletions
  1. 0 3
      gui/wxpython/dbmgr/sqlbuilder.py
  2. 1 1
      gui/wxpython/gui_core/forms.py

+ 0 - 3
gui/wxpython/dbmgr/sqlbuilder.py

@@ -420,9 +420,6 @@ class SQLBuilder(wx.Frame):
             self.dbInfo.GetTable(
                 self.layer))[column]['type']
 
-        if ctype == 'character':
-            value = "'%s'" % value
-
         self._add(element='value', value=value)
 
     def OnGoTo(self, event):

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -325,7 +325,7 @@ class UpdateThread(Thread):
 
                     if not cparams[map]['dbInfo']:
                         cparams[map]['dbInfo'] = gselect.VectorDBInfo(map)
-                    self.data[win.GetParent().SetData] = {
+                    self.data[win.GetParent().InsertColumns] = {
                         'vector': map, 'layer': layer,
                         'dbInfo': cparams[map]['dbInfo']}
                 else:  # table