Data from DB do not get passed to client unless re-type

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
Pippoflash
Posts: 135
Joined: 30 Jan 2006, 17:16
Contact:

Data from DB do not get passed to client unless re-type

Post by Pippoflash »

Just spent half day figuring this out:

When retrieving anything from a JDBC connection on MYSQL-JCONNECT, and sending that data through _server.sendResponse() in JS extension (in both json and xml format), all data is sent as null.

Solution:
data must be re-typed: String(data) Number(data) otherwise it will be received by client as null.

I think the JS server API should consider re-typing automatically.

thanks
Pippo
-----------------------
www.pippoflash.com
-----------------------
Post Reply