[GRASS-dev] drop table and dblink

Hi all,
I'm doing some tests about how GRASS is working with vector and tables.
When I try to remove a table with db.droptable and the table is
connected with a vector it return a warning and only using -f flag I
can remove the table.
The problem for my point of view is that the dblink is not
updated/removed after I removed the table. Is it a bug or a feature?

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

On 14/02/13 14:26, Luca Delucchi wrote:

Hi all,
I'm doing some tests about how GRASS is working with vector and tables.
When I try to remove a table with db.droptable and the table is
connected with a vector it return a warning and only using -f flag I
can remove the table.
The problem for my point of view is that the dblink is not
updated/removed after I removed the table. Is it a bug or a feature?

Probably db.droptable should refuse to drop the table and tell the user to use v.db.connect -d to disconnect the table from the map.

Moritz