I am using the below statement on the hanatrial.ondemand.com account in an .xsjs script:
pStmt = conn.prepareStatement('insert into "<account>.<package>:Person"("oid", "history.createdAt", "history.createdBy","name", "firstName" ) values (?, now(), ?, now(), ?, ?, ?)');
pStmt.setInteger(1,personOid); // object id
pStmt.setString(2,user);
pStmt.setString(3,user);
pStmt.setString(4,name);
pStmt.setString(5,firstname);
pStmt.execute();
conn.commit();
as a result I am getting the error:
InternalError: dberror(Connection.prepareStatement): 258 - insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2422 (line 277 position 0....
how can I set the authorization to execute a prepare statement?