|
wrym Magician
Joined: 06 Jul 2007 Posts: 349 Location: The big palace, My own lil world
|
Posted: Wed Jun 16, 2010 5:27 pm
#add DBrecord.key |
In a number of locations i have code that uses #add on a dbrecord key, now however instead of adding numbers numbers are getting appended
Code: |
<var name="test" type="Record" copy="yes">
<value>test=100|beta=321</value>
</var> |
from commandline
Code: |
#add test.test 100;#print @test.test |
instead of getting 200 and then 300 i get 100100 and then 100100100 |
|
_________________ "To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Jun 16, 2010 7:31 pm |
Yep, there is a consistent problem in the 3.19e version with treating numbers as strings instead of numbers. A number of the reported bugs are related to this and the above bug is already fixed in the next update for later today.
Btw, remember to always put the CMUD Version number in your subject line, especially when I'm releasing new versions every day. |
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Wed Jun 16, 2010 7:32 pm |
The json table is creating the values as strings instead of integers.
Code: |
Variable: + test (Record) test=100|beta=321
json: {"test":"100","beta":"321"} (object) |
Edit: Ninja'd. |
|
|
|
|
|