fix support of oData math functions
I attempted to use the oData add math function like this:
.where("ColA add COlB", breeze.FilterQueryOp.GreaterThan, 5)
when the query was sent to the server, it converted the numeric value 5 to string '5' and the server responded with an invalid type error:
http://...MyEntity/?Filter(ColA add ColB gt '5')
the correct uri should be:
http://...MyEntity/?Filter(ColA add ColB gt 5)
If I manually changed the uri to the above format, the server accepts the format and responds correctly.
It appears that somehow the breeze client is interpreting the add expression as a string and forces the 5 into a string. My suggestion is that this is either a bug that can be fixed or that there be a way to force the type of the value.
Fixed in the 1.4.1 release: