Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: 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)))
|
|
|