cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: xml-cocoon2/src/blocks/databases/java/org/apache/cocoon/util JDBCTypeConversions.java
Date Thu, 09 Jan 2003 16:53:36 GMT
haul        2003/01/09 08:53:36

  Modified:    src/blocks/databases/java/org/apache/cocoon/util
                        JDBCTypeConversions.java
  Log:
  Added ability to parse date strings (if simple sql date)
  
  Revision  Changes    Path
  1.5       +2 -0      xml-cocoon2/src/blocks/databases/java/org/apache/cocoon/util/JDBCTypeConversions.java
  
  Index: JDBCTypeConversions.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/blocks/databases/java/org/apache/cocoon/util/JDBCTypeConversions.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JDBCTypeConversions.java	6 Nov 2002 18:18:30 -0000	1.4
  +++ JDBCTypeConversions.java	9 Jan 2003 16:53:36 -0000	1.5
  @@ -382,6 +382,8 @@
                   d = new Date(((java.util.Date) value).getTime());
               } else if (value instanceof Calendar) {
                   d = new Date(((Calendar) value).getTime().getTime());
  +            } else {
  +                d = Date.valueOf(String.valueOf(value));
               }
               
               statement.setDate(position, d);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message