My Oracle Support Banner

How to Pass mapDateToTimestamp Flag as a Connection Property in JDBC 11g? (Doc ID 1052332.1)

Last updated on MARCH 08, 2017

Applies to:

JDBC - Version 11.2.0.1 and later
Information in this document applies to any platform.

Goal

By default, with the 11g Oracle JDBC driver, the oracle.sql.DATE is mapped to java.sql.TimeStamp class.
To map oracle.sql.DATE to a java.sql.Date, the mapDateToTimestamp flag should be set to false

How to pass the flag  mapDateToTimestamp as a connection property in the application code ?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.