Re: ClientPreparedQueryBindings setInt method convert int directly to byte array
Posted by: Alexander Soklakov
Date: December 23, 2021 05:24AM

Hi Chen,

You don't need to deal with Calendar parameter or protocol bytes at all if you just need to ensure that Date is created with a local time zone. The following should be enough:

LocalDate ld = rs.getObject(i, LocalDate.class);
date = Date.valueOf(ld);

Thanks,
Alex

Options: ReplyQuote




Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.