[GRASS-dev] v.db.update: any reason to keep both value and qcolumn parameter ?

Glynn Clements glynn at gclements.plus.com
Tue Sep 30 10:44:48 EDT 2008


Markus Neteler wrote:

> > However, in its current version (since rev 23578), value is now adapted
> > according to column type, which means that you cannot use column operations
> > on varchar columns (e.g. concatenation).
> >
> > So, we should either:
> >
> > - change the doc to reflect that value should only be a nominal value, or
> 
> yes
> 
> > - go back to the original, i.e. no qcolumn and no type checking for value,
> > so that it's up to the user to use correct quoting
> 
> No - I don't find it obvious at all that "value" could be a column name.
> qcolumn also exists in other commands AFAIK, to that's consistent.

Another option: add expression=, which is just used verbatim as the
RHS of the assignment (you can already use qcolumn= this way, but its
name and description makes that counter-intuitive). Optionally remove
value= and/or qcolumn=.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list