Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: 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
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net