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

Thanks Thomas,

 

I plugged in that code and I got an Invalid Date on the line dateTemp.setDate(rs.getTimestamp(i));  which led to a null value on the toJSON conversion. 

 

After a little more playing with it, I got this to return the date with milliseconds.

case $.db.types.TIMESTAMP:
oValue += '"' + aResultSet.getTimestamp(iColumn).toISOString() + '"';
break;

Jim Giffin


Viewing all articles
Browse latest Browse all 8968

Trending Articles