tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Propes, Barry L " <barry.l.pro...@citi.com>
Subject RE: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle
Date Tue, 07 Aug 2007 14:34:21 GMT
and what date type are you using? sql.date or util.date?

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net]
Sent: Tuesday, August 07, 2007 8:55 AM
To: Tomcat Users List
Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function
ignores milliseconds in TOMCAT + ddbb Oracle


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jose,

I marked this as off-topic because it doesn't have anything to do with
Tomcat. Tomcat doesn't do anything to your SQL queries, etc. See below.

Jose Gargallo wrote:
> I have a J2EE application that runs in Oracle and Postgres databases
> and OC4J and Tomcat servers. I've got a problem using the
> PreparedStatement.setTimestamp function runing TOMCAT 5.5 + Oracle 9i
> becouse it ignores the milliseconds. It works fine runing in OC4J
> 10.1.3 and Oracle 9i. ┬┐Why?

Can you post your code that calls PreparedStatement.setTimestmp? Include
the declarations of any Date objects and anytime you assign the
reference or modify the object itself.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuHnE9CaO5/Lv0PARAtxwAJ0axxRuz8UtfBvjLwJ6hdkthFkHNwCaA4rF
IPsKktptiSW47HDFx1dNoCU=
=k9SW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Mime
View raw message