Tim Burns' Personal Weblog Flavored with Math, Java, and Oracle
 
Wednesday, June 9, 2004 [*]
 

JDBC Date and Timestamp Bugs

Date fields are the bane of the programmer's existence. Well, at least this morning they were the bane of my existence. I develop and maintain an application for Oracle Application server and it turns out that my local machine uses a different version of the JDBC library than our production and test machines. Nevermind that all Oracle thin clients are called classes12.zip and careless programmers consider them all equal. It pays to know what version the application is using. Here is the call:

      java.sql.Connection con = lookupConnection();
      logger.info(con.getMetaData().getDriverVersion());
    

My development environment turns out to be 9.2.0.3.0 and prod/test is 9.0.1.4.0. It turns out that Oracle had a change of heart about Date vs. Timestamp as the default data type for their DATE type in SQL. Read the skinny on OTN.

 
Comments [0]
 
xml    Blogroll Me!

Personal

Rhode Island is Famous For You

Discovering My Own Backyard

At Least Databases Don't Fly Away

Southwestern Baby Shower Menu

Morning of the Wolf

Autumn lingers in New England

Foraging and Shopping

 

Math, Java, and Oracle

Regular Expressions and Unit Tests
Data Cubing Tools and the Oracle 10g Mess
Tracking Errors with JavaMail
The SVD, Benchmarking and Optimization
The Problem with Software Engineers
Fun with Optimization
Anything new under the sun?
Really Simple Tomcat, Really
J2EE with Free Software
 

Technology

New Computer and Perl CTime
 

Mushrooms

Coprinus Plicatilis
 

The Daily Chronic

 

Currently Reading

 

References

BioInformatics

BioTech

Epicurious

Statistics

 

Archive

2004
 June 02 05 09 17 21 24 28
 May 05 06 10 11 12 15 20 24 25 28 29
 April 01 04 07 09 11 16 17 18 20 22 24 25 27 29
 March 02 15 21 22 24 27
 February 13
 January 04 16 19 29
2003
 December 06 12
 November 02 23 29
 October 07 11 12 16 18 21 24 26
 September 04 09 10 12 14 28
 August 05 08 13 17 18 25 29
 July
 June
2002
2001
 

Photos

Morning of the Wolf
Phantom Farms
Providence
Baby Shower
Camden, Maine
 

Wiki

Creative Commons License
This work is licensed under a Creative Commons License