SQL Statements send to Omnis Server?

Josua Riha riha at bnitm.de
Mon Dec 9 08:03:33 EST 2013


Hello,

I have noticed that my SQL queries are being send to omnis.net.
Is there a reason why all my SQL statements have to be send to that server?

>From omjsclnt.js (Javascript Wrapper IOS V1.1):

_33 contains my whole SQL Statement for example:

"{"ID":"ExecuteSQL","ULID":"execute","retID":{"ACTION":"execute","SRID":2,"PSRID":0},"Params":{"SqlText":"CREATE
TABLE IF NOT EXISTS user (user_id INTEGER PRIMARY KEY, username
CHAR(50), password CHAR(200), role INTEGER(2));"}}"

if(jOmnis.iOS){
    _33=_33.replace(/[\\]/g,"%5C");

    var _34=document.createElement("IFRAME");

    _34.setAttribute("src","http://www.omnis.net/iOSJavaScriptURL"+_33);

    document.documentElement.appendChild(_34);

    _34.parentNode.removeChild(_34);

    _34=null;
}


I'm using a serverless client application and noticed this while debugging.

Regards,
Josua



More information about the omnisdev-en mailing list