Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8341559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:31:11+00:00 2026-06-09T05:31:11+00:00

We just switched from ojdbc14 to ojdbc6, and noticed that when we insert a

  • 0

We just switched from ojdbc14 to ojdbc6, and noticed that when we insert a javax.sql.Time value into an Oracle column via a prepared statement and preparedStatement.setTime(1, new javax.sql.Time(new Date().getTime())), its behavior changed. It used to insert both Date and Time information into the table, but with the new driver, it appears that only the Time portion is captured, and the values we see in the database are dated with Jan 1, 1970.

Now, it is pretty obvious that this is the case, my question is where I can find an official document or change note that describes this behavior.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:31:14+00:00Added an answer on June 9, 2026 at 5:31 am

    In my opinion it would better serve you by passing values as date/time objects, such as java.sql.Timestamp, and reading them as such. So you would use public void setTimestamp(int parameterIndex, Timestamp x) to set the respective values. This is much cleaner to use.

    You can then use Java SimpleDateFormat to format the data to your own liking after you have read it from the database.

    There are however some documented bugs with timestamp usage that you can find in this Oracle JDBC Driver Documentation. These might not be directly relevant to you but look at the following ones: #BUG-6749320, #6870832, #7028625, #6441084

    You might want to read about the change over here: “What is going on with DATE and TIMESTAMP?” provided in the Oracle JDBC FAQ section.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just switched from Eclipse to IntelliJ and noticed that when I use Reformat
So I just switched from some network solutions hosting running some php files that
I just switched from C++ to Java. I'm trying to write a program that
I just switched my persistence.xml from <property name=toplink.ddl-generation value=drop-and-create-tables/> to <property name=toplink.ddl-generation value=create-tables/> and
I just switched from Eclipse to IntelliJ. IntelliJ lacks one feature from Eclipse -
I just switched from storing my images uploaded via Carrierwave locally to using Amazon
I've just switched from radrails to netbeans. So far, so good. But I have
I have just switched from svn to mercurial and have read some tutorials about
Just switched over from eclipse to vs 2008 for debugging javascript, i feel more
I just switched my code from Objective-C to Objective-C++. Everything goes swimmingly except for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.