avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/functions/impl YearIntegerFunction.java
Date Thu, 03 Jan 2002 00:14:05 GMT
hammant     02/01/02 16:14:05

  Modified:    apps/db/src/java/org/apache/avalon/db/functions/impl
                        YearIntegerFunction.java
  Log:
  Fix from Larry McCay
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/functions/impl/YearIntegerFunction.java
  
  Index: YearIntegerFunction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/functions/impl/YearIntegerFunction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- YearIntegerFunction.java	29 Dec 2001 14:48:43 -0000	1.2
  +++ YearIntegerFunction.java	3 Jan 2002 00:14:05 -0000	1.3
  @@ -18,7 +18,7 @@
    * Class SecondIntegerFunction
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class YearIntegerFunction extends AbstractTemporalIntegerFunction {
   
  @@ -30,7 +30,7 @@
           TemporalColumn tc = (TemporalColumn) mColumns[0];
           Date date = (Date) tc.getValue(row);
           mGregorianCalendar.setTime(date);
  -        return new Integer(mGregorianCalendar.get(Calendar.SECOND));
  +        return new Integer(mGregorianCalendar.get(Calendar.YEAR));
       }
   
       public String getStringValue(Row row) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message