db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/java/org/apache/torque/adapter DBOracle.java
Date Thu, 21 Aug 2003 05:54:57 GMT
mpoeschl    2003/08/20 22:54:57

  Modified:    src/java/org/apache/torque/adapter DBOracle.java
  Log:
  style fixes
  
  Revision  Changes    Path
  1.17      +6 -5      db-torque/src/java/org/apache/torque/adapter/DBOracle.java
  
  Index: DBOracle.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/adapter/DBOracle.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- DBOracle.java	18 Jul 2003 20:17:35 -0000	1.16
  +++ DBOracle.java	21 Aug 2003 05:54:57 -0000	1.17
  @@ -73,7 +73,7 @@
   {
       /** date format used in getDateString() */
       private static final String DATE_FORMAT = "dd-MM-yyyy HH:mm:ss";
  -    
  +
       /**
        * Empty constructor.
        */
  @@ -109,11 +109,12 @@
        * @param date the Date to format
        * @return The date formatted String for Oracle.
        */
  -    public String getDateString(Date date) {
  -        return "TO_DATE('" + new SimpleDateFormat(DATE_FORMAT).format(date) 
  +    public String getDateString(Date date) 
  +    {
  +        return "TO_DATE('" + new SimpleDateFormat(DATE_FORMAT).format(date)
                   + "', 'DD-MM-YYYY HH24:MI:SS')";
       }
  -    
  +
       /**
        * @see org.apache.torque.adapter.DB#getIDMethodType()
        */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message