-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Invalid dates in Oracle
PostPosted: Tue Jun 26, 2007 7:49 am 
Newbie

Joined: Tue Jun 05, 2007 10:09 am
Posts: 2
I have a strange an tricky problem with my Hibernate application. I have a table where I collect about 20.000 rows a day of data. Every row has a timestamp (in the form of a DATE column in Oracle), and every once and again (approx. once a week) the timestamp gets corrupted. Sometimes the year part of the date is set to 0001, somtimes the day is 00, and so on.

I know for sure that the timestamp is valid when entering the hibernate save() method. For some reason Oracle doesn't reject these invalid date, but stores them without any warning. This causes problems later on, where the data is read in another application.

Has anybody else seen this problem? Does anybody have a suggestion as to what's causing it, and/or what we can do to fix it?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.