The latest version of Breeze seems to violate executeQueryLocally. For instance:
var query = new breeze.EntityQuery() .from("Items").where('id', '==', id); return manager.executeQueryLocally(query);
The problem I am facing is in calling stringEquals in getPredicateFn .
In the case of the simple request above, trim() is called on id calling
5 does not have a trimming method
Exception
Here is the Breeze stringEquals string function:
function stringEquals(a, b, lqco) { if (lqco.usesSql92CompliantStringComparison) { a = (a || "").trim(); b = (b || "").trim(); } if (!lqco.isCaseSensitive) { a = (a || "").toLowerCase(); b = (b || "").toLowerCase(); } return a == b; }
Edit
id defined as int in the Items model and is numeric in JavaScript . Previously, the Breeze version did not execute stringEqual , so there was no attempt to trim a numeric number.
source share