[GRASS5] PATCH: sql expression parser

Daniel Calvelo Aros dcalvelo at minag.gob.pe
Fri Jun 10 05:13:42 EDT 2005


Hi all.

Earlier, I queried about sql expressions in where clauses. Glynn proposed a
fix for that using additional rules to cope with operator precedence. I attach
a patch that uses the precedence directives available to bison. This allows
for eg:

select cat from blah where (col1/(col2+col3)-col4)=1

However, I'm unsure about %left and ilk directives in older yaccs; could
anybody confirm this works in non-GNU yaccs? If so, please test this patch, it
is a bugfix actually.

Daniel.

-- Daniel Calvelo Aros

-------------- next part --------------
A non-text attachment was scrubbed...
Name: aritwhereexp.patch
Type: application/octet-stream
Size: 1621 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20050610/434a11e7/aritwhereexp.obj


More information about the grass-dev mailing list