[GRASS5] PATCH: sql expression parser

Glynn Clements glynn at gclements.plus.com
Tue Jun 14 23:24:40 EDT 2005


Daniel Calvelo Aros wrote:

> > Ready to accept the patch for correct arithmetic precedence 
> > if it is tested enough.
> 
> Seems to work:

> NOT also seems to be handled properly as highest precedence. I think the only
> tweaking left is unary minus.

The SQL interpreter in the DBF driver doesn't have a negation
operator.

I thought about parsing -E as a subtraction (0 - E), although I'm not
sure whether there's something I'm overlooking.

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




More information about the grass-dev mailing list