entity Num 00 error
I have a Num field in an entity. Calculating the sum of the field + constant 0 or a variable with 0 the result is 00 :S Num field have turned into a String??
I have tested with Reflector.isString() and it returns true for the Num entity field and for the variable with the calculated sum.
Submitted by Terje Pedersen on 30 May 2011 at 16:24
Issue Log
Is it possible that the type of the property used to be String (or at least something else than Num) before?
a) I have used resetDatabase() between the tests. From det resetDatabase() documentation “Resets the database (drops all tables and data).” It doesn’t drop the tables it just leaves them blank with no data.
b) Its possible to initialize a Num field with a String for an entity without any errors at all and the string is stored in db.
entity Testing {
sats : Num
}add(Testing(sats=“terje”));
Log in to post comments