[GRASS-dev] [GRASS GIS] #985: v.db.update error

#985: v.db.update error
-------------------------+--------------------------------------------------
Reporter: fpacheco | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Python | Version: unspecified
Keywords: v.db.update | Platform: All
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
v.db.update.py script have error in line 108:
{{{
v.db.update map=prueba_1@fpacheco colum=j value=100
Traceback (most recent call last):
   File "/usr/local/grass-7.0.svn/scripts/v.db.update", line 124, in
<module>
     main()
   File "/usr/local/grass-7.0.svn/scripts/v.db.update", line 108, in main
     if coltype.upper() not in ["INTEGER", "DOUBLE PRECISION"]:
AttributeError: 'dict' object has no attribute 'upper'
}}}

Solution:
Replace
{{{
if coltype.upper() not in ["INTEGER", "DOUBLE PRECISION"]:
}}}
by
{{{
if coltype['type'].upper() not in ["INTEGER", "DOUBLE PRECISION"]:
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/985&gt;
GRASS GIS <http://grass.osgeo.org>

#985: v.db.update error
-----------------------+----------------------------------------------------
  Reporter: fpacheco | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: Python | Version: unspecified
Resolution: | Keywords: v.db.update
  Platform: All | Cpu: Unspecified
-----------------------+----------------------------------------------------
Comment (by fpacheco):

I've atach a file with better solution. Regards. Fernando.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/985#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#985: v.db.update error
-----------------------+----------------------------------------------------
  Reporter: fpacheco | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: Python | Version: unspecified
Resolution: | Keywords: v.db.update
  Platform: All | Cpu: Unspecified
-----------------------+----------------------------------------------------
Comment (by martinl):

Patch applied in r41299.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/985#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#985: v.db.update error
-----------------------+----------------------------------------------------
  Reporter: fpacheco | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Python | Version: unspecified
Resolution: fixed | Keywords: v.db.update
  Platform: All | Cpu: Unspecified
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: new => closed
  * resolution: => fixed

Comment:

No answer in 4 years, closing.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/985#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>