Find the patch for this attached. I will send the test patch in a seperate mail.

~ Shreyas
Index: java/engine/org/apache/derby/iapi/types/SQLTimestamp.java
===================================================================
--- java/engine/org/apache/derby/iapi/types/SQLTimestamp.java   (revision 
158017)
+++ java/engine/org/apache/derby/iapi/types/SQLTimestamp.java   (working copy)
@@ -45,12 +45,7 @@
 import org.apache.derby.iapi.types.SQLDouble;
 import org.apache.derby.iapi.types.SQLTime;
 
-import java.sql.Date;
-import java.sql.Time;
-import java.sql.Timestamp;
-import java.sql.Types;
-import java.sql.ResultSet;
-import java.sql.SQLException;
+import java.sql.*;
 
 import java.util.Calendar;
 import java.util.GregorianCalendar;
@@ -989,5 +984,10 @@
                currentCal.setTime(value);
                return SQLTime.computeEncodedTime(currentCal);
        }
+    
+    public void setInto(PreparedStatement ps, int position) throws 
SQLException, StandardException {
+
+               ps.setTimestamp(position, getTimestamp((Calendar) null));
+       }
 }
 

Reply via email to