Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores
milliseconds in TOMCAT + ddbb Oracle

Christopher Schultz

2007-08-07

Replies:

-----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@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.