Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Timestamp column drops milliseconds in XSJS query with resultSet.getMetaData?

$
0
0

In the session.xsjslib example we are building a string and therefore JavaScript is perform the output conversion of the timestamp to a string.  This is why you see the Thus Sep... formatted output of the timestamp instead of the internal JSON notation of the timestamp.

 

I just tested and a solution would be to replace the TIMESTAMP handling with the following:

 

         case $.db.types.TIMESTAMP:             var dateTemp = new Date();             dateTemp.setDate(rs.getTimestamp(i));             var dateString = dateTemp.toJSON();             value += '"'+dateString+'"';             break;

Viewing all articles
Browse latest Browse all 8968

Trending Articles



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