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

How to get value from table with BigInt data type?

$
0
0

Dear,

 

I am developing a program using xsjs on HANA XS Engine.

I have a table with some columns. One of my columns is primary key that has type BigInt.

Ex: MyTable:

ID: BigInt

Name: VARCHAR(255)

 

When I try to get data from this table. I use getBigInt method to get value from ID column.

 

rs.getBigInt(1).

 

The return value is an object. It is not a number.

I have to use:

rs.getInteger(1) to get value from BigInt column. It returns correct value.

 

In case the value is too big (a bigInt value), the call: getInteger will cause error.

 

I tried to search in some document and found that they alway s use getInteger method for BigInt column.

 

Does anybody know why we cannot use getBigInt? Why do they always use getInteger method for BigInt column.

 

Please help me to make this clear.

 

Thank you in advance.

 

Best regards,

 

Manh


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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