Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6745

HANA XS callable statement setBlob function usage

$
0
0

Hi All,

 

We are developing an application that calls a standard stored procedure. I am using a callable statement in HANA XS to execute this call.

 

This stored procedure requires the data in a byte stream format. Therefore we are using the setBlob function.

 

var cs = oDBConnection.prepareCall("{ call "+ STORED_PROCEDURE +" (?,?) }");

var byteinput = this.createRequiredByteArray();

 

//Set parameters and execute query

 

var uint32View = new Uint32Array(byteinput);

cs.setBlob(1,uint32View.buffer);

createAView.execute();

oDBConnection.commit();

 

 

 

 

Problem 1: This function was not as straight forward as expected .It requires a array buffer object. I have a array of bytes ( byteinput) and created a wrapper using a type array (UINT32) and getting the array buffer from this object. Is this approach the correct use of ArrayBuffer for this function or does it expect certain format?


Problem 2: The challenge am facing is as follows. This stored procedure call works when executed in Java where I use setBytes. But in HANA XS, the call is executed successfully but the required objects are not created. I do not know the tables that are updated by this stored procedure. Since there are no errors in the function call, I am stuck with a situation where there are no errors but the object is not created. I can't find any other way to get more information.

 

I understand that this question is a bit convoluted. Please let me know if you need more information to understand the issue.

 

Regards,
B


Viewing all articles
Browse latest Browse all 6745

Trending Articles



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