[GRASS5] db.oodbfedit: a _very_ simplistic approach to dbf attribute editing
Daniel Calvelo Aros
dcalvelo at minag.gob.pe
Tue Aug 9 12:28:05 EDT 2005
[me]
> > > update table foo set bar=baz/2+1/(-4*toto);
[Glynn]
> > Does this handle updating multiple fields correctly? I.e. if you do:
> >
> > update table foo set bar=bar+1, baz=bar
> >
> > will baz contain the original value of bar (not the updated value)?
[me]
> Not yet :). Good sight. Currently it updates sequentially, a la C's
> ',' operator. Easy to fix, though: use a temp copy of the record.
> I'll fix that later today.
Ok, fixed in CVS. It even does a correct swap:
update table foo set bar=baz,baz=bar;
Daniel.
More information about the grass-dev
mailing list