Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Usage of HDB interface in XSJSLIB

$
0
0

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


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>