[GRASS-user] bug in v.db.renamecol

Markus Neteler neteler at osgeo.org
Thu Feb 7 16:16:03 EST 2008


On Feb 7, 2008 4:47 PM, Dr. Manuel Seeger <seeger at uni-trier.de> wrote:
> Hello all,
> I found a small bug in v.db.renamecol
>
> working on dbf- database driver, renaming a column, if (like I made) you
> try to use a column name greater than 10 characters length, then it
> gives an error warning, and creates a column with the new name (cut at
> the end to fit 10 char), but does not fill in the column values, and(!)
> deletes the old column.
> This is: column data is lost!

That's bad! Fixed:

v.db.renamecol myarchsites co=str1,abcdefghijk
ERROR: Column name too long <abcdefghijk>: the DBF driver only supports up
       to 10 characters as column name.

http://trac.osgeo.org/grass/changeset/30007

(also fixed in 6.3 rel.branch).

markus


More information about the grass-user mailing list