Opened 14 years ago

Closed 10 years ago

#985 closed defect (fixed)

v.db.update error

Reported by: fpacheco Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Python Version: unspecified
Keywords: v.db.update Cc:
CPU: Unspecified Platform: All

Description

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"]:

Attachments (1)

patch.diff (488 bytes ) - added by fpacheco 14 years ago.

Download all attachments as: .zip

Change History (4)

by fpacheco, 14 years ago

Attachment: patch.diff added

comment:1 by fpacheco, 14 years ago

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

comment:2 by martinl, 14 years ago

Patch applied in r41299.

comment:3 by martinl, 10 years ago

Resolution: fixed
Status: newclosed

No answer in 4 years, closing.

Note: See TracTickets for help on using tickets.