Hello All,
Is it not possible to use the new hdb interface in xsjslib? I am trying to call an xsjslib function in my xsodata service (create using ....)
If I do this in xsjslib:
let after = param.afterTableName; var conn = $.hdb.getConnection(); var query = 'select * from "' + after + '"'; var rs = conn.executeQuery(query);
it fails because the temporary table (after) is not known.
However if I do this in the "old" style, it works just fine.
var pStmt = param.connection.prepareStatement('select * from "' + after + '"'); var rs = pStmt.executeQuery(); var title; while (rs.next()) { title = rs.getString(2); } pStmt.close();
So is it a correct assumption that the hdb interface cannot be used for temporary tables?
regards,
Bert