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

2007-08-08 Thread Jose Gargallo
This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED

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

2007-08-07 Thread Jose Gargallo
I still have te same problem, any help? Jose Gargallo escribió: Hi all, 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

JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle

2007-08-03 Thread Jose Gargallo
Hi all, 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.