incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r953163 - /incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/Database.java
Date Wed, 09 Jun 2010 21:15:21 GMT
Author: kwright
Date: Wed Jun  9 21:15:20 2010
New Revision: 953163

URL: http://svn.apache.org/viewvc?rev=953163&view=rev
Log:
Fix impossible cast.

Modified:
    incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/Database.java

Modified: incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/Database.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/Database.java?rev=953163&r1=953162&r2=953163&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/Database.java
(original)
+++ incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/Database.java
Wed Jun  9 21:15:20 2010
@@ -755,7 +755,7 @@ public class Database
         }
         if (x instanceof TimeMarker)
         {
-          ps.setTimestamp(i+1,new java.sql.Timestamp(((Long)x).longValue()));
+          ps.setTimestamp(i+1,new java.sql.Timestamp(((TimeMarker)x).longValue()));
         }
         if (x instanceof Double)
         {



Mime
View raw message