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
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Mon Jun 28, 2010 6:58 am   

[321B] An unexpected workaround to the COM call within the %json function.
 
As I stated before, this doesn't work:
Code:

$sql = "SELECT * FROM [mob data]"
;;
$rec = %json( @comsql.execute($sql, %array( %null))
;;
//Instead it must be done this way:
;;
$rec = @comsql.execute($sql, %array( %null))
$rec = %json( $rec)

However, if done this way, it works:
Code:

$rec = %json(%comget(comsql,execute,$sql,%array(%null)))
_________________
Sic itur ad astra.
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