id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,platform_version,platform,must_fix,status_info
470,adding a column to GRASS vector corrupts it,tutey@…,rugginoso,"QGIS SVN 6277, GRASS 6.3 CVS 18.12.2006 ~3:00 PM

Plugins -> GRASS

1. 'Open mapset' ""spearfish60/PERMANENT""

2. 'Create new Grass vector' ""testing""

3. digitise one feature (eg. a point) using default 'Next not used' category mode

4. switch to 'Table', add one column (any type, any name)

5. 'Edit attributes' and click on the point you've digitised in point 3

6. you get ""WARNING: ATTRIBUTES MISSING"" and you can't edit the attribute you set the column for in step 4



Trying to 'Update' the table yields:

{{{
DBMI-DBF driver error:
SQL parser error in statement:
update test set WARNING: ATTRIBUTES MISSING = 'WARNING: ATTRIBUTES MISSING' where cat = 1
Error in db_execute_immediate()
}}}

Closing the GRASS Edit and opening it back, as well as removing the GRASS vector from layers list and adding it back doesn't help. If you quit QGIS and start it back, and then add the GRASS vector in question it is added but nothing is rendered.

You can display and query the vector in GRASS tough, but you can't edit the attribute you have added in step 4 (it is not listed), both in v.digit and d.what.vect -e. Strange is that v.info -c reports this column OK and v.db.connect -p says the database link is OK.

IOW, the GRASS vectro in question is corruputed.

Maciek

P.S.

All references to GRASS should be in capital letters. Please get rid of ""Grass"".
",bug,new,minor: annoyance,Version 1.7.0,GRASS,Trunk,,,,,All,No,0
