Opened 14 years ago

Closed 14 years ago

#3728 closed enhancement (fixed)

OGR SQL engine doesn't support unary minus operator

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords: rfc28
Cc:

Description

$ ogrinfo data -sql "select -(1+2) from poly"

INFO: Open of `data'

using driver `ESRI Shapefile' successful.

ERROR 1: SQL Expression Parsing Error: syntax error

Not sure if this is expected or not. The workaround is to use -1 * (1+2) instead.

Change History (1)

comment:1 by Even Rouault, 14 years ago

Resolution: fixed
Status: newclosed

Implemented in r20403. Tested in r20404

Note: See TracTickets for help on using tickets.